{"id":15108174,"url":"https://github.com/chaiscript/chaiscript","last_synced_at":"2025-05-14T20:07:58.734Z","repository":{"id":1287029,"uuid":"1226823","full_name":"ChaiScript/ChaiScript","owner":"ChaiScript","description":"Embedded Scripting Language Designed for C++","archived":false,"fork":false,"pushed_at":"2025-02-20T14:45:11.000Z","size":6439,"stargazers_count":3008,"open_issues_count":128,"forks_count":341,"subscribers_count":126,"default_branch":"develop","last_synced_at":"2025-04-13T14:06:59.511Z","etag":null,"topics":["c-plus-plus","cpp","embedded-scripting-language","language"],"latest_commit_sha":null,"homepage":"http://chaiscript.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChaiScript.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"supporters.md","governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2011-01-06T16:34:49.000Z","updated_at":"2025-04-08T23:18:12.000Z","dependencies_parsed_at":"2022-07-18T03:30:43.243Z","dependency_job_id":"ff0f6fcc-8125-44a8-aa1a-331141768726","html_url":"https://github.com/ChaiScript/ChaiScript","commit_stats":{"total_commits":2003,"total_committers":73,"mean_commits":"27.438356164383563","dds":"0.46080878681977033","last_synced_commit":"3e548184c02d69b53a5a0d8b7883e5b9dda4a957"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaiScript%2FChaiScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaiScript%2FChaiScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaiScript%2FChaiScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaiScript%2FChaiScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChaiScript","download_url":"https://codeload.github.com/ChaiScript/ChaiScript/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724639,"owners_count":21151561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","cpp","embedded-scripting-language","language"],"created_at":"2024-09-25T22:00:40.106Z","updated_at":"2025-04-13T14:07:04.489Z","avatar_url":"https://github.com/ChaiScript.png","language":"C++","readme":"\u003ca href=\"https://www.patreon.com/bePatron?u=2977989\u0026redirect_uri=https%3A%2F%2Fwww.patreon.com%2Flefticus\"\u003e\n    \u003cimg height=\"40\" width=\"204\" src=\"https://s3-us-west-1.amazonaws.com/widget-images/become-patron-widget-medium%402x.png\"\u003e\n\u003c/a\u003e\n\n\nMaster Status: [![Linux Build Status](https://travis-ci.org/ChaiScript/ChaiScript.png?branch=master)](https://travis-ci.org/ChaiScript/ChaiScript) [![Windows Build status](https://ci.appveyor.com/api/projects/status/6u3r4s81kkjqmsqw?svg=true)](https://ci.appveyor.com/project/lefticus/chaiscript) [![codecov.io](http://codecov.io/github/ChaiScript/ChaiScript/coverage.svg?branch=master)](http://codecov.io/github/ChaiScript/ChaiScript?branch=master)\n\nDevelop Status: [![Linux Build Status](https://travis-ci.org/ChaiScript/ChaiScript.png?branch=develop)](https://travis-ci.org/ChaiScript/ChaiScript) [![Windows Build status](https://ci.appveyor.com/api/projects/status/6u3r4s81kkjqmsqw/branch/develop?svg=true)](https://ci.appveyor.com/project/lefticus/chaiscript/branch/develop) [![codecov.io](http://codecov.io/github/ChaiScript/ChaiScript/coverage.svg?branch=develop)](http://codecov.io/github/ChaiScript/ChaiScript?branch=develop)\n\nChaiScript\n\nhttp://www.chaiscript.com\n\n(c) 2009-2012 Jonathan Turner\n(c) 2009-2017 Jason Turner\n\nRelease under the BSD license, see \"license.txt\" for details.\n\n\nIntroduction\n============\n\n[![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/ChaiScript/ChaiScript?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nChaiScript is one of the only embedded scripting language designed from the\nground up to directly target C++ and take advantage of modern C++ development\ntechniques, working with the developer how they would expect it to work.  Being a\nnative C++ application, it has some advantages over existing embedded scripting\nlanguages:\n\n1. It uses a header-only approach, which makes it easy to integrate with\n   existing projects.\n2. It maintains type safety between your C++ application and the user scripts.\n3. It supports a variety of C++ techniques including callbacks, overloaded\n   functions, class methods, and stl containers.\n\n\nRequirements\n============\n\nChaiScript requires a C++17 compiler to build with support for variadic\ntemplates.  It has been tested with gcc 7 and clang 6 (with libcxx).\n\nInstallation using vcpkg\n========================\n\nYou can download and install ChaiScript using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:\n\n    git clone https://github.com/Microsoft/vcpkg.git\n    cd vcpkg\n    ./bootstrap-vcpkg.sh\n    ./vcpkg integrate install\n    vcpkg install chaiscript\n\nThe ChaiScript port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.\n\nUsage\n=====\n\n* Add the ChaiScript include directory to your project's header search path\n* Add `#include \u003cchaiscript/chaiscript.hpp\u003e` to your source file\n* Instantiate the ChaiScript engine in your application.  For example, create a\n  new engine with the name `chai` like so: `chaiscript::ChaiScript chai`\n* The default behavior is to load the ChaiScript standard library from a\n  loadable module. A second option is to compile the library into your code,\n  see below for an example.\n\nOnce instantiated, the engine is ready to start running ChaiScript source. You\nhave two main options for processing ChaiScript source: a line at a time using\n`chai.eval(string)` and a file at a time using `chai.eval_file(fname)`\n\nTo make functions in your C++ code visible to scripts, they must be registered\nwith the scripting engine.  To do so, call add:\n\n    chai.add(chaiscript::fun(\u0026my_function), \"my_function_name\");\n\nOnce registered the function will be visible to scripts as \"my_function_name\"\n\nExamples\n========\n\nChaiScript is similar to ECMAScript (aka JavaScript(tm)), but with some\nmodifications to make it easier to use.  For usage examples see the \"samples\"\ndirectory, and for more in-depth look at the language, the unit tests in the\n\"unittests\" directory cover the most ground.\n\nFor examples of how to register parts of your C++ application, see\n\"example.cpp\" in the \"samples\" directory. Example.cpp is verbose and shows every\npossible way of working with the library. For further documentation generate\nthe doxygen documentation in the build folder or see the website\nhttp://www.chaiscript.com.\n\n\nThe shortest complete example possible follows:\n\n```C++\n/// main.cpp\n\n#include \u003cchaiscript/chaiscript.hpp\u003e\n\ndouble function(int i, double j)\n{\n  return i * j;\n}\n\nint main()\n{\n  chaiscript::ChaiScript chai;\n  chai.add(chaiscript::fun(\u0026function), \"function\");\n\n  double d = chai.eval\u003cdouble\u003e(\"function(3, 4.75);\");\n}\n```\n","funding_links":["https://www.patreon.com/bePatron?u=2977989\u0026redirect_uri=https%3A%2F%2Fwww.patreon.com%2Flefticus"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaiscript%2Fchaiscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaiscript%2Fchaiscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaiscript%2Fchaiscript/lists"}