{"id":18331990,"url":"https://github.com/mrousavy/nitro","last_synced_at":"2026-02-03T14:06:55.017Z","repository":{"id":256906186,"uuid":"814092544","full_name":"mrousavy/nitro","owner":"mrousavy","description":"🔥 Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI","archived":false,"fork":false,"pushed_at":"2026-02-02T10:18:38.000Z","size":30504,"stargazers_count":1690,"open_issues_count":86,"forks_count":77,"subscribers_count":18,"default_branch":"main","last_synced_at":"2026-02-02T23:28:10.008Z","etag":null,"topics":["cpp","fast","hybrid","hybrid-object","jsi","kotlin","library","modules","native","nitro","nitro-modules","react","react-native","swift","templates","turbomodules"],"latest_commit_sha":null,"homepage":"https://nitro.margelo.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrousavy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"mrousavy","ko_fi":"mrousavy"}},"created_at":"2024-06-12T10:21:40.000Z","updated_at":"2026-02-02T22:39:16.000Z","dependencies_parsed_at":"2024-09-18T20:28:30.192Z","dependency_job_id":"12937a9b-65e1-4259-9297-2fe8a71f759d","html_url":"https://github.com/mrousavy/nitro","commit_stats":{"total_commits":1128,"total_committers":21,"mean_commits":"53.714285714285715","dds":0.05762411347517726,"last_synced_commit":"c729d6e190009bb296f340a8d45613b758cac63b"},"previous_names":["mrousavy/nitro","mrousavy/react-native-nitro"],"tags_count":97,"template":false,"template_full_name":null,"purl":"pkg:github/mrousavy/nitro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Fnitro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Fnitro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Fnitro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Fnitro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrousavy","download_url":"https://codeload.github.com/mrousavy/nitro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Fnitro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","fast","hybrid","hybrid-object","jsi","kotlin","library","modules","native","nitro","nitro-modules","react","react-native","swift","templates","turbomodules"],"created_at":"2024-11-05T19:36:47.860Z","updated_at":"2026-02-03T14:06:52.353Z","avatar_url":"https://github.com/mrousavy.png","language":"C++","readme":"\u003ca href=\"https://margelo.com\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./docs/static/img/banner-nitro-modules-dark.png\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./docs/static/img/banner-nitro-modules-light.png\" /\u003e\n    \u003cimg alt=\"Nitro Modules\" src=\"./docs/static/img/banner-nitro-modules-light.png\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\n**Nitro Modules** are highly efficient native modules with a statically compiled binding layer to JSI, and typesafe JS bindings.\nIt consists of two parts:\n\n- [**react-native-nitro-modules**](packages/react-native-nitro-modules): The core C++ library powering all nitro modules\n- [**nitrogen**](packages/nitrogen): An optional code-generator for nitro module library authors\n\n## Example\n\nDeclaration (TypeScript):\n```ts\nexport interface Math extends HybridObject\u003c{ ios: 'c++' }\u003e {\n  add(a: number, b: number): number\n}\n```\n\nImplementation (C++, Swift or Kotlin):\n```cpp\nclass HybridMath: public HybridMathSpec {\npublic:\n  HybridMath(): HybridObject(TAG) {}\n  double add(double a, double b) override {\n    return a + b;\n  }\n}\n```\n\nUsage (TypeScript):\n```ts\nimport { NitroModules } from 'react-native-nitro-modules'\n\nconst math = NitroModules.createHybridObject\u003cMath\u003e('Math')\nconst result = math.add(5, 3)\n```\n\n## Installation\n\nInstall [react-native-nitro-modules](https://npmjs.org/react-native-nitro-modules) from npm:\n```sh\nnpm i react-native-nitro-modules\ncd ios \u0026\u0026 pod install\n```\n\n## Documentation\n\n- [**Nitro** docs 📚](https://nitro.margelo.com)\n- [**Community Discord** 💬](https://margelo.com/discord)\n- [**Nitro Module Builder** AI GPT 🤖](https://chatgpt.com/g/g-6870125d0fcc8191925bd20a02c78bcf-nitro-module-builder)\n- [**How to build a Nitro Module** YouTube Tutorial ▶️](https://youtu.be/528SxTGnIlc?si=IxH7n09ZVe4iwRPv)\n- [**nitrogen**/README.md](./packages/nitrogen/README.md)\n- [**react-native-nitro-modules**/README.md](./packages/react-native-nitro-modules/README.md)\n- [**react-native-nitro-test** example module](./packages/react-native-nitro-test/README.md)\n- [`TestObject.nitro.ts` example playground](./packages/react-native-nitro-test/src/specs/TestObject.nitro.ts)\n\n## Supported Platforms\n\n### Cross-platform\n\nCross-platform native modules can be built with C++.\nAny custom C++ types can be used and bridged to JS with minimal overhead.\n\nJS \u003c-\u003e C++ type converters are statically generated ahead of time - no more dynamic lookups or runtime parser errors! 🥳\n\n### iOS\n\niOS native modules and view components can be written either in pure C++, or pure Swift.\nThanks to Swift 5.9, Swift Nitro Modules [bridge directly to C++](https://www.swift.org/documentation/cxx-interop/) instead of going through Objective-C message sends. Woohoo, no more Objective-C, and **zero overhead** C++ -\u003e Swift calls! 🥳\n\n### Android\n\nAndroid native modules and view components can be written either in pure C++, or pure Kotlin/Java.\nThanks to fbjni, even complex types can be effortlessly bridged to Kotlin/Java with minimal overhead! 🔥\n\n## Margelo\n\nNitro is built with ❤️ by Margelo.\nWe build fast and beautiful apps. Contact us at [margelo.com](https://margelo.com) for consultancy services.\n\n## Contributing\n\nSee the [contributing guide](https://nitro.margelo.com/docs/contributing) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","funding_links":["https://github.com/sponsors/mrousavy","https://ko-fi.com/mrousavy"],"categories":["C++","Resources"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Fnitro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrousavy%2Fnitro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Fnitro/lists"}