← All glossary terms
Glossary

Code Canvas

GlossaryBy OpenCharts TeamPublished

Code Canvas is OpenCharts’ in-browser coding workspace — a Sandpack-powered live preview, multi-file editor, terminal, file tree, AI iterations, and a per-project Postgres database.

In depth

Code Canvas is where Theo-generated code projects live. The web version provides Sandpack live preview, a code editor, runtime error surfacing, and a “Try-to-fix” one-click repair flow. The desktop (Theo Desk) version adds a real PTY terminal, a multi-tab file tree, a CodeMirror editor, and a local working directory mirrored to disk.

Every project optionally enables a managed Neon Postgres database with per-project credentials, SDK helpers (window.__db, window.__auth), and an end-user auth surface — so AI-built apps can ship with real persistence and login.

Examples

  • A todo app with login
  • A leaderboard with real-time data

Also known as

Code workspaceTheo Code Canvas

Want to put this concept to work in OpenCharts?

Open Code Canvas

Related terms