{"id":18538412,"url":"https://github.com/bryanbill/zero","last_synced_at":"2026-04-29T23:31:54.638Z","repository":{"id":163701516,"uuid":"639161861","full_name":"bryanbill/zero","owner":"bryanbill","description":"Zero is a fast and lightweight Dart backend framework.","archived":false,"fork":false,"pushed_at":"2023-06-19T22:11:21.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T02:12:09.177Z","etag":null,"topics":["api","backend","dart","flutter"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/bryanbill.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-05-10T22:29:06.000Z","updated_at":"2023-05-11T11:11:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"362b22bc-2a77-4735-98fc-04eb9330baa7","html_url":"https://github.com/bryanbill/zero","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bryanbill/zero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanbill","download_url":"https://codeload.github.com/bryanbill/zero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fzero/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"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":["api","backend","dart","flutter"],"created_at":"2024-11-06T19:43:21.023Z","updated_at":"2026-04-29T23:31:54.621Z","avatar_url":"https://github.com/bryanbill.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zero\n\nZero is a fast and lightweight **Dart** backend framework.\n\n## Installation\n\nActivate the Zero CLI tool:\n\n```bash\ndart pub global activate --source git https://github.com/bryanbill/zero\n# Or using -sgit\ndart pub global activate -sgit https://github.com/bryanbill/zero\n```\n\nCreate a new project:\n\n```bash\nzero new my_project\n```\n\n## Usage\n\nRun the project:\n\n```bash\ncd my_project\nzero run\n```\n\n## Examples\n\n### Hello World\n\n```dart\nimport 'package:zero/zero.dart';\n\nvoid main() {\n  final zero = Server(\n    port: 9090,\n    routes: [\n      Route(\n        path: '/hello',\n        controller: (req) =\u003e IndexController(req),\n      ),\n     \n    ],\n  );\n\n  zero.run();\n\n  print('Server running on port ${zero.port}');\n}\n\nclass IndexController extends Controller {\n  IndexController(Request request) : super(request);\n\n  @Path('/')\n  static Response hello(Request request) {\n    return Response.ok('Hello world!');\n  }\n}\n```\n\n### Working with Routes, Params, Body and Query\n\n```dart\nimport 'package:zero/zero.dart';\n\nclass UserController extends Controller {\n  UserController(Request request) : super(request);\n\n  // GET =\u003e /users\n  @Path('/')\n  static Future\u003cResponse\u003e user(Request req) async{\n    await Future.delayed(Duration(seconds: 1));\n    return Response.ok('User');\n  }\n\n  // GET =\u003e /users/:id\n  @Path('/:id')\n  @Param(['id'])\n  static Future\u003cResponse\u003e userById(Request req) async{\n    await Future.delayed(Duration(seconds: 1));\n    return Response.ok('User ${req.params['id']}');\n  }\n\n  // POST =\u003e /users\n  @Path('/', method: 'POST')\n  static Future\u003cResponse\u003e createUser(Request req) async{\n    await Future.delayed(Duration(seconds: 1));\n    return Response.created('User created');\n  }\n}\n\nvoid main(){\n    final zero = Server(\n        port: 9090,\n        routes: [\n        Route(\n            path: '/users',\n            controller: (req) =\u003e UserController(req),\n        ),\n        ],\n    );\n    \n    zero.run();\n    \n    print('Server running on port ${zero.port}');\n}\n\n```\n\n\n\n## Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request if you have a way to improve this project.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Fzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanbill%2Fzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Fzero/lists"}