{"id":19500572,"url":"https://github.com/naturalintelligence/nimnjs-schema-builder","last_synced_at":"2025-04-25T23:30:29.778Z","repository":{"id":65411347,"uuid":"122823452","full_name":"NaturalIntelligence/nimnjs-schema-builder","owner":"NaturalIntelligence","description":"Build schema from JS object or JSON to feed into nimnjs","archived":false,"fork":false,"pushed_at":"2018-11-08T01:39:02.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T15:45:08.148Z","etag":null,"topics":["builder","json","nimn","schema"],"latest_commit_sha":null,"homepage":"https://nimndata.github.io/nimnjs-schema-builder/","language":"JavaScript","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/NaturalIntelligence.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":"2018-02-25T09:50:42.000Z","updated_at":"2022-03-18T02:59:06.000Z","dependencies_parsed_at":"2023-01-22T06:55:15.694Z","dependency_job_id":null,"html_url":"https://github.com/NaturalIntelligence/nimnjs-schema-builder","commit_stats":null,"previous_names":["nimndata/nimnjs-schema-builder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalIntelligence%2Fnimnjs-schema-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalIntelligence%2Fnimnjs-schema-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalIntelligence%2Fnimnjs-schema-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalIntelligence%2Fnimnjs-schema-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaturalIntelligence","download_url":"https://codeload.github.com/NaturalIntelligence/nimnjs-schema-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"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":["builder","json","nimn","schema"],"created_at":"2024-11-10T22:08:56.840Z","updated_at":"2025-04-25T23:30:29.552Z","avatar_url":"https://github.com/NaturalIntelligence.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nimnjs-schema-builder\nBuild schema from JS object or JSON to feed into [nimnjs](https://github.com/nimndata/nimnjs-node).\n\n\n## Usages\n\nFirst install or add to your npm package\n```\n$npm install nimn_schema_builder\n```\n\n```js\nvar builder = require(\"nimn_schema_builder\");\n\nvar data = {\n    \"name\" : \"amit\",\n    \"age\" : 32,\n    \"human\" : true,\n    \"projects\" : [\n        {\n            \"name\" : \"some\",\n            \"description\" : \"some long description\"\n        }\n    ]\n};\n\nvar schema = builder.build(data);\n\n/*\nvar schema = {\n    \"type\": \"map\",\n    \"detail\": [\n        {\n            \"type\": \"string\",\n            \"name\": \"name\"\n        },\n        {\n            \"type\": \"number\",\n            \"name\": \"age\"\n        },\n        {\n            \"type\": \"boolean\",\n            \"name\": \"human\"\n        },\n        {\n            \"type\": \"list\",\n            \"detail\": {\n                \"type\": \"map\",\n                \"detail\": [\n                    {\n                        \"type\": \"string\",\n                        \"name\": \"name\"\n                    },\n                    {\n                        \"type\": \"string\",\n                        \"name\": \"description\"\n                    }\n                ]\n            },\n            \"name\": \"projects\"\n        }\n    ]\n}\n*/\n```\n\nYou can also use it in browser from [dist](dist/nimn-schema-builder.js) folder.\n\nCheck the [demo](https://nimndata.github.io/nimnjs-schema-builder/) for instant use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalintelligence%2Fnimnjs-schema-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturalintelligence%2Fnimnjs-schema-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalintelligence%2Fnimnjs-schema-builder/lists"}