page.tsx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { PackageInstall } from "@/components/package-install";
  2. export const metadata = {
  3. title: "Installation | json-render",
  4. };
  5. export default function InstallationPage() {
  6. return (
  7. <article>
  8. <h1 className="text-3xl font-bold mb-4">Installation</h1>
  9. <p className="text-muted-foreground mb-8">
  10. Install the core package plus your renderer of choice.
  11. </p>
  12. <h2 className="text-xl font-semibold mt-12 mb-4">For React UI</h2>
  13. <PackageInstall packages="@json-render/core @json-render/react" />
  14. <h2 className="text-xl font-semibold mt-12 mb-4">For Remotion Video</h2>
  15. <PackageInstall packages="@json-render/core @json-render/remotion remotion @remotion/player" />
  16. <h2 className="text-xl font-semibold mt-12 mb-4">Peer Dependencies</h2>
  17. <p className="text-sm text-muted-foreground mb-4">
  18. json-render requires the following peer dependencies:
  19. </p>
  20. <ul className="list-disc list-inside text-sm text-muted-foreground space-y-1 mb-4">
  21. <li>
  22. <code className="text-foreground">react</code> ^19.0.0
  23. </li>
  24. <li>
  25. <code className="text-foreground">zod</code> ^4.0.0
  26. </li>
  27. </ul>
  28. <PackageInstall packages="react zod" />
  29. <h2 className="text-xl font-semibold mt-12 mb-4">For AI Integration</h2>
  30. <p className="text-sm text-muted-foreground mb-4">
  31. To use json-render with AI models, you&apos;ll also need the Vercel AI
  32. SDK:
  33. </p>
  34. <PackageInstall packages="ai" />
  35. </article>
  36. );
  37. }