This package contains the standalone browser UI for exploring generated Stripe schema data with PGlite.
The visualizer has two parts:
pnpm explorer:buildgenerates static artifacts.apps/visualizerloads those artifacts into PGlite and lets you run SQL in the browser.
apps/visualizer/public/explorer-data/bootstrap.sqlapps/visualizer/public/explorer-data/manifest.json
These files are generated and should stay out of version control.
pnpm explorer:build
pnpm visualizer
pnpm visualizer:with-datapnpm visualizer:with-data rebuilds the explorer data and then starts the visualizer app.
At runtime, the app loads manifest.json first and then hydrates PGlite from bootstrap.sql.
After hydration, all SQL runs locally in the browser against the generated Stripe schema.
pnpm explorer:build is the normal command, but the underlying phase scripts still exist for debugging:
bun run scripts/explorer-harness.ts start
bun run scripts/explorer-migrate.ts --api-version=2020-08-27
bun run scripts/explorer-seed.ts --api-version=2020-08-27 --seed=42
bun run scripts/explorer-export.ts
bun run scripts/explorer-harness.ts stop- SQL bootstrap is preferred for speed and consistency.
- The build pipeline recreates the artifacts from scratch on each run.
- The deploy/install dashboard stays in
packages/dashboard; this package only contains the schema visualizer UI.