ChakraSharp
Mono/.NET bindings for ChakraCore
Install / Use
/learn @BaristaLabs/ChakraSharpREADME
ChakraSharp
A quick & dirty pass at generating a ChakraCore P/Invoke layer in C# using CppSharp
Note: ChakraSharpCastXml is an improvement over the approach offered here.
Advantages
- Generates P/Invoke layer directly from ChakraCore Jsrt headers; any changes and additions made to ChakraCore can be integrated quickly and easily without manual porting
- Function and parameter descriptions contained in the Jsrt headers are retained and included in the generated cs file.
- Customization of the generated code can be performed by forking this project and adding/changing the passes.
Instructions
- Clone this repo
- Clone Microsoft/ChakraCore - you won't need to build Chakra as the headers are used to generate the P/Invoke. In your implementing program you can use the version on NuGet.
- Ensure that the path in ChakraShare.CLI/Program.cs points to the path where ChakraCore was cloned.
- Build and run ChakraSharp.CLI -- ChakraCore.cs will be generated. Take this file and use it in the application that you'd like to use Chakra in.
For a sample of how to use the generated ChakraCore.cs file, see ChakraSharp-Sample
For a high-level object model, see BaristaCore
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
