{"id":15364320,"url":"https://github.com/thonatos/imorph","last_synced_at":"2026-07-01T19:32:22.781Z","repository":{"id":57272908,"uuid":"200469710","full_name":"thonatos/imorph","owner":"thonatos","description":"[WIP] a morph lib","archived":false,"fork":false,"pushed_at":"2019-12-26T08:54:18.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T14:58:55.349Z","etag":null,"topics":["analyzer","eggjs","generator","ts-morph"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/thonatos.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}},"created_at":"2019-08-04T08:43:02.000Z","updated_at":"2023-03-17T12:18:08.000Z","dependencies_parsed_at":"2022-09-15T11:54:26.000Z","dependency_job_id":null,"html_url":"https://github.com/thonatos/imorph","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/thonatos/imorph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thonatos%2Fimorph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thonatos%2Fimorph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thonatos%2Fimorph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thonatos%2Fimorph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thonatos","download_url":"https://codeload.github.com/thonatos/imorph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thonatos%2Fimorph/sbom","scorecard":{"id":882806,"data":{"date":"2025-08-11","repo":{"name":"github.com/thonatos/imorph","commit":"9b099b88f33134775bd603cd3ec925c22ce81544"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/semantic-release.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/semantic-release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/thonatos/imorph/semantic-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/semantic-release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/thonatos/imorph/semantic-release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/semantic-release.yml:28","Warn: npmCommand not pinned by hash: .github/workflows/semantic-release.yml:37","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   3 npmCommand dependencies pinned"],"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Code-Review","score":0,"reason":"Found 0/23 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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-24T08:52:10.078Z","repository_id":57272908,"created_at":"2025-08-24T08:52:10.078Z","updated_at":"2025-08-24T08:52:10.078Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35020870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["analyzer","eggjs","generator","ts-morph"],"created_at":"2024-10-01T13:11:21.740Z","updated_at":"2026-07-01T19:32:22.766Z","avatar_url":"https://github.com/thonatos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iMorph \u0026middot; [![GitHub license][license-square]][license-url]\n\n[![Egg.js][egg-square]][egg-url]\n[![Semantic Release][semantic-release-square]][semantic-release-url]\n[![NPM Version][npm-square]][npm-url]\n[![Codecov][codecov-square]][codecov-url]\n[![Github Actions][github-actions-square]][github-actions-url]\n\n[license-square]: https://img.shields.io/badge/license-MIT-blue.svg\n[license-url]: https://github.com/thonatos/imorph/blob/HEAD/LICENSE\n[egg-square]: https://img.shields.io/badge/Awesome-Egg.js-ff69b4.svg\n[egg-url]: https://eggjs.org/\n[npm-square]: https://img.shields.io/npm/v/imorph.svg\n[npm-url]: https://www.npmjs.com/package/imorph\n[codecov-square]: https://img.shields.io/codecov/c/github/thonatos/imorph.svg\n[codecov-url]: https://codecov.io/gh/thonatos/imorph\n[semantic-release-square]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]: https://github.com/semantic-release/semantic-release\n[github-actions-square]: https://github.com/thonatos/imorph/workflows/Actions%20Release/badge.svg\n[github-actions-url]: https://github.com/thonatos/imorph\n\n\u003e a morph lib.\n\n## Features\n\n### Code Analyzer\n\n- [x] analysis project dependencies\n\n### Egg generator\n\n\u003e Use the specific description file to generate an egg application.\n\n#### TODO\n\n- [x] egg controllers\n- [x] egg services\n- [ ] egg router\n- [ ] egg config\n\nconfig file\n\n```yml\n# egg.yml\n\nversion: '1.0.0'\n\nmodels:\n  user:\n    - id: number\n    - name: string\n    - mail: string\n    - nickname: string\n\ncontrollers:\n  user:\n    routes:\n      - route: /user/:id\n        method: GET\n        auth: 'BASIC_LOGIN'\n        description: get user detail by user id\n\nservices:\n  user:\n    methods:\n      - name: getUserById\n        description: get user detail by user id\n        request:\n          - name: id\n            type: number\n            required: true\n            description: user id\n        response:\n          type: any\n          description: user detail\n      - name: getUserByName\n        description: get user detail by user name\n        request:\n          - name: name\n            type: string\n            required: true\n            description: user name\n          - name: privateInfo\n            type: boolean\n            required: false\n            description: show private user info\n        response:\n          type: any\n          description: user detail\n    description: user service\n\nplugins:\n  - buc\n  - acl\n```\n\nservices code\n\n```typescript\n// services/user.ts\n\nimport { Service } from 'egg';\n\n/**\n * user service\n */\nexport default class UserService extends Service {\n  /**\n   * get user detail by user id\n   * @param {number} id - user id\n   * @return {any} user detail\n   */\n  public async getUserById(id: number): Promise\u003cany\u003e {\n    return this.ctx.proxy.user.getUserById(id);\n  }\n\n  /**\n   * get user detail by user name\n   * @param {string} name - user name\n   * @param {boolean} privateInfo - show private user info\n   * @return {any} user detail\n   */\n  public async getUserByName(name: string, privateInfo?: boolean): Promise\u003cany\u003e {\n    return this.ctx.proxy.user.getUserByName(name, privateInfo || null);\n  }\n}\n```\n\n## Development\n\n### prepare\n\n```bash\nyarn\n```\n\n### test\n\n```bash\nyarn test\n```\n\n\u003e you can debug with Visual Studio Code (Jest).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthonatos%2Fimorph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthonatos%2Fimorph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthonatos%2Fimorph/lists"}