feat: Add share-link backend and wire up the sheet

Add a small Go + SQLite service (server/) that stores character-sheet
JSON blobs and returns short, content-addressed IDs, so sheets can be
shared via a compact ?s=<id> link instead of an oversized inline payload.

CharacterSheet.tsx now POSTs to the service on share and fetches by ID on
load, falling back to the self-contained ?c= inline link when the backend
is unreachable. Legacy ?c= links still decode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 01:44:15 +00:00
parent 21c8bf5be1
commit 122a4cc881
5 changed files with 285 additions and 8 deletions

7
server/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
# Compiled binary
/share-svc
# SQLite database + WAL/SHM sidecars
*.db
*.db-wal
*.db-shm