{"id":20597080,"url":"https://github.com/tradle/build-model","last_synced_at":"2025-07-03T12:06:42.285Z","repository":{"id":66294679,"uuid":"81403953","full_name":"tradle/build-model","owner":"tradle","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-09T06:02:06.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-06T15:18:47.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tradle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-02-09T03:18:43.000Z","updated_at":"2017-02-09T03:18:51.000Z","dependencies_parsed_at":"2023-02-22T13:00:57.243Z","dependency_job_id":null,"html_url":"https://github.com/tradle/build-model","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tradle/build-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fbuild-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fbuild-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fbuild-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fbuild-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradle","download_url":"https://codeload.github.com/tradle/build-model/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fbuild-model/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263322856,"owners_count":23448718,"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":[],"created_at":"2024-11-16T08:20:09.160Z","updated_at":"2025-07-03T12:06:42.255Z","avatar_url":"https://github.com/tradle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tradle/build-model\n\n## Usage\n\n```js\n// example.js\nconst builders = require('@tradle/build-model')\nconst model = builders.model({ models })\n  .id('tradle.BlahProduct')\n  .subClassOf('tradle.FinancialProduct')\n  .forms(['tradle.AboutYou'])\n  .properties({\n    blah: builders.property()\n      .type('string')\n      .readOnly(true)\n      .title('No, really, blah'),\n\n    blahblah: builders.property()\n      .type('date'),\n      \n    blahblahblah: builders.property()\n      .type('object')\n      .ref('tradle.Photo')\n  })\n  .toJSON()\n\nconsole.log(JSON.stringify(model, null, 2))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Fbuild-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradle%2Fbuild-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Fbuild-model/lists"}