{"_id":"@d556f8/gws-emul-vite","_rev":"4-65152ea158dd1e78b608ef0892e1da8e","name":"@d556f8/gws-emul-vite","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@d556f8/gws-emul-vite","version":"0.1.0","keywords":["google-apps-script","gas","emulator","vite","vite-plugin","dev-server"],"author":{"name":"Juhyeon Lee","email":"l.juhyeonni@gmail.com"},"license":"MIT","_id":"@d556f8/gws-emul-vite@0.1.0","maintainers":[{"name":"d556f8","email":"l.juhyeonni@gmail.com"}],"homepage":"https://github.com/juhyeonni/gws-emul#readme","bugs":{"url":"https://github.com/juhyeonni/gws-emul/issues"},"dist":{"shasum":"7002e2bbc9467daa99c2f1abc7fb000a142accc1","tarball":"https://registry.npmjs.org/@d556f8/gws-emul-vite/-/gws-emul-vite-0.1.0.tgz","fileCount":28,"integrity":"sha512-y3HyULW3hckG/4qVFQvcGWi/n9/mvTe3PzQXTAKDLRP5eKRsLHU8NSGdN3lUbvEWvERUDRK5TA3vpvmRF+GeDQ==","signatures":[{"sig":"MEQCIBQPHojyGh4znMm4bY9i3tcpD3wkzpvZUC+DvkjD0i5qAiAWaedO+ANa69Nk2lFpHE6Qnnp0axw6gcWYX6wGWU8ukg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55233},"main":"./dist/index.js","type":"module","_from":"file:d556f8-gws-emul-vite-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./dist/client.d.ts","default":"./dist/client.js"},"./globals":{"types":"./globals.d.ts"}},"private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","pretest":"pnpm --filter @d556f8/gws-emul-core build && pnpm --filter @d556f8/gws-emul-cli build","typecheck":"tsc --noEmit","pretypecheck":"pnpm --filter @d556f8/gws-emul-core build && pnpm --filter @d556f8/gws-emul-cli build"},"_npmUser":{"name":"d556f8","email":"l.juhyeonni@gmail.com"},"_resolved":"/private/var/folders/bd/dg89nk9d7zx84nyr42c0sv_r0000gp/T/5882a8ca44777d86b507d96f34dcc1aa/d556f8-gws-emul-vite-0.1.0.tgz","_integrity":"sha512-y3HyULW3hckG/4qVFQvcGWi/n9/mvTe3PzQXTAKDLRP5eKRsLHU8NSGdN3lUbvEWvERUDRK5TA3vpvmRF+GeDQ==","deprecated":"moved to @gws-emul/vite","repository":{"url":"git+https://github.com/juhyeonni/gws-emul.git","type":"git","directory":"packages/vite"},"_npmVersion":"11.12.1","description":"Vite plugin for gws-emul — runs a GAS backend in the dev server, injects google.script.run/history, mounts the dashboard.","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"@d556f8/gws-emul-cli":"0.1.0","@d556f8/gws-emul-core":"0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.1.4","vitest":"^4.1.10","typescript":"^7.0.2","@types/node":"^26.1.1"},"peerDependencies":{"vite":"^8.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gws-emul-vite_0.1.0_1788253382267_0.3010830614126412","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@d556f8/gws-emul-vite","version":"0.1.1","keywords":["google-apps-script","gas","emulator","vite","vite-plugin","dev-server"],"author":{"name":"Juhyeon Lee","email":"l.juhyeonni@gmail.com"},"license":"MIT","_id":"@d556f8/gws-emul-vite@0.1.1","maintainers":[{"name":"d556f8","email":"l.juhyeonni@gmail.com"}],"homepage":"https://github.com/juhyeonni/gws-emul#readme","bugs":{"url":"https://github.com/juhyeonni/gws-emul/issues"},"dist":{"shasum":"55c4da869054761123de78257a262f0c05aec900","tarball":"https://registry.npmjs.org/@d556f8/gws-emul-vite/-/gws-emul-vite-0.1.1.tgz","fileCount":28,"integrity":"sha512-0y1C/ugWbdWuD0cGTiHp7K3KNicLcqvPKnwAhwp/wiFnGuz3+yEIVnP+mkFOLMGFQQ5ubncFrgLCA7HTB674PA==","signatures":[{"sig":"MEUCIFPPZYlI5LG4gsgdSZrGzSi3xQmO723Jonbs75cSPHJPAiEAw8uv8qulMim90e3tc502UqFn57UOvgm0jP62SAN2WF4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55375},"main":"./dist/index.js","type":"module","_from":"file:d556f8-gws-emul-vite-0.1.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./dist/client.d.ts","default":"./dist/client.js"},"./globals":{"types":"./globals.d.ts"}},"private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.build.json","pretest":"pnpm --filter @d556f8/gws-emul-core build && pnpm --filter @d556f8/gws-emul-cli build","typecheck":"tsc --noEmit","pretypecheck":"pnpm --filter @d556f8/gws-emul-core build && pnpm --filter @d556f8/gws-emul-cli build"},"_npmUser":{"name":"d556f8","email":"l.juhyeonni@gmail.com"},"_resolved":"/private/var/folders/bd/dg89nk9d7zx84nyr42c0sv_r0000gp/T/9c302a36b7ef5b2643873bcf1a7522ea/d556f8-gws-emul-vite-0.1.1.tgz","_integrity":"sha512-0y1C/ugWbdWuD0cGTiHp7K3KNicLcqvPKnwAhwp/wiFnGuz3+yEIVnP+mkFOLMGFQQ5ubncFrgLCA7HTB674PA==","repository":{"url":"git+https://github.com/juhyeonni/gws-emul.git","type":"git","directory":"packages/vite"},"_npmVersion":"11.12.1","description":"Vite plugin for gws-emul — runs a GAS backend in the dev server, injects google.script.run/history, mounts the dashboard.","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"@d556f8/gws-emul-cli":"0.1.1","@d556f8/gws-emul-core":"0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.1.4","vitest":"^4.1.10","typescript":"^7.0.2","@types/node":"^26.1.1"},"peerDependencies":{"vite":"^8.1.4"},"_npmOperationalInternal":{"tmp":"tmp/gws-emul-vite_0.1.1_1788254199504_0.39900133771105506","host":"s3://npm-registry-packages-npm-production"},"deprecated":"moved to @gws-emul/vite"}},"time":{"created":"2026-09-01T09:03:01.856Z","modified":"2026-09-03T09:05:13.756Z","0.1.0":"2026-09-01T09:03:02.400Z","0.1.1":"2026-09-01T09:16:39.633Z"},"bugs":{"url":"https://github.com/juhyeonni/gws-emul/issues"},"author":{"name":"Juhyeon Lee","email":"l.juhyeonni@gmail.com"},"license":"MIT","homepage":"https://github.com/juhyeonni/gws-emul#readme","keywords":["google-apps-script","gas","emulator","vite","vite-plugin","dev-server"],"repository":{"url":"git+https://github.com/juhyeonni/gws-emul.git","type":"git","directory":"packages/vite"},"description":"Vite plugin for gws-emul — runs a GAS backend in the dev server, injects google.script.run/history, mounts the dashboard.","maintainers":[{"name":"d556f8","email":"l.juhyeonni@gmail.com"}],"readme":"# @d556f8/gws-emul-vite\n\nVite plugin for [gws-emul](https://github.com/juhyeonni/gws-emul): runs your\nApps Script backend inside the dev server and wires the browser to it.\n\n```sh\npnpm add -D @d556f8/gws-emul-vite\n```\n\n```ts\nimport { gwsEmul } from \"@d556f8/gws-emul-vite\";\n\nexport default {\n  plugins: [\n    gwsEmul({\n      backend: { entry: \"./src/appscript/index.ts\" },\n      persist: {},          // writes .gws-emul/state.json, restored on restart\n      stubs: { chat: true },\n      picker: true,         // account-picker interstitial for switching identities\n    }),\n  ],\n};\n```\n\nWhat it does:\n\n- boots your GAS entry point on the emulator and exposes it at\n  `POST /gws-emul/rpc`, injected into the page as `window.google.script.run`\n- injects `google.script.history` (`replace` / `push` / `setChangeHandler`),\n  recording each call so URL mirroring is visible instead of silent\n- drives `doGet` / `doPost` through `/gws-emul/exec`\n- serves an account picker and a `dev-user` cookie, so `Session.getActiveUser()`\n  answers per browser session\n- mounts the dashboard at `/__gws-emul/`\n- serves stored Drive file bytes at `/gws-emul/files/<id>`\n\n`@d556f8/gws-emul-vite/client` is a bundle-safe browser facade: `gasRunner()` returns\nthe real `google.script.run` in production and the dev shim locally, so the same\ncode ships to GAS unmodified.\n\nMIT © Juhyeon Lee\n","readmeFilename":"README.md"}