{"id":15286032,"url":"https://github.com/dominion-framework/dominion","last_synced_at":"2026-01-06T04:04:57.437Z","repository":{"id":57109161,"uuid":"199825603","full_name":"dominion-framework/dominion","owner":"dominion-framework","description":"Declarative Promise based Node.js framework for REST API with zero dependencies.","archived":false,"fork":false,"pushed_at":"2022-10-16T16:46:13.000Z","size":83,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-11T03:28:09.674Z","etag":null,"topics":["dominion","framework","nodejs","openapi","restfull-apis"],"latest_commit_sha":null,"homepage":"https://dominion.js.org","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/dominion-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-31T09:37:07.000Z","updated_at":"2022-05-11T13:45:36.000Z","dependencies_parsed_at":"2022-08-20T17:40:49.754Z","dependency_job_id":null,"html_url":"https://github.com/dominion-framework/dominion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dominion-framework/dominion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominion-framework%2Fdominion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominion-framework%2Fdominion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominion-framework%2Fdominion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominion-framework%2Fdominion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominion-framework","download_url":"https://codeload.github.com/dominion-framework/dominion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominion-framework%2Fdominion/sbom","scorecard":{"id":351242,"data":{"date":"2025-08-11","repo":{"name":"github.com/dominion-framework/dominion","commit":"3ebcdfc1ef32b2a0614aa08f4897e500311e8927"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}}]},"last_synced_at":"2025-08-18T08:20:52.526Z","repository_id":57109161,"created_at":"2025-08-18T08:20:52.526Z","updated_at":"2025-08-18T08:20:52.526Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28221545,"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","status":"online","status_checked_at":"2026-01-06T02:00:07.049Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dominion","framework","nodejs","openapi","restfull-apis"],"created_at":"2024-09-30T15:10:14.808Z","updated_at":"2026-01-06T04:04:57.408Z","avatar_url":"https://github.com/dominion-framework.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Dominion Node.js framework for RESTfull APIs](https://dominion.js.org/assets/logo.svg)\n\n# Dominion Node.js framework for RESTfull APIs\n[![Gitter](https://badges.gitter.im/dominion-framework/community.svg)](https://gitter.im/dominion-framework/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![install size](https://packagephobia.now.sh/badge?p=@dominion-framework/dominion)](https://packagephobia.now.sh/result?p=@dominion-framework/dominion)\n\nDeclarative Promise based Node.js framework for RESTful API\n\n## Installation\n```\nnpm i @dominion-framework/dominion\n```\n\n## Quick start\n```\nnpx dominion create hello\nnpm start\n```\nThis will run Node.js server with demo API's. \nOpen http://localhost:7042/hello to check results and examine \ngenerated files in folder `components/hello` to see how it works. \n\n# Documentation\n\nRead full documentation on __[dominion.js.org](https://dominion.js.org/)__.\n\n# Features highlight\n\n### Clear Endpoints Declaration\n\n```js\nmodule.exports = {\n\n    factory: BooksFactory,\n\n    GET: [\n        // books?genre=western\n        function (genre = null) {\n            return BooksFactory.find({genre});\n        }\n    ],\n\n    POST: [\n        // books/\n        function () {\n            return BooksFactory.new(this.request.body)\n                .then(book =\u003e book.save());\n        }\n    ]\n}\n```\n\n\n### Automatic RESTful URLs\n```js\n// Endpoint URLs is build based on function arguments:\n\nfunction (limit = 10, offset = 0) { }\n// https://api.example.com/books?limit=42\u0026offset=21\n\n\nfunction (libraryShelvesId, favoriteBooksId, orderBy = \"\") { }\n// https://api.example.com/library-shelves/42/favorite-books/84?orderBy=+author\n\n```\n\n### Models Schema Validation\n```js\n{\n    name: \"Book\",\n    \n    properties: {\n        id: Property.id(),\n        name: Property.string().min(1).required(),\n        isbn: Property.string().pattern(/^\\d-\\d{3}-\\d{5}-\\d$/).example(\"0-330-25864-8\"),\n        authorId: Property.model(\"Author\"),\n        genre: Property.set([\"Fantasy\", \"Science fiction\", \"Western\", \"Romance\"]),\n        creationTime: Property.date().private(),\n        modificationTime: Property.date().private()\n    }\n    ...\n}\n```\n\n### Annotations\n```js\nfunction(isbn) {\n    // @path: books/isbn/(\\d{1,5}[- ]\\d{1,7}[- ]\\d{1,6}[- ](?:\\d|X))\n    // @model: Books    \n    // @summary: Get book by ISBN number\n    \n    return BooksFactory.get({isbn})\n}\n```\n\n### OpenAPI (Swagger) documentation\n\nAutomatic OpenAPI documentation based on source code.\n\n\n### Zero Dependencies\n\n100Kb footprint Node.js framework with __no__ npm dependencies. If you also think, that\nyou don't need npm to [left-pad](https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/) a string. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominion-framework%2Fdominion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominion-framework%2Fdominion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominion-framework%2Fdominion/lists"}