Files
hyperframes/packages/studio/package.json
T
Miguel ÁngelandClaude Opus 4.6 e06e2c9004 fix(studio): render in-process instead of proxying to producer server
The Vite dev server proxied studio renders to a separate producer server
(port 9847) that had to be started manually in a second terminal. When
it wasn't running — the common case — renders silently failed with no
error message.

Replace the SSE proxy with direct in-process rendering via
@hyperframes/producer, the same code path used by the CLI and embedded
preview mode. All three entry points now render identically.

- Add @hyperframes/producer as a workspace dev dependency
- Resolve system Chrome before rendering (the producer only checks
  PRODUCER_HEADLESS_SHELL_PATH and the Puppeteer cache, not system paths)
- Use variable indirection + @vite-ignore to hide the dynamic import
  from esbuild's static analysis (vite.config.ts is bundled at startup)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 23:58:29 +02:00

64 lines
1.6 KiB
JSON

{
"name": "@hyperframes/studio",
"version": "0.2.3-alpha.2",
"description": "",
"repository": {
"type": "git",
"url": "https://github.com/heygen-com/hyperframes",
"directory": "packages/studio"
},
"files": [
"src",
"dist"
],
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": "./src/index.ts",
"./tailwind-preset": "./src/styles/tailwind-preset.ts"
},
"scripts": {
"dev": "vite",
"build": "vite build",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@codemirror/autocomplete": "^6.20.1",
"@codemirror/commands": "^6.10.3",
"@codemirror/lang-css": "^6.3.1",
"@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-javascript": "^6.2.2",
"@codemirror/language": "^6.12.2",
"@codemirror/search": "^6.6.0",
"@codemirror/state": "^6.6.0",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.40.0",
"@hyperframes/core": "workspace:*",
"@phosphor-icons/react": "^2.1.10",
"codemirror": "^6.0.1",
"motion": "^12.38.0"
},
"devDependencies": {
"@hyperframes/producer": "workspace:*",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.0",
"postcss": "^8.4.0",
"puppeteer-core": "^24.40.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
"vitest": "^3.2.4",
"zustand": "^5.0.0"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"zustand": "^4.0.0 || ^5.0.0"
}
}