{"id":13395777,"url":"https://github.com/lvivski/start","last_synced_at":"2026-02-21T08:36:48.560Z","repository":{"id":2744154,"uuid":"3740230","full_name":"lvivski/start","owner":"lvivski","description":"Sinatra inspired web development framework for Dart","archived":false,"fork":false,"pushed_at":"2021-05-11T19:02:59.000Z","size":202,"stargazers_count":531,"open_issues_count":5,"forks_count":38,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-10-23T07:31:57.167Z","etag":null,"topics":[],"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/lvivski.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}},"created_at":"2012-03-16T15:36:24.000Z","updated_at":"2025-09-25T11:22:27.000Z","dependencies_parsed_at":"2022-09-08T05:41:45.351Z","dependency_job_id":null,"html_url":"https://github.com/lvivski/start","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/lvivski/start","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvivski%2Fstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvivski%2Fstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvivski%2Fstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvivski%2Fstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvivski","download_url":"https://codeload.github.com/lvivski/start/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvivski%2Fstart/sbom","scorecard":{"id":606326,"data":{"date":"2025-08-11","repo":{"name":"github.com/lvivski/start","commit":"c2f378f6825e6adf2d3f56b4de2034268b8da68b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 6/24 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T01:41:21.101Z","repository_id":2744154,"created_at":"2025-08-21T01:41:21.101Z","updated_at":"2025-08-21T01:41:21.101Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29677613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2024-07-30T18:00:31.688Z","updated_at":"2026-02-21T08:36:48.546Z","avatar_url":"https://github.com/lvivski.png","language":"Dart","readme":"# Start\n\nSinatra inspired web framework.\n\n[![](https://drone.io/lvivski/start/status.png)](https://drone.io/lvivski/start/latest)\n\nIt has simple API to serve static files, handle dynamic requests, websockets and create JSON responses.\n\n```dart\nimport 'package:start/start.dart';\n\nvoid main() {\n  start(port: 3000).then((Server app) {\n\n    app.static('web');\n\n    app.get('/hello/:name.:lastname?').listen((request) {\n      request.response\n        .header('Content-Type', 'text/html; charset=UTF-8')\n        .send('Hello, ${request.param('name')} ${request.param('lastname')}');\n    });\n\n    app.ws('/socket').listen((socket) {\n      socket.on('ping').listen((data) =\u003e socket.send('pong'));\n      socket.on('pong').listen((data) =\u003e socket.close(1000, 'requested'));\n    });\n\n  });\n}\n```\n\n## API\n\n### start()\n\nYou start the server with `start()` function. It has 3 named arguments and\nreturns `Server` future\n\n```dart\nstart({String host: '127.0.0.1', int port: 80})\n```\n\n### Server\n\n```dart\nlisten(host, port) // start the server (it's performed by the start function)\nstop() // stops the server\nget|post|put|delete(String route) // adds a handler, returns a Stream\u003cRequest\u003e\nws(String route) // adds WebSocket handler, returns a Stream\nstatic(String path, {bool jail, bool listing, bool links}) // serves static files from `path`, follows symlinks outside the root if jail is false\n```\n\n#### Routes\n\nRoute is a string with placeholders like `:firstname` its value is\navailable through the Request `param()` method. Placeholders should start\nwith colon `:`, if placeholder ends with a question mark `?` it's optional.\n`\"/hello/:firstname.:lastname?\"` will match `\"/hello/john\"` and\n`\"/hello/john.doe\"`\n\n### Request\n\n```dart\nheader(String name) // get header\naccepts(String type) // check accept header\ninput // raw HttpRequest stream\npath // requested URI path\nuri // requested URI\ncookies // provided cookies\nparam(String name) // get query param by name\npayload(Encoding enc) // get a promise with a Map of request body params\n```\n\n### Response\n\n```dart\nheader(String name, [value]) // get or set header\nget(String name) // get header\nset(String name) // set header\ntype(contentType) // set Content-Type\ncache(String cacheType) // set Cache-Control\nstatus(code) // sets response status code\ncookie(name, val) // sets cookie\nadd(string) // add a string to response\nclose() // closes response\nsend(string) // sends string and closes response\njson(Map data) // stringifies map and sends it\njsonp(String name, Map data) // stringifies map and sends it in callback as `name(data)`\nrender(viewName, [Map params]) // renders server view\n```\n\n### Socket\n\n```dart\nsend(message) // sends message\non(message, action) // adds handler to message\nclose(status, reason) // closes socket\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Yehor Lvivski \u003clvivski@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Server Frameworks","服务端框架","Libraries","Micro Frameworks inspired by Sinatra (Other Languages)"],"sub_categories":["Server Frameworks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvivski%2Fstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvivski%2Fstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvivski%2Fstart/lists"}