page.mdx 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. export const metadata = { title: "Introduction" }
  2. # Introduction
  3. The framework for User-Generated Interfaces (UGI). Dynamic, personalized UIs per user without sacrificing reliability.
  4. ## What is json-render?
  5. json-render is the framework for **User-Generated Interfaces**: dynamic UIs that end users generate through natural language prompts, powered by Generative UI. You define 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 interface is unique to the user, but every 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. Users generate - end users describe what they 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