Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

3.5 KB
Raw Blame
{
    "$comment": "Single source of truth for the canvas platform contract. Loaded by build.mjs (bundling), the Python validator/build service (products/canvas/backend/source.py), and the artifact origin's CSP (products/canvas/backend/presentation/artifacts.py). The desktop app's freeform whitelist is asserted against this file by a contract test.",
    "canvasSdkVersion": "0.2.0",
    "supportedSdkVersions": ["0.1.0", "0.2.0"],
    "dependencies": {
        "react": { "version": "19.0.0", "url": "https://esm.sh/[email protected]" },
        "react-dom": { "version": "19.0.0", "url": "https://esm.sh/[email protected]?external=react" },
        "@posthog/quill": {
            "version": "0.3.0-beta.18",
            "url": "https://esm.sh/@posthog/[email protected]?external=react,react-dom"
        },
        "recharts": { "version": "2.15.0", "url": "https://esm.sh/[email protected]?external=react,react-dom" },
        "lucide-react": { "version": "1.21.0", "url": "https://esm.sh/[email protected]?external=react" },
        "dayjs": { "version": "1.11.13", "url": "https://esm.sh/[email protected]" },
        "d3": { "version": "7.9.0", "url": "https://esm.sh/[email protected]" },
        "three": { "version": "0.179.1", "url": "https://esm.sh/[email protected]" },
        "framer-motion": {
            "version": "12.23.12",
            "url": "https://esm.sh/[email protected]?external=react,react-dom&[email protected],[email protected]"
        },
        "zod": { "version": "3.25.76", "url": "https://esm.sh/[email protected]" },
        "@tanstack/react-table": {
            "version": "8.21.3",
            "url": "https://esm.sh/@tanstack/[email protected]?external=react,react-dom"
        },
        "@tanstack/react-virtual": {
            "version": "3.14.9",
            "url": "https://esm.sh/@tanstack/[email protected]?external=react,react-dom"
        },
        "react-hook-form": { "version": "7.85.0", "url": "https://esm.sh/[email protected]?external=react" },
        "lodash-es": { "version": "4.18.1", "url": "https://esm.sh/[email protected]" },
        "react-markdown": { "version": "10.1.0", "url": "https://esm.sh/[email protected]?external=react" },
        "papaparse": { "version": "5.6.0", "url": "https://esm.sh/[email protected]" }
    },
    "runtimeImports": {
        "react/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime",
        "react-dom/client": "https://esm.sh/[email protected]/client?external=react"
    },
    "allowedImportSpecifiers": [
        "@posthog/canvas-sdk",
        "react",
        "react-dom",
        "react-dom/client",
        "@posthog/quill",
        "recharts",
        "lucide-react",
        "dayjs",
        "d3",
        "three",
        "framer-motion",
        "zod",
        "@tanstack/react-table",
        "@tanstack/react-virtual",
        "react-hook-form",
        "lodash-es",
        "react-markdown",
        "papaparse"
    ],
    "csp": "sandbox allow-scripts allow-pointer-lock; default-src 'none'; base-uri 'none'; object-src 'none'; form-action 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'none'; img-src 'self' data: blob:; font-src 'self' data:; media-src 'self' data: blob:; frame-src 'none'; worker-src 'self' blob:",
    "limits": {
        "maxSourceFiles": 64,
        "maxSourceFileBytes": 524288,
        "maxSourceTotalBytes": 2097152,
        "maxArtifactFiles": 256,
        "maxArtifactFileBytes": 4194304,
        "maxArtifactTotalBytes": 12582912,
        "maxStateValueBytes": 65536,
        "maxStateKeysPerScope": 256,
        "maxGridPlacements": 24
    }
}