{"id":21050949,"url":"https://github.com/theopenwebjp/jsonform-loader","last_synced_at":"2026-04-13T09:31:18.712Z","repository":{"id":40952943,"uuid":"152759150","full_name":"theopenwebjp/jsonform-loader","owner":"theopenwebjp","description":"Loader for JSON Form library, for loading dependencies via JS.","archived":false,"fork":false,"pushed_at":"2023-10-26T23:18:20.000Z","size":633,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T17:34:29.638Z","etag":null,"topics":["javascript","js","json","json-schema"],"latest_commit_sha":null,"homepage":"","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/theopenwebjp.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":"2018-10-12T14:02:42.000Z","updated_at":"2023-07-12T13:23:58.000Z","dependencies_parsed_at":"2024-11-19T15:49:02.444Z","dependency_job_id":"17243f31-b84b-4b58-9b3b-1189a1e89906","html_url":"https://github.com/theopenwebjp/jsonform-loader","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.46153846153846156","last_synced_commit":"ee7f37c36a44ba7a1a29689742bc7ac771ff0489"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/theopenwebjp/jsonform-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fjsonform-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fjsonform-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fjsonform-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fjsonform-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theopenwebjp","download_url":"https://codeload.github.com/theopenwebjp/jsonform-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fjsonform-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["javascript","js","json","json-schema"],"created_at":"2024-11-19T15:48:49.582Z","updated_at":"2026-04-13T09:31:18.691Z","avatar_url":"https://github.com/theopenwebjp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\n\r\n- [Loader for JSON Form](https://github.com/jsonform/jsonform)\r\n\r\nLoads dependencies by array of keys.  \r\nFollowng are always loaded because required: css, jquery, underscore  \r\nCheck ./index.html for a simple demo.\r\nThe dependencies required depend on what functionality is needed.\r\nTherefore, I created this demo to load the dependencies programmatically.\r\n\r\n## Reason for making\r\n\r\nIn the Github issue on jsonform below, I inquired about an npm module.\r\nAlthough there is an npm module([jsonform](https://www.npmjs.com/package/jsonform)) available, the dependencies are not loaded together.\r\n\r\n- [Maintainers and going forward](https://github.com/jsonform/jsonform/issues/177)\r\n\r\n## Usage\r\n\r\n```bash\r\nnpm install @theopenweb/jsonform-loader\r\n```\r\n\r\nInstall dependencies: `npm install`\r\n\r\nPlace jsonform into lib directory. Default settings work when jsonform is cloned into lib.\r\nOtherwise, use lib from node_modules.\r\n\r\nScript is in ./dist/bundle.js  \r\nTo build use `npm run build`.\r\n\r\n```javascript\r\n// Sets options(mainly urls if using setting non-standard format.)\r\n// const BASE = `../lib/jsonform` // libの場合\r\nconst BASE = `../node_modules/jsonform` // node_modulesの場合\r\nconst options = {\r\n    depsUrl: `${BASE}/jsonform/deps/`, // deps directory url\r\n    jsonFormUrl: `${BASE}/jsonform/lib/jsonform.js` // jsonform.js url\r\n}\r\nJsonFormSchema.setOptions(options)\r\n\r\n// Get array of available keys to set dependencies.\r\nconst keys = JsonFormSchema.getKeys()\r\nconsole.log('available keys', keys)\r\n\r\n// Load without any optional dependencies.\r\nJsonFormSchema.load().then(()=\u003e{\r\n    // CAN USE JsonForm here\r\n})\r\n\r\n// Load with optional dependencies.\r\nJsonFormSchema.load(keys).then(()=\u003e{\r\n    // CAN USE JsonForm with dependencies in keys loaded\r\n})\r\n```\r\n\r\n## Test\r\n\r\nExample can be tested via below:\r\n\r\n```bash\r\nnpx http-server ./\r\n# Go to http://localhost:8080/examples\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fjsonform-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopenwebjp%2Fjsonform-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fjsonform-loader/lists"}