Documentation Index
Fetch the complete documentation index at: https://tech.illasoft.com/llms.txt
Use this file to discover all available pages before exploring further.
技术栈
| 类别 | 技术 | 说明 |
|---|---|---|
| 框架 | Next.js 16 (App Router) | SSR + React 19 |
| 语言 | TypeScript | |
| 样式 | Tailwind CSS 4 | 实用优先 |
| UI 组件 | shadcn/ui | 基于 Radix UI |
| 状态管理 | Zustand(3 个 store) | auth / feed / poisson |
| AI SDK | Vercel AI SDK v6 | SSE + tool calling |
| 国际化 | next-intl | 12 locale |
| 分析 | PostHog | 用户行为 |
| 监控 | Sentry | client / server / edge |
| 认证 | Supabase Auth | SSR session via lib/supabase/middleware.ts |
| 数据获取 | TanStack Query | 47+ client hooks,6+ server fetchers |
| 2D 渲染 | Pixi.js 8 + @pixi/react | 图片画布 |
| 视频播放 | video.js | Generator / Feed |
| 音频播放 | Howler.js | Generator / Feed |
| Centrifugo | centrifuge-js | video_status / audio_status 推送 |
三路并行媒体类型
2026-03+ 起,图片 / 视频 / 音频三者都升级为一等媒体类型。Generator 根据currentSelectMediaType 切换:
项目结构
kira-web
app
(home)
auth
gallery
generator
rewind
setting
timeline
user
layout.tsx
globals.css
components
feature
providers
ui
seo
hooks
lib
apis
store
types
models
i18n
messages
sentry.client.config.ts
sentry.server.config.ts
sentry.edge.config.ts
next.config.ts
目录路径澄清:
store/ 在仓库根目录,不是 src/store/。CLAUDE.md 的旧描述与实际不符。架构图
部署
- 托管在 Fly.io
- Docker 容器化
- 环境变量配置:
NEXT_PUBLIC_API_URL- 后端 API 地址NEXT_PUBLIC_POSTHOG_KEY- PostHog KeyNEXT_PUBLIC_SUPABASE_*- Supabase 配置NEXT_PUBLIC_SENTRY_DSN- Sentry DSN