Self-hosted over the HTTP API: no runtime dependency on api.dicebear.com, works offline/LAN, and no player pseudo leaks to a third party. - @dicebear/core@10 + @dicebear/styles@10 (lorelei.json), CC0 1.0 - Avatar builds a data URI locally (new Style/Avatar), memoized per seed - same component API (seed/className) → no call-site changes - enable resolveJsonModule for the style import Cost: ~64 kB gzip added to the bundle — acceptable for a self-hosted game. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
42 lines
1 KiB
JSON
42 lines
1 KiB
JSON
{
|
|
"name": "web",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint",
|
|
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
|
"typecheck": "tsc --noEmit",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@dicebear/core": "^10",
|
|
"@dicebear/styles": "^10",
|
|
"@nerdware/shared": "workspace:*",
|
|
"@workspace/ui": "workspace:*",
|
|
"framer-motion": "^11",
|
|
"lucide-react": "^1.17.0",
|
|
"react": "^19.2.6",
|
|
"react-dom": "^19.2.6",
|
|
"socket.io-client": "^4.8.1",
|
|
"wouter": "^3.7.1",
|
|
"zustand": "^5.0.8"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10",
|
|
"@tailwindcss/vite": "^4",
|
|
"@types/node": "^24",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitejs/plugin-react": "^6",
|
|
"eslint": "^10",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17",
|
|
"typescript": "~6",
|
|
"typescript-eslint": "^8",
|
|
"vite": "^8"
|
|
}
|
|
}
|