Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { createPlateEditor, Plate, PlateContent } from "platejs/react"import { CodeDrawingPlugin } from "@platejs/code-drawing/react"import { CodeDrawingElement } from "@/components/ui/code-drawing-node"const editor = createPlateEditor({ plugins: [CodeDrawingPlugin.withComponent(CodeDrawingElement)], value: [ { type: CodeDrawingPlugin.key, data: { code: "graph TD\n A[Start] --> B{Ready?}\n B -->|Yes| C[Ship it]\n B -->|No| D[Keep working]", drawingType: "Mermaid", drawingMode: "Code", }, children: [{ text: "" }], }, ],})export default function CodeDrawingNodeDemo() { return ( <div className="w-full max-w-lg"> <Plate editor={editor} readOnly> <PlateContent readOnly className="outline-none" /> </Plate> </div> )}