blob: 33ec80b2f060018f4ae30be137d5cb82fecafb94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
# Kioku Development Roadmap
## Phase 1: Foundation
### Project Setup
- [x] Create docs/dev/architecture.md
- [x] Create docs/dev/roadmap.md
- [x] Initialize pnpm workspace
- [x] Configure TypeScript
- [x] Configure Biome
### Server Foundation
- [x] Initialize Hono app
- [x] Setup Vitest
- [x] Add simple test to test that Hono works
- [x] Error handling middleware
- [x] Logger middleware
### Database
- [x] Docker Compose with PostgreSQL
- [x] Drizzle ORM setup
- [x] Database migrations
### Shared Package
- [x] Create pkgs/shared
- [x] Define types (User, Deck, Card, ReviewLog)
- [x] Zod validation schemas
### Authentication
- [x] User registration endpoint
- [x] Login endpoint (JWT)
- [ ] Refresh token endpoint
- [ ] Auth middleware
- [ ] Add tests
### Refactoring
- [ ] Define repository types and avoid direct use of DB.
## Phase 2: Core Features
### Server API
- [ ] Deck CRUD endpoints
- [ ] Add tests
- [ ] Card CRUD endpoints
- [ ] Add tests
- [ ] ts-fsrs integration
- [ ] Add tests
- [ ] Study endpoints (get cards, submit review)
- [ ] Add tests
### Frontend Foundation
- [ ] Initialize SvelteKit
- [ ] Setup routing
- [ ] API client
- [ ] Add tests
### Auth UI
- [ ] Login page
- [ ] Add UI tests
- [ ] Register page
- [ ] Add UI tests
- [ ] Auth store
- [ ] Add UI tests
### Deck Management UI
- [ ] Deck list page
- [ ] Add UI tests
- [ ] Deck detail page
- [ ] Add UI tests
- [ ] Create/edit deck
- [ ] Add UI tests
### Card Management UI
- [ ] Card list view
- [ ] Add UI tests
- [ ] Create/edit card
- [ ] Add UI tests
### Study UI
- [ ] Study session page
- [ ] Add UI tests
- [ ] Card flip interaction
- [ ] Add UI tests
- [ ] Rating buttons (Again, Hard, Good, Easy)
- [ ] Add UI tests
- [ ] Progress display
- [ ] Add UI tests
## Phase 3: Offline Support
### IndexedDB
- [ ] Dexie.js setup
- [ ] Local schema (with sync flags)
- [ ] Local CRUD operations
- [ ] Add tests
### PWA
- [ ] @vite-pwa/sveltekit configuration
- [ ] Web manifest
- [ ] Service Worker
- [ ] Offline fallback
- [ ] Add tests
### Sync Engine
- [ ] Sync queue management
- [ ] Add tests
- [ ] Push implementation
- [ ] Add tests
- [ ] Pull implementation
- [ ] Add tests
- [ ] Conflict resolution
- [ ] Add tests
- [ ] Auto-sync on reconnect
- [ ] Add tests
### Sync API
- [ ] POST /api/sync/push
- [ ] GET /api/sync/pull
### Sync UI
- [ ] Sync status indicator
- [ ] Manual sync button
- [ ] Offline mode indicator
## Phase 4: Anki Import
### Parser
- [ ] ZIP extraction
- [ ] SQLite database reading
- [ ] Note/Card mapping
- [ ] Add tests
### Import API
- [ ] POST /api/import/apkg
- [ ] Progress tracking
- [ ] Add tests
### Import UI
- [ ] File upload
- [ ] Import progress
- [ ] Import results
- [ ] Add tests
## Phase 5: Deployment
### Docker
- [ ] Dockerfile for server
- [ ] Dockerfile for web (static build)
- [ ] compose.yml (full stack)
### Production
- [ ] Environment configuration
- [ ] Backup strategy
### Documentation
- [ ] README.md
## Future Considerations
- Statistics and analytics
- Export functionality
- Multiple card types
- Tags and search
- Keyboard shortcuts
|