{"id":29844588,"url":"https://github.com/esnet/jsonforms-esm","last_synced_at":"2025-07-29T16:44:45.215Z","repository":{"id":283174366,"uuid":"942318935","full_name":"esnet/jsonforms-esm","owner":"esnet","description":"The JSONForms library (https://jsonforms.io) wrapped in a Vue Webcomponent and bundled as an ECMAScript Module (ESM)","archived":false,"fork":false,"pushed_at":"2025-07-02T20:42:42.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-07-02T21:34:58.436Z","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/esnet.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,"zenodo":null}},"created_at":"2025-03-03T23:24:24.000Z","updated_at":"2025-07-02T20:42:46.000Z","dependencies_parsed_at":"2025-05-27T00:28:05.410Z","dependency_job_id":null,"html_url":"https://github.com/esnet/jsonforms-esm","commit_stats":null,"previous_names":["esnet/jsonforms-esm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esnet/jsonforms-esm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fjsonforms-esm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fjsonforms-esm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fjsonforms-esm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fjsonforms-esm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esnet","download_url":"https://codeload.github.com/esnet/jsonforms-esm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fjsonforms-esm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267719026,"owners_count":24133467,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-29T16:44:44.567Z","updated_at":"2025-07-29T16:44:45.192Z","avatar_url":"https://github.com/esnet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONForms Vue WebComponent ESM\n\n## Background and Wrapper Notes\n\nThis Repo contains a Vue wrapper for the JSONForms library.\n\nThe Vue3 wrapper builds a WebComponent. The standard Vue3 build tools cannot yield a webcomponent.\n\nBut! Using Vite as a build tool allows us to build the WebComponent and bundle it into into an ECMAScript module.\n\nECMAScript modules can be `import`ed directly into a browser, or included as a `\u003cscript\u003e` tag.\n\nWebComponents are a web standard (a built-in part of JavaScript) that allows users to create user-defined HTML Tags that can be used in HTML `\u003clike\u003e\u003c/like\u003e` `\u003cthis\u003e\u003c/this\u003e`.\n\n## OK... Why bother?\n\nThis allows you to use JSONForms in a totally vanilla web browser environment in HTML with no modification, using only a `\u003cscript\u003e` tag.\n\nWell, and a `\u003clink\u003e` tag if you want CSS.\n\nBut, for your target application, this means: use JSONForms with no NodeJS, no NPM, and no build step.\n\nThis stems from a development philosophy:\n  - use a simple tool, not a complicated tool\n  - avoid JavaScript\n  - avoid node, npm and friends\n  - avoid transpiling\n\n## Why would I want JSONForms?\n\nYou probably already know if you're here, but JSONForms allows you to render a form based on a JSON Schema.\n\n## OK, I'm sold, how do I use it?\n\nYou include a `\u003cscript\u003e` tag, and then use the `\u003cjson-form\u003e` tag.\n\nHere's a complete code listing:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eJSONForms Demo\u003c/title\u003e\n\n    \u003c!-- load CSS Styling for JSONForms from unpkg --\u003e\n    \u003clink rel='stylesheet' type='text/css' href='https://unpkg.com/jsonforms-esm@v3.5.1/dist/jsonforms.css'\u003e\n    \u003c!-- load JSONForms from unpkg --\u003e\n    \u003cscript src='https://unpkg.com/jsonforms-esm@v3.5.1/dist/jsonforms.esm.js'\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cjson-form\u003e\u003c/json-form\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Live demo\n\nhttps://unpkg.com/jsonforms-esm@3.5.1/dist/index.html\n\n## What if I want to version pin or serve a copy? (Flat-file lifecycle management)\n\n- Use your favorite download tool (web browser, curl, fetch, etc) to retrieve a copy of the ESM file:\n   https://unpkg.com/jsonforms-esm@v3.5.1/dist/jsonforms.esm.js\n\n- Use your favorite download tool (web browser, curl, fetch, etc) to retrieve a copy of the CSS file:\n   https://unpkg.com/jsonforms-esm@v3.5.1/dist/jsonforms.css\n\n- You now have the whole library\n\n- put these in your project in folder called `/lib`, with a version suffix, like:\n   ```\n   cp /path/to/downloaded/jsonforms.esm.js /path/to/project/lib/jsonforms.3.5.1.esm.js\n   cp /path/to/downloaded/jsonforms.css /path/to/project/lib/jsonforms.3.5.1.css\n   ```\n\n- now, create symlinks, so you can manage the versions in the future. (Use the link in your HTML, the link's target is an ephemeral copy)\n\n   ```\n   ln -s jsonforms.3.5.1.esm.js jsonforms.esm.js\n   ln -s jsonforms.3.5.1.css jsonforms.css\n   ```\n\n- commit the whole `/lib` directory\n\n- now, in your project you can use a link and script tag like this:\n  ```\n  \u003clink rel='stylesheet' type='text/css' href='lib/jsonforms.css'\u003e\n  \u003cscript src='lib/jsonforms.esm.js'\u003e\u003c/script\u003e\n  ```\n\n## If you don't understand why you'd need this form element, you should probably just use jsonforms from the canonical upstream repo with real documentation: `https://jsonforms.io/`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesnet%2Fjsonforms-esm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesnet%2Fjsonforms-esm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesnet%2Fjsonforms-esm/lists"}