{"id":26653757,"url":"https://github.com/ronin-co/codegen","last_synced_at":"2025-04-11T06:54:20.056Z","repository":{"id":282215160,"uuid":"946778417","full_name":"ronin-co/codegen","owner":"ronin-co","description":"Generates TypeScript types based on RONIN models.","archived":false,"fork":false,"pushed_at":"2025-04-02T13:32:26.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T14:31:19.919Z","etag":null,"topics":["codegen","ronin","ts","typescript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@ronin/codegen","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronin-co.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-11T16:57:26.000Z","updated_at":"2025-04-02T13:32:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"f93078ca-36fd-444f-9813-6ad328a5cab8","html_url":"https://github.com/ronin-co/codegen","commit_stats":null,"previous_names":["ronin-co/codegen"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-co%2Fcodegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-co%2Fcodegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-co%2Fcodegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronin-co%2Fcodegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronin-co","download_url":"https://codeload.github.com/ronin-co/codegen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358555,"owners_count":21090402,"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":["codegen","ronin","ts","typescript"],"created_at":"2025-03-25T04:42:16.985Z","updated_at":"2025-04-11T06:54:20.048Z","avatar_url":"https://github.com/ronin-co.png","language":"TypeScript","readme":"# RONIN Codegen\n\n[![tests](https://img.shields.io/github/actions/workflow/status/ronin-co/codegen/validate.yml?label=tests)](https://github.com/ronin-co/codegen/actions/workflows/validate.yml)\n[![code coverage](https://img.shields.io/codecov/c/github/ronin-co/codegen)](https://codecov.io/github/ronin-co/codegen)\n[![install size](https://packagephobia.com/badge?p=@ronin/codegen)](https://packagephobia.com/result?p=@ronin/codegen)\n\nThis package generates TypeScript code based on RONIN models.\n\n## Usage\n```typescript\nimport { generate } from '@ronin/codegen';\nimport { model, string } from 'ronin/schema';\n\nconst User = model({\n  slug: 'user',\n  pluralSlug: 'users',\n  fields: {\n    name: string(),\n    email: string({ required: true }),\n  },\n});\n\nconst generateCode = generate([User]);\n//       ^? string\n```\n\n## Testing\n\nUse the following command to run the test suite:\n\n```\nbun test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronin-co%2Fcodegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronin-co%2Fcodegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronin-co%2Fcodegen/lists"}