{"id":20773570,"url":"https://github.com/baybreezy/strapi-plugin-gen-types","last_synced_at":"2025-04-30T15:07:42.968Z","repository":{"id":257803900,"uuid":"863834424","full_name":"BayBreezy/strapi-plugin-gen-types","owner":"BayBreezy","description":"Generate types for the different collections, single types \u0026 components found in your application","archived":false,"fork":false,"pushed_at":"2025-03-16T06:51:00.000Z","size":1709,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T17:11:18.781Z","etag":null,"topics":["strapi-plugin","strapi5"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/strapi-plugin-gen-types","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/BayBreezy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"llehXIrI8g","thanks_dev":null,"custom":null}},"created_at":"2024-09-27T02:13:15.000Z","updated_at":"2025-02-19T03:06:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"d44a8178-8f8a-4b4b-a833-be5d1f7eb87b","html_url":"https://github.com/BayBreezy/strapi-plugin-gen-types","commit_stats":null,"previous_names":["baybreezy/strapi-plugin-gen-types"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BayBreezy%2Fstrapi-plugin-gen-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BayBreezy%2Fstrapi-plugin-gen-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BayBreezy%2Fstrapi-plugin-gen-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BayBreezy%2Fstrapi-plugin-gen-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BayBreezy","download_url":"https://codeload.github.com/BayBreezy/strapi-plugin-gen-types/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251728091,"owners_count":21634146,"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":["strapi-plugin","strapi5"],"created_at":"2024-11-17T12:26:15.393Z","updated_at":"2025-04-30T15:07:42.941Z","avatar_url":"https://github.com/BayBreezy.png","language":"TypeScript","funding_links":["https://buymeacoffee.com/llehXIrI8g"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"/Gen Types Logo.png\" style=\"height: 70px; margin: 0px; border-radius: 12px;\" /\u003e\n\n# Strapi Plugin Gen Types\n\nGenerate types for the different collections, single types \u0026 components found in your application.\n\n![Screenshot of Gen Types UI in Strapi Admin Panel](/screenshot.jpeg)\n\n\u003e This plugin is still in development. Please use with caution.\n\n\u003e This plugin will not run in production. It is only meant to be used in development.\n\n## Installation\n\n```bash\nyarn add strapi-plugin-gen-types\n```\n\n```bash\nnpm install strapi-plugin-gen-types\n```\n\n## Configuration\n\nYou can configure the plugin by updating the `config/plugins.ts` file in your Strapi project.\n\nThe following options are available:\n\n- `outputLocation` - The location where the types will be generated. Default: `src/genTypes`\n- `singleFile` - Whether to generate a single file for all types or separate files for each collection. Default: `false`\n\n```typescript\n// config/plugins.ts\nexport default ({ env }) =\u003e ({\n  \"gen-types\": {\n    enabled: true,\n    config: {\n      outputLocation: \"myTypes.ts\",\n      // If this is true, then the outputLocation should be the location to a .ts file\n      singleFile: true,\n    },\n  },\n});\n```\n\nThe plugin will generate types for the collections found in the `api` folder of your Strapi project.\n\nIt will also add a few extra interfaces like `User`, `Role`, `Media` etc.\n\n## Admin UI\n\nThe plugin will add a new menu item `Generated Types`. This page will show the generated interfaces.\n\nYou can expand each interface to see the fields and their types.\n\nClicking on the copy button will copy the interface to your clipboard.\n\n## License\n\nMIT\n\n## Contributing\n\nI am super new to React. I prefer Nuxt. I am not sure if how I implemented the Admin UI is the best way to do it. I would appreciate any help in improving it. Thanks.\n\nJust fork the repo and create a PR. I will be happy to merge it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaybreezy%2Fstrapi-plugin-gen-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaybreezy%2Fstrapi-plugin-gen-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaybreezy%2Fstrapi-plugin-gen-types/lists"}