page.tsx 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. export const metadata = {
  2. title: "Introduction | json-render",
  3. };
  4. export default function DocsPage() {
  5. return (
  6. <article>
  7. <h1 className="text-3xl font-bold mb-4">Introduction</h1>
  8. <p className="text-muted-foreground mb-8">
  9. Predictable. Guardrailed. Fast. Let users generate dashboards, widgets, apps, and data visualizations from prompts.
  10. </p>
  11. <h2 className="text-xl font-semibold mt-12 mb-4">What is json-render?</h2>
  12. <p className="text-sm text-muted-foreground mb-4 leading-relaxed">
  13. json-render lets end users generate UI from natural language prompts — safely constrained to
  14. components you define. You set the guardrails: what components exist, what props they take,
  15. what actions are available. AI generates JSON that matches your schema, and your components
  16. render it natively.
  17. </p>
  18. <h2 className="text-xl font-semibold mt-12 mb-4">Why json-render?</h2>
  19. <div className="space-y-4 mb-8">
  20. <div>
  21. <h3 className="font-medium mb-1">Guardrailed</h3>
  22. <p className="text-sm text-muted-foreground">
  23. AI can only use components in your catalog. No arbitrary code generation.
  24. </p>
  25. </div>
  26. <div>
  27. <h3 className="font-medium mb-1">Predictable</h3>
  28. <p className="text-sm text-muted-foreground">
  29. JSON output matches your schema, every time. Actions are declared by name, you control what they do.
  30. </p>
  31. </div>
  32. <div>
  33. <h3 className="font-medium mb-1">Fast</h3>
  34. <p className="text-sm text-muted-foreground">
  35. Stream and render progressively as the model responds. No waiting for completion.
  36. </p>
  37. </div>
  38. </div>
  39. <h2 className="text-xl font-semibold mt-12 mb-4">How it works</h2>
  40. <ol className="list-decimal list-inside space-y-2 text-sm text-muted-foreground">
  41. <li>Define the guardrails — what components, actions, and data bindings AI can use</li>
  42. <li>Users prompt — end users describe what they want in natural language</li>
  43. <li>AI generates JSON — output is always predictable, constrained to your catalog</li>
  44. <li>Render fast — stream and render progressively as the model responds</li>
  45. </ol>
  46. </article>
  47. );
  48. }