{"id":19436376,"url":"https://github.com/beached/lib_nodepp","last_synced_at":"2025-02-25T06:46:41.451Z","repository":{"id":149955363,"uuid":"58171666","full_name":"beached/lib_nodepp","owner":"beached","description":"NodePP library","archived":false,"fork":false,"pushed_at":"2019-09-23T03:27:16.000Z","size":725,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-07T21:12:32.718Z","etag":null,"topics":["cpp","event-driven","networking"],"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/beached.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":"2016-05-06T01:31:53.000Z","updated_at":"2019-09-23T03:27:18.000Z","dependencies_parsed_at":"2023-05-05T06:20:16.433Z","dependency_job_id":null,"html_url":"https://github.com/beached/lib_nodepp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Flib_nodepp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Flib_nodepp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Flib_nodepp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Flib_nodepp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beached","download_url":"https://codeload.github.com/beached/lib_nodepp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619430,"owners_count":19830204,"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":["cpp","event-driven","networking"],"created_at":"2024-11-10T15:10:51.521Z","updated_at":"2025-02-25T06:46:41.431Z","avatar_url":"https://github.com/beached.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"A high level library to let me do asynchronous c++ programming like that done in Node.js.\n```C++\n#include \u003ccstdlib\u003e\n\n#include \"base_work_queue.h\"\n#include \"lib_http_request.h\"\n#include \"lib_http_site.h\"\n#include \"lib_http_static_service.h\"\n\nint main( int argc, char const **argv ) {\n\tusing namespace daw::nodepp;\n\tusing namespace daw::nodepp::lib::net;\n\tusing namespace daw::nodepp::lib::http;\n\n\tauto site = create_http_site( );\n\tsite-\u003eon_listening( []( EndPoint endpoint ) {\n\t\t\t\tstd::cout \u003c\u003c \"Node++ Static HTTP Server\\n\";\n\t\t\t\tstd::cout \u003c\u003c \"Listening on \" \u003c\u003c endpoint \u003c\u003c '\\n';\n\t\t\t} )\n\t\t\t.on_error( []( base::Error error ) {\n\t\t\t\tstd::cerr \u003c\u003c \"Error: \";\n\t\t\t\tstd::cerr \u003c\u003c error \u003c\u003c '\\n';\n\t\t\t} )\n\t\t\t.listen_on( 8080 );\n\n\tauto service = create_static_service( \"/\", \"./web_files\" );\n\tservice-\u003econnect( site );\n\n\tbase::start_service( base::StartServiceMode::OnePerCore );\n\treturn EXIT_SUCCESS;\n}\n```\nAs you can see, one can create a static web server quickly and succinctly. Currently, the library focus is on networking and HTTP networking. Other async tasks will be added, such as Sqlite support as I need them.  The tests folder contains more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeached%2Flib_nodepp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeached%2Flib_nodepp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeached%2Flib_nodepp/lists"}