Sharing a toolbox meant exporting a JSON file and passing it around by
hand. A toolbox can now be sent from the site while staying local first:
the browser compresses and encrypts the v2 export with AES-GCM, and the
key lives only in the link fragment, so the server keeps for at most
24 hours a copy it cannot read.
- Add the /api/shares service: upload, metadata, download and revoke,
with files in SHARES_DIR, a purge every 10 minutes, and single-use
links (the default) deleted only once fully downloaded.
- Cap the server load: 50 MiB per share, total storage, free disk
space, daily volume, concurrent and stalled uploads, reads per link,
plus a wide per-connection cap kept in memory without storing IPs.
- Limit each browser to 2 shares and 100 MiB per day and 2 active
links, and show the existing link of a toolbox already shared.
- Add the send dialog (card and game drawer) and the /receive page,
which previews or directly imports through the existing import path.
- Move shared HTTP helpers to services/http.js for both APIs.
- Document the format, delivery, server layout and privacy wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vite Preview sends none of the headers of server.mjs, so the production E2E
passed while the CSP blocked the calculator formulas in production. The build
is now served by server.mjs with Sokko TCG disabled, and a new spec saves and
updates a calculator result there, failing on any CSP violation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Warn against copying PORT into cards.env, state which missing values disable
the game, drop wording that only applied to the feature branch, and take the
non-breaking audit fix for development tools.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Align the delivery guide with the code: hourly recharge, the dedicated database
folder, the privacy contact, the proxy's X-Forwarded-For duty, reinstalling the
unit, the backup timer and the post-activation admin checklist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the server-backed card game: Discord login, recharging pack openings,
album, trades, gifts, stardust shop, campaign codes and its administration,
stored in SQLite and disabled in production until configured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>