{"id":26244536,"url":"https://github.com/notnite/nodedotnet","last_synced_at":"2026-02-25T07:36:52.108Z","repository":{"id":274214467,"uuid":"921767247","full_name":"NotNite/NodeDotNet","owner":"NotNite","description":"Experimental Node.js native bindings for C# using NativeAOT","archived":false,"fork":false,"pushed_at":"2025-01-24T15:22:51.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T02:58:59.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/NotNite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2025-01-24T15:22:40.000Z","updated_at":"2025-01-26T07:59:39.000Z","dependencies_parsed_at":"2025-01-25T18:33:04.391Z","dependency_job_id":"26e8f2cf-df04-4b29-a3b5-377454fa553e","html_url":"https://github.com/NotNite/NodeDotNet","commit_stats":null,"previous_names":["notnite/nodedotnet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FNodeDotNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FNodeDotNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FNodeDotNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNite%2FNodeDotNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotNite","download_url":"https://codeload.github.com/NotNite/NodeDotNet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468278,"owners_count":21435454,"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":[],"created_at":"2025-03-13T11:27:58.179Z","updated_at":"2026-02-25T07:36:47.083Z","avatar_url":"https://github.com/NotNite.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeDotNet\n\nExperimental Node.js native bindings for C# using NativeAOT. These bindings are extremely incomplete and I'm just doing this for fun!\n\n## Usage\n\nThis is only tested on Windows for now.\n\nFirst, obtain the node-gyp headers \u0026 library. I have no idea how to do this automatically, so I just went to `%LocalAppData%\\node-gyp\\Cache` and copied the latest version I had (naming the folder `node-gyp`).\n\nIf the bindings need to be regenerated, use [ClangSharpPInvokeGenerator](https://github.com/dotnet/ClangSharp?tab=readme-ov-file#generating-bindings) with the provided `generate.rsp`.\n\nThen, build a project using NodeDotNet as a library. See `NodeDotNet.Test` for an example, with the right project config and the exposed entrypoint.\n\n## Testing\n\n```shell\n# Publish as NativeAOT\ndotnet publish -r win-x64\n# Rename the file to .node so you can require it\ncp ./NodeDotNet.Test/bin/Release/net9.0/win-x64/native/NodeDotNet.Test.dll ./NodeDotNet.Test/bin/Release/net9.0/win-x64/native/NodeDotNet.Test.node\n# Run it\nnode -e 'console.log(require(\"./NodeDotNet.Test/bin/Release/net9.0/win-x64/native/NodeDotNet.Test.node\").add(2, 2))'\n```\n\n## TODO\n\n(I probably won't ever finish this)\n\n- [ ] Add more wrapper classes for primitives\n- [ ] Better binding to method arguments using Action/Func and generics\n- [ ] Bind JavaScript objects to C# classes... somehow...\n- [ ] Write a source generator or something for the entrypoint\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotnite%2Fnodedotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotnite%2Fnodedotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotnite%2Fnodedotnet/lists"}