{"id":13418718,"url":"https://github.com/plenluno/libnode","last_synced_at":"2026-03-11T20:02:13.937Z","repository":{"id":3179924,"uuid":"4211726","full_name":"plenluno/libnode","owner":"plenluno","description":"C++ implementation of Node.js","archived":false,"fork":false,"pushed_at":"2019-01-03T07:26:26.000Z","size":1417,"stargazers_count":402,"open_issues_count":5,"forks_count":50,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-12-20T12:36:32.804Z","etag":null,"topics":["c-plus-plus","nodejs"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plenluno.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}},"created_at":"2012-05-03T07:45:43.000Z","updated_at":"2025-08-27T01:32:22.000Z","dependencies_parsed_at":"2022-08-06T13:16:13.419Z","dependency_job_id":null,"html_url":"https://github.com/plenluno/libnode","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/plenluno/libnode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plenluno%2Flibnode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plenluno%2Flibnode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plenluno%2Flibnode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plenluno%2Flibnode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plenluno","download_url":"https://codeload.github.com/plenluno/libnode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plenluno%2Flibnode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30398175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: 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":["c-plus-plus","nodejs"],"created_at":"2024-07-30T22:01:05.986Z","updated_at":"2026-03-11T20:02:13.933Z","avatar_url":"https://github.com/plenluno.png","language":"C++","funding_links":[],"categories":["TODO scan for Android support in followings","C++"],"sub_categories":[],"readme":"libnode\n=======\n\n[![Build Status](https://travis-ci.org/plenluno/libnode.png?branch=master)](https://travis-ci.org/plenluno/libnode)\n\nlibnode is a C++ implementation of Node.js.\n\nJust like Node.js, libnode provides non-blocking I/O,\nwhich enables you to develop scalable Web applications in C++.\nlibnode is faster and smaller than Node.js,\nso it is especially suitable for embedded devices.\n\n### Source Code\n\nYou need to clone all the dependant submodules to build libnode.\n\n    git clone --recursive https://github.com/plenluno/libnode.git\n\n### Build\n\n##### Linux/Mac\n\n```sh\nmkdir libnode/build\ncd libnode/build\ncmake ..\nmake\n```\n\nThe memory management of libnode is automatic, based on either shared_ptr or bdw-gc.  \nlibnode uses shared_ptr by default. In order to use bdw-gc,  \n\n    cmake -DLIBNODE_USE_BDWGC=ON ..\n\nIf you'd like to post messages to libnode from other threads in your application,\n\n    cmake -DLIBNODE_USE_THREAD=ON ..\n\n##### Windows\n\n    tools/windows-cmake.ps1 [cmake-option ...]\n\n##### Android\n\n    export ANDROID_NDK=/path/to/android-ndk\n    tools/android-cmake.sh [cmake-option ...]\n\n##### iOS\n\n    tools/ios-cmake.sh [cmake-option ...]\n\n### Example\n\nThe following HTTP server responds with \"Hello World\" for every request.\n\n```cpp\nauto srv = http::Server::create(\n    JsClosure::create([] (JsArray::Ptr args) {\n        auto res = args-\u003egetPtr\u003chttp::ServerResponse\u003e(1);\n        res-\u003esetHeader(http::HEADER_CONTENT_TYPE, str(\"text/plain\"));\n        res-\u003eend(str(\"Hello World\\n\"));\n        return UNDEFINED;\n    }));\nsrv-\u003elisten(1337, str(\"127.0.0.1\"));\nnode::run();\n```\n\nFor more information about the usage, please refer to libnode/gtest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplenluno%2Flibnode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplenluno%2Flibnode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplenluno%2Flibnode/lists"}