Skip to main content

@powerduck/schema-editor

Schema-aware Monaco editor for JSON, YAML, and JavaScript. Driven by any JSON Schema with ghost text, popup completion, enum dropdowns, example auto-fill, and schema diagnostics.

  • Package name: @powerduck/schema-editor
  • Version:
  • License: MIT

Features

  • Three languages — JSON, YAML, and JavaScript (Postman test scripts)
  • Schema-driven completion — enum dropdowns, property names, and example auto-fill from any JSON Schema
  • Ghost text — inline suggestions for the next expected token
  • Schema diagnostics — validation errors inline, with a status bar
  • Monaco under the hood — syntax highlighting, minimap, command palette, all editors get
  • Light/dark themespowerduck-light and powerduck-dark
  • Self-contained core — schema resolution, sample generation, and diagnostics work without React

Next steps