From 063293be974f154cdadcf491656822d7847abeff Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Nov 2026 19:38:48 +0000 Subject: [PATCH] Add the Breakpoint side-event door Hosts can import a guest CSV, give volunteers a scan-only link, and watch a live checked-in count. A no-server demo runs the same check-in rules in the browser for the Nitro 05 loop. Co-authored-by: instilllive --- .gitignore | 1 + README.md | 39 ++- SUBMISSION.md | 5 + package-lock.json | 517 ++++++++++++++++++++++++++++++++-- package.json | 5 +- public/door.html | 4 +- public/door.js | 27 +- public/guest.html | 9 +- public/guest.js | 11 + public/host.html | 26 +- public/host.js | 106 ++++++- public/index.html | 7 +- public/styles.css | 80 +++++- samples/breakpoint-guests.csv | 13 + scripts/seed.ts | 63 +++++ src/app.ts | 107 ++++++- src/codes.ts | 57 +--- src/csv.ts | 194 +++++++++++++ src/db.ts | 37 +++ src/demo-event.ts | 8 + src/protocol.ts | 113 ++++++++ src/service.ts | 188 +++++++++++-- tests/browser-store.test.ts | 112 ++++++++ tests/import.test.ts | 115 ++++++++ tests/staff.test.ts | 102 +++++++ tsconfig.json | 4 +- web-demo/index.html | 86 ++++++ web-demo/main.ts | 374 ++++++++++++++++++++++++ web-demo/raw.d.ts | 18 ++ web-demo/store.ts | 384 +++++++++++++++++++++++++ web-demo/styles.css | 193 +++++++++++++ web-demo/vite.config.ts | 11 + 32 files changed, 2905 insertions(+), 111 deletions(-) create mode 100644 SUBMISSION.md create mode 100644 samples/breakpoint-guests.csv create mode 100644 scripts/seed.ts create mode 100644 src/csv.ts create mode 100644 src/demo-event.ts create mode 100644 src/protocol.ts create mode 100644 tests/browser-store.test.ts create mode 100644 tests/import.test.ts create mode 100644 tests/staff.test.ts create mode 100644 web-demo/index.html create mode 100644 web-demo/main.ts create mode 100644 web-demo/raw.d.ts create mode 100644 web-demo/store.ts create mode 100644 web-demo/styles.css create mode 100644 web-demo/vite.config.ts diff --git a/.gitignore b/.gitignore index 719845e..49fa600 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ data/ .env .DS_Store public/vendor/ +web-demo/dist/ diff --git a/README.md b/README.md index 0456437..475d8d8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,27 @@ A small invite-only ticketing app for a private event. Guests are named. There is no payment, no resale marketplace, and the app never messages anyone. The door code rotates every few seconds, in the same spirit as Ticketmaster SafeTix: a screenshot goes stale, and a code that already admitted someone cannot be used again. +## Nitro 05 + +Breakpoint 2026 is Solana's conference at Olympia London, 15–17 November. Around it, about 155 side events — dinners, mixers, investor rooms — are invite-only or capped. The host has a list of names. The door is a volunteer with a phone. A screenshot forwarded in a group chat should not get a second person in. + +This is that door. The host imports a CSV (`name`, and optionally `email` and `handle`). Each good row becomes a named ticket. Bad rows are reported and skipped. The host copies each guest link and hands it over. The app does not email or text anyone. The guest page shows a QR code with a countdown ring. It changes every five seconds. The volunteer sees a green ADMIT and the guest's name, or a red REJECTED and the reason: already used, expired, wrong event, or revoked. The host desk shows a live checked-in count. + +NoahAI Nitro 05 asks for a product people could genuinely use at Breakpoint. The brief is at https://luma.com/kk4ymgrb. A judge can run the whole loop with no server from `web-demo/`: import the sample list, open a rotating ticket, scan it on the same screen, see the replay rejected, see a 15-second-old code rejected, then approve a transfer. + +## At a Breakpoint side event + +1. Create the event, or run `npm run seed` for the demo dinner "Breakpoint side-event dinner, London". +2. Import `samples/breakpoint-guests.csv`, or paste your own list. Fix any rows the import names. +3. Copy each guest link and give it to that person yourself. +4. Create a door-staff link and give it to the volunteer. That page can scan this event only. It cannot open or edit the guest list. +5. At the door, the guest shows the live QR. The volunteer admits them once. +6. If someone gives their seat away, they request a transfer. Nothing changes until you approve it. Approval replaces the secret, so the old code and the old link die. + +## Browser demo + +`web-demo/` is a self-contained page for a front-end builder. It has no login and no server. The guest list lives in `localStorage`. Check-in uses the same decision order as the server, and the code is an HMAC from WebCrypto, truncated the same way. `npm run demo:web` serves it. The files to copy are `web-demo/` plus `src/protocol.ts`, `src/csv.ts`, `src/clock.ts`, `src/format.ts`, `src/demo-event.ts`, and `samples/breakpoint-guests.csv`. + ## How a code works Each ticket has a secret of 32 random bytes that stays on the server. The guest page polls the server and shows a QR code. The payload is: @@ -38,6 +59,8 @@ On approval the same ticket gets the new name, a new 32-byte secret, and a new g ## Threat model +In plain words: the rotating code stops a screenshot and a second scan of a ticket that already came in. It does not prove who is holding the phone. Anyone looking at the live guest page can keep showing a fresh code. The host token is one shared secret, not a set of accounts. The staff link is narrower than the host token, and it is still just a bearer link. One SQLite file, one process. + What rotating codes actually stop: - Forwarding a screenshot or a copied payload. It dies within about 10 seconds, and by 15 seconds it is three steps old and always rejected. @@ -49,7 +72,8 @@ What they do not stop: - Someone holding the live phone, or anyone who has the guest link open, can keep showing fresh codes. That is the same limit as SafeTix. The rotation proves the phone is talking to the server right now. It does not prove who is holding the phone. - The host token is a single shared bearer secret. Anyone who has it can issue, revoke, and approve. It is not an account system. -- The door endpoint is not separately authenticated. Anyone who can reach the server and knows an event id can submit codes. That fits a door device on a trusted network. It is not a production perimeter. +- A door-staff link is scoped to one event. With it, a volunteer can scan codes for that night and see ADMIT or REJECTED, including the guest's name. They cannot list the other guests, import, revoke, or approve a transfer. A code from another event is rejected and that ticket stays unclaimed. Revoking the link stops it. +- The open `/api/scan` route is still there for the host's own door page. Anyone who can reach the server and knows an event id can submit a code to it. That fits a host running the door on their own phone. It is not a lock for the public internet. - Event name, venue, and start time are readable without the host token so the door page can list them. The guest list and ticket links are not. - There is one SQLite file and one process. This is not a multi-node deployment. @@ -62,8 +86,19 @@ cp .env.example .env # Put a real token in .env. Generate one with: openssl rand -hex 32 npm install npm start +npm run seed ``` +`npm run seed` writes the Breakpoint side-event dinner and the sample guests into `DATABASE_PATH`, and prints guest links plus one door-staff link. Run it again and it will not duplicate the dinner. + +The no-server demo: + +```bash +npm run demo:web +``` + +Open http://localhost:4173. Import the sample list, open a guest, and use "Scan the ticket on this screen". That path needs no camera, so it works on one laptop. + `.env` is loaded if it is present. Values already set in the environment win. The sample token in `.env.example` is a placeholder, not a secret, and it is not loaded on its own. Open: @@ -99,4 +134,4 @@ GitHub Actions runs typecheck and the tests on Node 20 and Node 22. ## What this is not -No payments, no marketplace, no guest messaging, no production deploy, no multi-user accounts. +No payments, no marketplace, no guest messaging, no production deploy, no crypto wallets, no multi-user accounts. diff --git a/SUBMISSION.md b/SUBMISSION.md new file mode 100644 index 0000000..e00513e --- /dev/null +++ b/SUBMISSION.md @@ -0,0 +1,5 @@ +Breakpoint side events are invite-only dinners and mixers around Olympia London. Hosts need a named list. Volunteers check people in on a phone. A screenshot should not get someone else through the door. + +Each guest holds a QR that changes every 5 seconds. The door admits it once: ADMIT and their name, or REJECTED (already used, expired, wrong event, or revoked). The host imports a CSV and approves any transfer. A door link scans that one night only. + +[LIVE URL] diff --git a/package-lock.json b/package-lock.json index 7a75090..fa35578 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "@types/qrcode": "^1.5.6", "tsx": "^4.20.6", "typescript": "^5.9.3", + "vite": "^6.4.1", "vitest": "^3.2.4" }, "engines": { @@ -2212,24 +2213,24 @@ "license": "MIT" }, "node_modules/vite": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.8.tgz", - "integrity": "sha512-3tTi78MAKhVk9h+YZVXMQ8POmneJuE97QUPAWtJghHzhH7BAyiqQOC2KZh1DWOsu/USB2cRXhznPByaabvYXfw==", + "version": "6.4.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.6.tgz", + "integrity": "sha512-RtsraAwEG68idOA6iUOoIpOlcSKROnf815aIq9qHTSrDNpLoBrBa12suyfcEd8qn0xwOVQI1Yhm1GbmTjF600A==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.27.0 || ^0.28.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -2238,14 +2239,14 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", - "less": "^4.0.0", + "less": "*", "lightningcss": "^1.21.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" @@ -2309,6 +2310,490 @@ "url": "https://opencollective.com/vitest" } }, + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, "node_modules/vitest": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.7.tgz", diff --git a/package.json b/package.json index 0466e20..55e9abf 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "start": "tsx src/index.ts", "typecheck": "tsc --noEmit", "test": "vitest run", - "demo": "tsx scripts/demo.ts" + "demo": "tsx scripts/demo.ts", + "seed": "tsx scripts/seed.ts", + "demo:web": "vite --config web-demo/vite.config.ts" }, "dependencies": { "@hono/node-server": "^1.19.9", @@ -27,6 +29,7 @@ "@types/qrcode": "^1.5.6", "tsx": "^4.20.6", "typescript": "^5.9.3", + "vite": "^6.4.1", "vitest": "^3.2.4" } } diff --git a/public/door.html b/public/door.html index bae86d5..87e5bba 100644 --- a/public/door.html +++ b/public/door.html @@ -9,12 +9,14 @@
+

Breakpoint side-event door

Door

Scanner

+
- Host desk + Host desk