{"id":31823236,"url":"https://github.com/spacelocust/git-node","last_synced_at":"2026-02-17T16:02:44.842Z","repository":{"id":62931643,"uuid":"563470024","full_name":"Spacelocust/git-node","owner":"Spacelocust","description":"Super powerfull, blazingly fast, node app","archived":false,"fork":false,"pushed_at":"2023-01-03T18:54:19.000Z","size":69,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T14:28:13.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/Spacelocust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-08T17:19:58.000Z","updated_at":"2022-11-10T08:08:30.000Z","dependencies_parsed_at":"2023-02-01T09:01:59.250Z","dependency_job_id":null,"html_url":"https://github.com/Spacelocust/git-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Spacelocust/git-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spacelocust%2Fgit-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spacelocust%2Fgit-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spacelocust%2Fgit-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spacelocust%2Fgit-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spacelocust","download_url":"https://codeload.github.com/Spacelocust/git-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spacelocust%2Fgit-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29549224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-10-11T14:27:51.334Z","updated_at":"2026-02-17T16:02:44.837Z","avatar_url":"https://github.com/Spacelocust.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Node\nA super powerfull 💪💪, blazingly fast 🚀🚀, node.js API 🔥🔥. 100% open source.\n\n## What is it about?\nThis app allows you to build a very simple yet powerful API using node, here are some of the features included :\n- Very fast response time\n- Automatic https\n- RESTful\n- Automatic caching\n- Real-time communication\n- Automatic CORS\n- Easy configuration\n\n## How to install?\n- Install it with `npm install @Spacelocust/git-node` OR `yarn add @Spacelocust/git-node`.\n- A config will be auto-generated in `config/git-node.json`. Make sure to review it and change it according to your needs.\n- You're good to go!\n\n## How does it work?\n### The config\nThe config happens in `config/git-node.json`.\n```yaml\n{\n    \"cors\": true,       # whether to use default CORS policies or not\n    \"fast\": true,       # whether to be fast 🚀🚀🚀🚀🚀🚀 or not\n    \"cache\": true,      # whether to enable automatic caching or not\n    \"real-time\": true,  # whether to allow automatic configuration of real-time communication\n    \"port\": 443         # the port to listen to\n}\n```\n\n### In your app\n\nImport `init` and then `createApiRoute` from `@Spacelocust/git-node`.\n\n```js\nimport { init, createApiRoute } from '@Spacelocust/git-node';\n\ninit(); // You can pass an argument to specify where the default config is, defaults to : config/git-node.json\n\nconst callback = (request, response) =\u003e {\n    response.send('This is my first route!');\n\n    return response;\n};\n\nconst options = { cors: false }; // Will use the default config, but the \"cors\" option will be overridden and set to false\n\ncreateApiRoute('/your-route', callback, options);\n```\nThe first argument is required and is the uri of your route. Must be a string.\n\nThe second argument is a callback containing everything you need to do. You will be provided with a `Request` and a `Response` object (the same as node.js uses). You **must** return a `Response` object.\n\nThe third argument is optional and allows you to change the config defined by default in `config/git-node.json`. Must be an object.\n\nIf you now request `localhost/your-route`, you will get a response containing 'This is my first route!'.\n\n## Make commands\nList of the available make commands.\n\n| Command  | Description                                            |\n|----------|--------------------------------------------------------|\n| start    | Build the containers and run them in the background    |\n| up       | Run the containers in the background                   |\n| stop     | Stop the running containers                            |\n| down     | Stop and remove the containers                         |\n| ssh      | Run sh into the api container                          |\n| lint     | Run the linter in the api container                    |\n| husky    | Install the husky pre-commit hooks ⚠️ REQUIRES NPM ⚠️  |\n\n## How long until 1.0?\nSee the [1.0 milestone](https://github.com/Spacelocust/git-node/milestone/1).\n\n## How can I contribute?\nSee [contributing](CONTRIBUTING.md).\n\n## Is there anything else I need to know?\nMake sure to also check the [code of conduct](CODE_OF_CONDUCT.md) if not already done 😉.\n\n## What do you recommend using for the front app with this API?\n[Svelte](https://github.com/sveltejs/svelte) 🔥.\n\n## Important note\nThis is not a real project. This is a git project to show use of good practices.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacelocust%2Fgit-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacelocust%2Fgit-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacelocust%2Fgit-node/lists"}