{"id":13759321,"url":"https://github.com/gentics/mesh-model-generator","last_synced_at":"2025-04-15T19:30:45.685Z","repository":{"id":48032487,"uuid":"85596967","full_name":"gentics/mesh-model-generator","owner":"gentics","description":"Generates TypeScript Models from the Gentics Mesh RAML spec","archived":false,"fork":false,"pushed_at":"2022-12-02T06:56:47.000Z","size":405,"stargazers_count":3,"open_issues_count":9,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T01:13:07.489Z","etag":null,"topics":["mesh","models","raml-codegen","raml-converter","raml-tooling","typescript-generator"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gentics.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":"2017-03-20T15:57:31.000Z","updated_at":"2019-08-31T21:50:56.000Z","dependencies_parsed_at":"2023-01-22T16:30:14.495Z","dependency_job_id":null,"html_url":"https://github.com/gentics/mesh-model-generator","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Fmesh-model-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Fmesh-model-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Fmesh-model-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gentics%2Fmesh-model-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gentics","download_url":"https://codeload.github.com/gentics/mesh-model-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643045,"owners_count":21138353,"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":["mesh","models","raml-codegen","raml-converter","raml-tooling","typescript-generator"],"created_at":"2024-08-03T13:00:50.804Z","updated_at":"2025-04-15T19:30:45.350Z","avatar_url":"https://github.com/gentics.png","language":"TypeScript","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# Generator to render model interfaces from Gentics Mesh RAML\n\n[![npm version](https://badge.fury.io/js/mesh-model-generator.svg)](https://www.npmjs.com/package/mesh-model-generator)\n\n### NOTE\n\nThis package is work in progress and not ready for production use. It requires Gentics Mesh 0.8.x+\n\nRender the server interfaces returned by [Mesh](http://getmesh.io/) as type definitions which can be used in TypeScript.\nDesigned for use with TypeScript, but can be extended for other languages.\n\n\n## Usage as a module\n\n```bash\nnpm install mesh-model-generator\n```\n\n```TypeScript\nimport { readFileSync, writeFileSync } from 'fs';\nimport { parseAndGenerate } from 'mesh-model-generator';\n\nconst inputFile = readFileSync('./my-api.raml', 'utf-8');\nparseAndGenerate(inputFile)\n    .then(generatedModels =\u003e {\n        writeFileSync('./my-models.ts', generatedModels, 'utf-8');\n    })\n    .catch(err =\u003e console.error(err));\n```\n\n## Generating from the CLI\n\n```Bash\nnpm install -g mesh-model-generator\nmesh-model-generator my-api.raml \u003e model-declarations.ts\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgentics%2Fmesh-model-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgentics%2Fmesh-model-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgentics%2Fmesh-model-generator/lists"}