Halfpane(半窗)is a local-first writing workspace for Chinese long-form fiction.
Current status: Phase 0 engineering foundation.
This repository is intentionally narrow right now. It validates the desktop shell, local data model, migration tests, and project documentation before introducing AI-assisted writing workflows.
Halfpane is designed to become a quiet, writing-first desktop workspace for long-form novel projects.
Long-term product loop:
- 创作规划
- 正文写作
- AI 审稿
- 修订候选
- 待确认设定
- 故事圣经入库
- 伏笔和连续性维护
- 备份恢复
The author remains in control. AI suggestions must not silently become confirmed story facts.
Phase 0 includes:
- Tauri + React + TypeScript desktop shell
- SQLite v0 schema
- migration smoke tests from an empty database
- pre-reserved model configuration table for later AI assistant integration
- minimal writing-focused UI shell
- documentation for future review, Story Bible, quality gate, and workflow boundaries
Phase 0 explicitly does not include:
- real AI integration
- AI review
- AI prose generation
- automatic Story Bible updates
- full editor business flow
- login, membership, cloud sync, marketplace, or publishing workflows
- plugin or MCP execution
- complex theme system or marketing homepage
- Tauri 2
- React 19
- TypeScript
- Vite
- SQLite through Rust-side migration tests
Install dependencies:
npm installRun the development server:
npm run devBuild the frontend:
npm run buildRun migration checks:
npm run test:migration
npm run test:migration:nodeBefore calling a non-trivial change complete, run the relevant checks from docs/quality-gate.md.
Current baseline commands:
npm run build
npm run test:migration
npm run test:migration:nodeThere is currently no lint script and no standalone typecheck script. npm run build runs tsc && vite build.
Start here:
docs/README.md
Important documents:
| File | Purpose |
|---|---|
docs/project-context.md |
Short project context for new sessions and agents |
docs/phase-roadmap.md |
Phase boundaries and build order |
docs/quality-gate.md |
Local and CI quality gates |
docs/development-skill-map.md |
Skill and development workflow routing |
docs/multi-agent-workflow.md |
Lightweight HanaAgent development loop |
docs/database-schema-v0.sql |
Current SQLite schema |
docs/ui-theme-direction.md |
UI visual direction |
docs/review-workflow-spec.md |
Future review and Gate workflow |
docs/knowledge-story-bible-spec.md |
Future Story Bible and knowledge governance workflow |
docs/source-materials/ |
Archived original source materials |
The repository includes a basic Windows CI workflow:
.github/workflows/ci.yml
It runs:
npm cinpm run buildnpm run test:migrationnpm run test:migration:node
Recommended near-term work:
- manual Story Bible entry list
- chapter card persistence
- migration smoke test improvements
- basic search over confirmed project records
- manual review issue and proposed change flow
Avoid using early slices for:
- real AI review
- full editor rewrite
- plugin runtime
- custom multi-agent orchestrator
- cloud sync or membership
No open-source license has been selected yet. Unless a license is added, all rights are reserved by default.