@codesandbox/sandpack-client
    TypeScript icon, indicating that this package has built-in type declarations

    0.13.0 • Public • Published

    Component toolkit for live running code editing experiences

    Sandpack client

    This is a small foundation package that sits on top of the bundler. It is framework agnostic and facilitates the handshake between your context and the bundler iframe.

    import { SandpackClient } from "@codesandbox/sandpack-client";
    
    const client = new SandpackClient("#preview", {
      files: {
        "/index.js": {
          code: `console.log(require('uuid'))`,
        },
      },
      entry: "/index.js",
      dependencies: {
        uuid: "latest",
      },
    });

    Read more

    Keywords

    none

    Install

    npm i @codesandbox/sandpack-client

    DownloadsWeekly Downloads

    1,759

    Version

    0.13.0

    License

    GPL-2.0

    Unpacked Size

    97.9 MB

    Total Files

    430

    Last publish

    Collaborators

    • compuives
    • siddharthkp
    • christianalfoni
    • alexnm
    • matchai
    • danilowoz