← スキル一覧に戻る

tech-stack
by sandk0
⭐ 3🍴 0📅 2026年1月24日
SKILL.md
name: tech-stack description: Use when discussing architecture, adding features, or understanding fancai project structure. Provides technology overview and conventions.
fancai Technology Stack
Overview
Web application for reading fiction with AI-generated images from book descriptions.
Frontend (frontend/)
- Framework: React 19 + TypeScript 5.7
- State: TanStack Query 5.90 (server), Zustand 5 (client)
- EPUB: epub.js 0.3.93 with CFI navigation
- Styling: Tailwind CSS 3.4, shadcn/ui
- Build: Vite 6
Key Directories
src/components/Reader/— EPUB reader (15 files)src/hooks/api/— TanStack Query hookssrc/hooks/epub/— EPUB functionality (22 files)src/services/— IndexedDB caching
Backend (backend/)
- Framework: FastAPI 0.125 + Python 3.11
- Database: PostgreSQL 15 + SQLAlchemy 2.0
- Cache: Redis 7.4
- Background: Celery 5.4
- Migrations: Alembic 1.14
Key Services
app/services/book_parser.py— EPUB/FB2 parsingapp/services/gemini_extractor.py— Description extractionapp/services/imagen_generator.py— Image generationapp/core/retry.py— Exponential backoff
AI Integration
- Extraction: Google Gemini 3.0 Flash (~$0.02/book)
- Generation: Google Imagen 4 ($0.04/image)
Commands
# Frontend
cd frontend && npm run dev # Development
cd frontend && npm test # Tests
cd frontend && npm run build # Build
# Backend
cd backend && pytest -v # Tests
cd backend && alembic upgrade head # Migrations
Conventions
TypeScript
- Functional components with hooks
- TanStack Query for all API calls
- No direct fetch() — use query hooks
- CFI for EPUB position tracking
Python
- Type hints required
- Pydantic for validation
- Repository pattern for DB
- tenacity for retries
Commits
<type>(<scope>): <subject>
Types: feat, fix, docs, style, refactor, test, chore
Production
- URL: https://fancai.ru
- Deploy:
docker-compose.lite.yml
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です