Commit Graph

4 Commits

Author SHA1 Message Date
MayaTheShy
9f322003db Add SQLite persistence + official Minecraft item icons
Database (better-sqlite3):
- Persist items, furnaces, alerts, recipes, settings to SQLite
- Auto-restore last known state when server restarts or bridge disconnects
- Item count history tracking (5-min snapshots, 7-day retention)
- /api/history/:itemName endpoint for item count history
- Docker volume for database file persistence
- Graceful shutdown with DB connection cleanup

Icons:
- Replace mc-heads.net with official Minecraft game textures via CDN
- Cascading fallback: item texture -> block texture -> emoji
- In-memory URL cache to avoid redundant network requests
- Block texture suffix mapping (furnace_front, barrel_top, etc.)
- Crisp pixel-art rendering with image-rendering: pixelated
2026-03-21 18:10:44 -04:00
MayaTheShy
0ce63bacd7 Normalize inventory and alerts data structure in updateStateFromBridge function 2026-03-21 17:42:49 -04:00
MayaTheShy
bd5b1db5a0 Refactor server configuration to use environment variables for PORT and HOST; normalize itemList structure in inventory state update 2026-03-21 17:30:59 -04:00
MayaTheShy
1f57333cb0 Implement initial server setup with Express, WebSocket support, and API endpoints for inventory management 2026-03-21 16:42:30 -04:00