Initial scaffold: Turborepo monorepo + design wiki
Turborepo (pnpm workspaces) with all dependencies pinned to latest mutually-compatible versions: turbo 2.9, TypeScript 6, Fastify 5, React 19, Vite 8, better-sqlite3 12 + Drizzle ORM 0.45. Layout: - apps/server Fastify backend (local JWT auth + role guard, /health) - apps/web React 19 + Vite 8 operator SPA - packages/db Drizzle schema on SQLite/WAL; append-only events + users - packages/devices reader/printer/relay adapter interfaces (intent-only relay) - packages/shared shared domain types Architecture constraints from the design wiki are encoded in the scaffold: append-only hash-chained + signed event log, device-agnostic adapters, "a barrier is not a door" (relay expresses intent only), fully-local offline-first auth. wiki/ is an LLM-maintained Obsidian knowledge base (28 pages) ingested from the architecture & design notes, with its own maintenance schema. Verified: pnpm install, full turbo build (5/5), server boots and serves /health, drizzle-kit generates the initial migration.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
type: entity
|
||||
tags: [parking, hardware, readers, offline-first]
|
||||
sources: [parking-system-architecture]
|
||||
updated: 2026-06-14
|
||||
---
|
||||
|
||||
# LPR Camera
|
||||
|
||||
License-plate-recognition camera (recommended: **Milesight edge-AI LPR**). For
|
||||
**casual/transient** vehicles, the **plate acts as ticket + an independent record**. (See
|
||||
[[parking-system-architecture]] §8, §9.)
|
||||
|
||||
- **Edge AI**: recognition runs **on-device**, so it keeps working with no internet — fits
|
||||
[[offline-first]].
|
||||
- It's a **host-side** identity source: only the host sees the read; the host decides and
|
||||
commands the relay open (the [[uhppote-controller]] is demoted to a commanded relay for that
|
||||
lane). See [[entry-exit-readers]].
|
||||
- Being host-in-the-loop is **good for fraud detection** — you get two independent records (the
|
||||
host's signed [[append-only-event-chain]] entry + the controller's remote-open event) that
|
||||
should reconcile one-to-one; any mismatch is an anomaly.
|
||||
- Mounting: within ~15° of vehicle travel at a controlled chokepoint for best reads.
|
||||
Reference in New Issue
Block a user