@membank/dashboard 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -44,21 +44,27 @@ src/
|
|
|
44
44
|
index.ts # Hono app with /api routes and static file serving
|
|
45
45
|
dev.ts # dev server launcher
|
|
46
46
|
client/
|
|
47
|
-
|
|
47
|
+
main.tsx # app entry point
|
|
48
48
|
index.css # Tailwind + global styles
|
|
49
49
|
routes/
|
|
50
|
-
|
|
50
|
+
__root.tsx # root layout
|
|
51
|
+
index.tsx # redirects to /memories
|
|
52
|
+
memories.tsx # memories layout
|
|
51
53
|
memories.index.tsx # list view
|
|
52
54
|
memories.$id.tsx # detail view
|
|
55
|
+
views/
|
|
56
|
+
MemoryList.tsx # list view logic
|
|
57
|
+
MemoryDetail.tsx # detail view logic
|
|
53
58
|
components/
|
|
54
|
-
MemoryRow.tsx
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
ui/
|
|
59
|
+
MemoryRow.tsx # single memory row with inline edit
|
|
60
|
+
MemoryLogo.tsx # logo component
|
|
61
|
+
StatsBar.tsx # memory count + dedup queue
|
|
62
|
+
ui/ # shadcn + base-ui components
|
|
58
63
|
lib/
|
|
59
|
-
api.ts
|
|
60
|
-
types.ts
|
|
61
|
-
utils.ts
|
|
64
|
+
api.ts # client-side API client (fetch wrappers)
|
|
65
|
+
types.ts # shared TypeScript types
|
|
66
|
+
utils.ts # classname helpers (clsx/tailwind-merge)
|
|
67
|
+
collections.ts # TanStack DB collection definitions
|
|
62
68
|
```
|
|
63
69
|
|
|
64
70
|
## API endpoints
|
|
@@ -126,8 +132,13 @@ pnpm clean # rm dist
|
|
|
126
132
|
- **Runtime** — Node.js 24+
|
|
127
133
|
- **Server** — Hono 4 + @hono/node-server
|
|
128
134
|
- **Client** — React 19 + TanStack Router + TanStack DB
|
|
129
|
-
- **
|
|
135
|
+
- **Forms** — @tanstack/react-form
|
|
136
|
+
- **Hotkeys** — @tanstack/react-hotkeys
|
|
137
|
+
- **Styling** — Tailwind CSS 4 + shadcn + base-ui components
|
|
130
138
|
- **Icons** — @phosphor-icons/react
|
|
139
|
+
- **Charts** — recharts
|
|
140
|
+
- **Toasts** — sonner
|
|
141
|
+
- **Themes** — next-themes
|
|
131
142
|
- **Build** — Vite 6 (client) + tsdown (server)
|
|
132
143
|
- **Database** — @membank/core (SQLite via better-sqlite3)
|
|
133
144
|
|
|
@@ -139,8 +150,8 @@ The dashboard connects to the shared SQLite database at `~/.membank/memory.db` v
|
|
|
139
150
|
|
|
140
151
|
- **Client-side routing** — TanStack Router with file-based routes in `src/client/routes/`
|
|
141
152
|
- **API calls** — `src/client/lib/api.ts` wraps fetch with error handling and JSON parsing
|
|
142
|
-
- **State management** — TanStack DB (replicated, reactive)
|
|
143
|
-
- **Styles** — Tailwind v4 with custom CSS variables for theme colors; dark mode via
|
|
153
|
+
- **State management** — TanStack DB (replicated, reactive) with TanStack Query Core
|
|
154
|
+
- **Styles** — Tailwind v4 with custom CSS variables for theme colors; dark mode via next-themes
|
|
144
155
|
- **UI components** — shadcn + base-ui primitives, no external component library deps
|
|
145
156
|
|
|
146
157
|
## Port selection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@membank/dashboard",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"class-variance-authority": "^0.7.1",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"cmdk": "^1.1.1",
|
|
41
|
-
"hono": "^4.
|
|
41
|
+
"hono": "^4.12.18",
|
|
42
42
|
"next-themes": "^0.4.6",
|
|
43
43
|
"open": "^10.1.0",
|
|
44
44
|
"react": "^19.0.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tailwind-merge": "^3.0.0",
|
|
50
50
|
"tw-animate-css": "^1.0.0",
|
|
51
51
|
"zod": "^4.3.6",
|
|
52
|
-
"@membank/core": "0.
|
|
52
|
+
"@membank/core": "0.9.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@tailwindcss/vite": "^4.0.0",
|