{"id":18784693,"url":"https://github.com/andreoneti/nexxusjs","last_synced_at":"2026-05-05T19:31:11.260Z","repository":{"id":100576967,"uuid":"233487976","full_name":"AndreOneti/nexxusjs","owner":"AndreOneti","description":"Express server create.","archived":false,"fork":false,"pushed_at":"2022-12-11T20:34:44.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T18:23:52.259Z","etag":null,"topics":["express","expressjs","rest","rest-api","server"],"latest_commit_sha":null,"homepage":null,"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/AndreOneti.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":"2020-01-13T01:37:24.000Z","updated_at":"2020-01-15T04:17:32.000Z","dependencies_parsed_at":"2023-05-16T01:00:17.989Z","dependency_job_id":null,"html_url":"https://github.com/AndreOneti/nexxusjs","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"3321b6228c9208a0873270a6f056341aa947384a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreOneti%2Fnexxusjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreOneti%2Fnexxusjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreOneti%2Fnexxusjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreOneti%2Fnexxusjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreOneti","download_url":"https://codeload.github.com/AndreOneti/nexxusjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699580,"owners_count":19682575,"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":["express","expressjs","rest","rest-api","server"],"created_at":"2024-11-07T20:43:45.479Z","updated_at":"2025-12-21T08:30:15.034Z","avatar_url":"https://github.com/AndreOneti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nexxusjs\n\n  [![npm package](https://nodei.co/npm/nexxusjs.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/nexxusjs/)\n\n  [![NPM Version][npm-image]][npm-url]\n  [![NPM Downloads][downloads-image]][downloads-url]\n  [![Maintenance][maintenance-img]][maintenance-url]\n\n  [![Known Vulnerabilities][vulnerabilities-image]][vulnerabilities-url]\n  [![GitHub issues][issues-open-image]][issues-open-url]\n  [![GitHub forks][forks-image]][forks-url]\n  [![GitHub stars][stars-image]][stars-url]\n\n## Why\n\nThis library is designed to speed server creation and define routes.\nBut I need everyone's contribution to improve the library and grow fast and optimized.\n\nOpen a lot of tasks if necessary to improve this.\nI count on the collaboration of all.\n\n## How to use\n\n```sh\nyarn add nexxusjs\nor\nnpm install --save nexxusjs\n```\n\n\n### Simple express server create.\n\nThe server uses by default, cors released to everyone, morgan with 'dev' option and helmet\n\n```js\nconst nexxusjs = require('nexxusjs');\n\nconst default = require('./default/router');\nconst defaultPostRoute = require('./defaultPostRoute');\n\nnew nexxusjs()\n  .setPort(3000)\n  .setMiddleware(function (req, res, next) {\n    console.log(\"My middleware logic here\");\n    next();\n  })\n  .setMasterRout('/api')\n  .setRoute('/1', default)\n  .setRouteWithMiddleware('/2', default, function (req, res, next) {\n    console.log(\"Middleware logic here\");\n    next();\n  })\n  .createRoute('get', 'test', (req, res, next) =\u003e {\n    res.status(200).send(\"Work\").end();\n  })\n  .createRoute('post', '/test', defaultPostRoute)\n  .run()\n```\n\n## License\n\n  [![npm](https://img.shields.io/npm/l/loggers.svg)](https://github.com/AndreOneti/nexxusjs/blob/master/LICENSE)\n\n\n  [forks-image]: https://img.shields.io/github/forks/AndreOneti/nexxusjs.svg\n  [forks-url]: https://github.com/AndreOneti/nexxusjs\n  [downloads-image]: https://img.shields.io/npm/dt/nexxusjs.svg\n  [downloads-url]: https://npmjs.org/package/nexxusjs\n  [npm-image]: https://img.shields.io/npm/v/nexxusjs.svg\n  [npm-url]: https://npmjs.org/package/nexxusjs\n  [maintenance-img]: https://img.shields.io/badge/Maintained%3F-yes-green.svg\n  [maintenance-url]: https://github.com/AndreOneti/nexxusjs\n\n  [vulnerabilities-image]: https://snyk.io/test/github/AndreOneti/nexxusjs/badge.svg?targetFile=package.json\n  [vulnerabilities-url]: https://snyk.io/test/github/AndreOneti/nexxusjs?targetFile=package.json\n  [issues-open-image]: https://img.shields.io/github/issues/AndreOneti/nexxusjs.svg\n  [issues-open-url]: https://github.com/AndreOneti/nexxusjs/issues?q=is%3Aopen+is%3Aissue\n\n  [stars-image]: https://img.shields.io/github/stars/AndreOneti/nexxusjs.svg\n  [stars-url]: https://github.com/AndreOneti/nexxusjs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreoneti%2Fnexxusjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreoneti%2Fnexxusjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreoneti%2Fnexxusjs/lists"}