first draft but not working yet

This commit is contained in:
authentik Default Admin 2026-03-04 11:13:15 -08:00
commit b54c89c9c4
10 changed files with 380 additions and 0 deletions

43
README.md Normal file
View file

@ -0,0 +1,43 @@
## Architecture
* Lit-based web components
* No-build tooling (importmap only)
* Zustand-moderated state management with IndexedDB storage mechanism
## Layout
```
src/
store/
index.js ← zustand store definition
middleware/
persistence.js ← idb-keyval persist adapter
sync.js ← optional cross-tab broadcast
components/
app-root.js
feature-a/
feature-a.js ← Lit component
feature-a.css ← adopted stylesheet or constructable
controllers/
fetch.js ← ReactiveController for API calls
3d.js ← optional Three/WebGPU controller
lib/
idb.js ← thin idb-keyval wrapper/schema
index.html
importmap.json ← extracted importmap (referenced via <script src>)
```
## The Complete Mental Model
```
IndexedDB
↕ (idb-keyval adapter)
Zustand persist middleware
↕ (vanilla store)
StoreController (ReactiveController)
↕ (requestUpdate → selector)
Lit Web Components
↕ (events / store actions)
User
```