- Notifications
You must be signed in to change notification settings - Fork1.2k
ChakraCore is an open source Javascript engine with a C API.
License
chakra-core/ChakraCore
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ChakraCore is a JavaScript engine with a C API you can use to add support for JavaScript to any C or C compatible project. It can be compiled for x64 processors on Linux macOS and Windows. And x86 and ARM for Windows only. It is a future goal to support x86 and ARM processors on Linux and ARM on macOS.
As you may have heard Microsoft Edge no longer uses Chakra. Microsoft will continue to provide security updates for ChakraCore 1.11 until 9th March 2021 but do not intend to support it after that.
ChakraCore is planned to continue as a community project targeted primarily at embedded use cases. We hope to produce future releases with new features and enhancements to support such use cases. We also would like to invite any interested parties to be involved in this project. For further details please see the following draft planning documents:Overall planVersion 1.12 plan
Also see discussion in issue#6384
If you'd like to contact the community team please either open an issue or join the Discord chat linked above.
If you believe you have found a security issue in ChakraCore 1.11, please share it with Microsoft privately following the guidance at the MicrosoftSecurity TechCenter. Reporting it via this channel helps minimize risk to projects built with ChakraCore.
If you find a security issue in the Master branch of Chakracore but not in 1.11 please join our Discord server and private message one of the Core team members.
- ChakraCore Architecture
- Quickstart Embedding ChakraCore
- API Reference
- Contribution guidelines
- Blogs, talks and other resources
You can build ChakraCore on Windows 7 SP1 or above, and Windows Server 2008 R2 or above, with either Visual Studio 2015 or 2017 with C++ support installed. Once you have Visual Studio installed:
- Clone ChakraCore through
git clone https://github.com/Microsoft/ChakraCore.git
- Open
Build\Chakra.Core.sln
in Visual Studio - Build Solution
On macOS you can build ChakraCore with the xcode command line tools andcmake
.On Linux you can build ChakraCore withcmake
andninja
.
More details inBuilding ChakraCore.
Alternatively, seeGetting ChakraCore binaries for pre-built ChakraCore binaries.
Once built, you have a few options for how you can use ChakraCore:
- The most basic is to test the engine is running correctly with the applicationch.exe (ch on linux or macOS). This app is a lightweight host of ChakraCore that you can use to run small applications. After building, you can find this binary in:
- Windows:
Build\VcBuild\bin\${platform}_${configuration}
(e.g.Build\VcBuild\bin\x64_debug
) - macOS/Linux:
buildFolder/config/ch
(e.g.out/Release/ch
)
- Windows:
- You canembed ChakraCore in your applications - seedocumentation andsamples.
A note about using ChakraCore: ChakraCore is a JavaScript engine, it does not include the external APIs that are provided by a Web Browser or Node.js. For example, DOM APIs likedocument.write()
are additional APIs that are not provided by ChakraCore, when embedding ChakraCore in an application you will need to implement your own input and output APIs. For debugging, inch
you can useprint()
to put text to the terminal.
Alternatively, if you are using thevcpkg dependency manager you can download and install ChakraCore with CMake integration in a single command:
- vcpkg install chakracore
Contributions to ChakraCore are welcome. Here is how you can contribute to ChakraCore:
- Submit bugs and help us verify fixes.
- Submit pull requests for bug fixes and features and discuss existing proposals
Please refer toContribution Guidelines for more details.
Code licensed under theMIT License.
If you have questions about ChakraCore, or you would like to reach out to us about an issue you're having or for development advice as you work on a ChakraCore issue, you can reach us as follows:
About
ChakraCore is an open source Javascript engine with a C API.