blob: 32af8c75658e9d523edcd0af5883928200fb49cd (
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
|
# Kioku Development Roadmap
## Phase 1: Foundation
### Project Setup
- [x] Create docs/dev/architecture.md
- [x] Create docs/dev/roadmap.md
- [ ] Initialize pnpm workspace
- [ ] Configure TypeScript
- [ ] Configure Biome
- [ ] Setup Vitest
### Database
- [ ] Docker Compose with PostgreSQL
- [ ] Drizzle ORM setup
- [ ] Database migrations
### Shared Package
- [ ] Create packages/shared
- [ ] Define types (User, Deck, Card, ReviewLog)
- [ ] Zod validation schemas
### Server Foundation
- [ ] Initialize Hono app
- [ ] Error handling middleware
- [ ] Logger middleware
### Authentication
- [ ] User registration endpoint
- [ ] Login endpoint (JWT)
- [ ] Refresh token endpoint
- [ ] Auth middleware
## Phase 2: Core Features
### Server API
- [ ] Deck CRUD endpoints
- [ ] Card CRUD endpoints
- [ ] ts-fsrs integration
- [ ] Study endpoints (get cards, submit review)
### Frontend Foundation
- [ ] Initialize SvelteKit
- [ ] Setup routing
- [ ] API client
### Auth UI
- [ ] Login page
- [ ] Register page
- [ ] Auth store
### Deck Management UI
- [ ] Deck list page
- [ ] Deck detail page
- [ ] Create/edit deck
### Card Management UI
- [ ] Card list view
- [ ] Create/edit card
### Study UI
- [ ] Study session page
- [ ] Card flip interaction
- [ ] Rating buttons (Again, Hard, Good, Easy)
- [ ] Progress display
## Phase 3: Offline Support
### IndexedDB
- [ ] Dexie.js setup
- [ ] Local schema (with sync flags)
- [ ] Local CRUD operations
### PWA
- [ ] @vite-pwa/sveltekit configuration
- [ ] Web manifest
- [ ] Service Worker
- [ ] Offline fallback
### Sync Engine
- [ ] Sync queue management
- [ ] Push implementation
- [ ] Pull implementation
- [ ] Conflict resolution
- [ ] Auto-sync on reconnect
### 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
### Import API
- [ ] POST /api/import/apkg
- [ ] Progress tracking
### Import UI
- [ ] File upload
- [ ] Import progress
- [ ] Import results
## 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
|