page.mdx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. export const metadata = { title: "Introduction" }
  2. # Introduction
  3. The Generative UI framework. Generate dynamic, personalized UIs from prompts without sacrificing reliability.
  4. ## What is json-render?
  5. json-render is a **Generative UI** framework: AI generates interfaces from natural language prompts, constrained to components you define. You set the guardrails -- what components exist, what props they take, what actions are available. AI generates JSON that matches your schema, and your components render it natively on web or mobile.
  6. Every generated interface is safe and predictable.
  7. ## Why json-render?
  8. ### Guardrailed
  9. AI can only use components in your catalog. No arbitrary code generation. Predefined components and actions for safe, predictable output.
  10. ### Predictable
  11. JSON output matches your schema, every time. Actions are declared by name, you control what they do.
  12. ### Fast
  13. Stream and render progressively as the model responds. No waiting for completion.
  14. ### Cross-Platform
  15. Render on web with React and on mobile with React Native from the same catalog and spec format.
  16. ## How it works
  17. 1. Define the guardrails - what components, actions, and data bindings AI can use
  18. 2. Prompt - describe what you want in natural language
  19. 3. AI generates JSON - output is always predictable, constrained to your catalog
  20. 4. Render fast - stream and render progressively as the model responds