{"library":"toypack","type":"library","category":null,"description":"Toypack is a browser-based sandbox bundler for static sites, enabling live coding playgrounds similar to CodePen or CodeSandbox. Currently at version 1.1.0, it provides an easy-to-use API for bundling JavaScript code entirely in the browser without a server. Key differentiators: it ships TypeScript types, works via npm or CDN, and includes a simple addOrUpdateAsset/run workflow. However, npm usage requires polyfills for Node built-ins (path, fs, process,Buffer). Toypack is lightweight and focused on browser bundling, contrasting with server-side bundlers like Webpack or Rollup.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","sandbox","bundler","playground","live","browser","typescript"],"last_verified":"Sat May 09","install":[{"cmd":"npm install toypack","imports":["import { Toypack } from 'toypack'","import Toypack from 'toypack'","const { Toypack } = window.toypack;","import type { Toypack } from 'toypack'"]},{"cmd":"yarn add toypack","imports":[]},{"cmd":"pnpm add toypack","imports":[]}],"homepage":null,"github":"https://github.com/kylehue/toypack","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/toypack","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}