Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.03 KB

File metadata and controls

45 lines (33 loc) · 1.03 KB

JSON Forms HTML Renderer

A WebAssembly-powered web application that converts JSON Forms schemas into semantic HTML forms. Runs entirely in your browser with no server required.

Usage

Paste your JSON in this format:

{
  "schema": {
    "type": "object",
    "properties": {
      "name": { "type": "string", "title": "Full Name" },
      "email": { "type": "string", "format": "email" }
    },
    "required": ["name"]
  },
  "uischema": {
    "type": "VerticalLayout",
    "elements": [
      { "type": "Control", "scope": "#/properties/name" },
      { "type": "Control", "scope": "#/properties/email" }
    ]
  }
}

Click "Generate HTML" to see the rendered form.

Building

GOOS=js GOARCH=wasm go build -o public/jsonforms.wasm main.go

Dependencies

Related