{"id":13410615,"url":"https://github.com/BackendStack21/restana","last_synced_at":"2025-03-14T16:32:33.394Z","repository":{"id":42488364,"uuid":"88511749","full_name":"BackendStack21/restana","owner":"BackendStack21","description":"Restana is a lightweight and fast Node.js framework for building RESTful APIs.","archived":false,"fork":false,"pushed_at":"2024-04-06T14:27:44.000Z","size":851,"stargazers_count":457,"open_issues_count":1,"forks_count":26,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-05-19T15:44:47.354Z","etag":null,"topics":["framework","http","http-server","microservices","middleware","nodejs","nodejs-server","rest-api","restful","webserver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/BackendStack21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"custom":"https://www.paypal.me/kyberneees"}},"created_at":"2017-04-17T13:41:43.000Z","updated_at":"2024-06-04T13:14:31.985Z","dependencies_parsed_at":"2024-01-13T22:24:52.311Z","dependency_job_id":"3efa4efa-2733-4fe3-873e-7da12d03ca1f","html_url":"https://github.com/BackendStack21/restana","commit_stats":null,"previous_names":["jkyberneees/restana"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackendStack21%2Frestana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackendStack21%2Frestana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackendStack21%2Frestana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackendStack21%2Frestana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BackendStack21","download_url":"https://codeload.github.com/BackendStack21/restana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243456529,"owners_count":20293899,"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":["framework","http","http-server","microservices","middleware","nodejs","nodejs-server","rest-api","restful","webserver"],"created_at":"2024-07-30T20:01:07.980Z","updated_at":"2025-03-14T16:32:33.362Z","avatar_url":"https://github.com/BackendStack21.png","language":"JavaScript","readme":"# Introduction\n[![NPM version](https://badgen.net/npm/v/restana)](https://www.npmjs.com/package/restana)\n[![NPM Total Downloads](https://badgen.net/npm/dt/restana)](https://www.npmjs.com/package/restana)\n[![License](https://badgen.net/npm/license/restana)](https://www.npmjs.com/package/restana)\n[![TypeScript support](https://badgen.net/npm/types/restana)](https://www.npmjs.com/package/restana)\n[![Github stars](https://badgen.net/github/stars/jkyberneees/restana?icon=github)](https://github.com/jkyberneees/restana)\n\n\u003cimg src=\"docs/restana-logo.svg\" width=\"400\"\u003e  \n\nRestana is a lightweight and fast Node.js framework for building RESTful APIs. Inspired by Express, it provides a simple and intuitive API for routing, handling requests and responses, and middleware management. It is designed to be easy to use and integrate with other Node.js modules, allowing developers to quickly build scalable and maintainable APIs.\n\nRead more online:  \n- restana = faster and efficient Node.js REST APIs: https://itnext.io/restana-faster-and-efficient-node-js-rest-apis-1ee5285ce66\n\n![Performance Benchmarks](docs/Benchmarks.png)\n\u003e Check it yourself: https://web-frameworks-benchmark.netlify.app/result?f=feathersjs,0http,koa,nestjs-express,express,sails,nestjs-fastify,restana\n\n\n# Usage\nInstall\n```bash\nnpm i restana\n```\nCreate unsecure API service:\n```js\nconst restana = require('restana')\n\nconst service = restana()\nservice.get('/hi', (req, res) =\u003e res.send('Hello World!'))\n\nservice.start(3000);\n```\nCreating secure API service:\n```js\nconst https = require('https')\nconst restana = require('restana')\n\nconst service = restana({\n  server: https.createServer({\n    key: keys.serviceKey,\n    cert: keys.certificate\n  })\n})\nservice.get('/hi', (req, res) =\u003e res.send('Hello World!'))\n\nservice.start(3000);\n```\n\nUsing `http.createServer()`:\n```js\nconst http = require('http')\nconst restana = require('restana')\n\nconst service = restana()\nservice.get('/hi', (req, res) =\u003e res.send('Hello World!'))\n\nhttp.createServer(service).listen(3000, '0.0.0.0')\n```\n\n# More\n- Website and documentation: https://restana.21no.de\n","funding_links":["https://www.paypal.me/kyberneees"],"categories":["Frameworks","JavaScript","Repository","framework","rest-api"],"sub_categories":["Telegram","Web Frameworks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBackendStack21%2Frestana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBackendStack21%2Frestana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBackendStack21%2Frestana/lists"}