page.tsx 2.4 KB

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