7bed571ffa
api: WS gateway with token auth (Postgres-backed servers table, seeded via `bun run seed`), column-granularity chunk store (hand-written SQL migrations, no drizzle-kit CLI — its config loader needs esbuild, which doesn't install cleanly here), dirty-chunk Redis stream producer with per-flush dedup, and a tile-serving route. worker: consumes the dirty-chunk stream via a proper consumer group, rasterizes each chunk's columns into a single-resolution top-down PNG (static pre-Flattening block-id palette), uploads to MinIO, and upserts the tile pointer. frontend: barebones Leaflet 2D viewer (CRS.Simple, one native zoom level) wired to /api/servers and /api/tiles. Object storage: tiles live in a dedicated `mcmapper-tiles` bucket on the existing shared MinIO instance (devstack-minio on octo-winsrv) instead of a per-stack container, via a scoped access key limited to that one bucket — see README's "Object storage" section. MINIO_SECRET_KEY is real and is deliberately not committed; docker-compose layers an untracked .env over .env.example for it. Full pipeline verified end-to-end against live containers: WS auth -> Postgres upsert -> deduped Redis dirty-chunk event -> worker rasterize -> MinIO upload -> tile fetch through the api route, including from the actual mod-side WS client (see MCMapper-Mod's matching commit).
23 lines
529 B
JSON
23 lines
529 B
JSON
{
|
|
"name": "@mcmapper/frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun run --watch src/index.ts",
|
|
"start": "bun run src/index.ts",
|
|
"build:css": "tailwindcss -i src/public/css/input.css -o src/public/css/tailwind.css"
|
|
},
|
|
"dependencies": {
|
|
"elysia": "^1.1.0",
|
|
"pug": "^3.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/cli": "^4.0.0",
|
|
"@types/pug": "^2.0.10",
|
|
"bun-types": "latest",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.5.0"
|
|
}
|
|
}
|