How 007jedgar/ciciro works
Ciciro is a cross-platform AI manuscript editor. Authors create or import a book, organize chapters, write in the editor, and consult Ciciro; the assistant uses story-bible and manuscript context, can delegate prose drafting, and returns suggestions for author review. The product also supports search and replacement, manuscript import/export, reader sharing, and mobile offline synchronization. The graph emphasizes the documented web workspace and sampled API flows; several capabilities are represented by their exact route or component paths without asserting unsampled internal call chains.
Main entry points: db.ts Application database · Workspace.tsx Workspace · [id]/route.ts Export endpoint · bible/route.ts Bible API
Components 24
Author experience
- Workspace
src/components/Workspace.tsx - Manuscript editor
src/components/Editor.tsx - Ciciro chat
src/components/ChatPanel.tsx - Story bible
src/components/StoryBible.tsx
Manuscript tools
- Chapter management
src/app/api/chapters/route.ts - Search and replace
src/components/SearchPanel.tsx - Search client
src/lib/search-client.ts - Search and replace API
src/app/api/projects/[id]/search/route.ts - Bible API
src/app/api/bible/route.ts - Bible files
src/lib/bible.ts
AI editor
- Chat endpoint
src/app/api/chat/route.ts - Editor run engine
src/lib/editor-run.ts - Assistant tools
src/lib/tools.ts - Auto-draft endpoint
src/app/api/autowrite/route.ts - Auto-draft loop
src/lib/autowrite.ts
Persistence and sync
- Sync API
src/app/api/sync/route.ts - Mobile client
apps/mobile/lib/sync-engine.ts - Application database
src/lib/db.ts
Document exchange
- Import endpoint
src/app/api/import/route.ts - Manuscript import
src/lib/import-manuscript.ts - Export endpoint
src/app/api/export/[id]/route.ts - Export formats
src/lib/export/epub.ts
Other components
- Author
- Anthropic models
Connections 24
- Author → Workspace: uses
- Workspace → Manuscript editor: presents
- Workspace → Ciciro chat: presents
- Workspace → Story bible: presents
- Manuscript editor → Chapter management: manages chapters
- Ciciro chat → Chat endpoint: sends turns
- Story bible → Bible API: reads and writes
- Search and replace → Search client: requests search
- Search client → Search and replace API: fetches results
- Chat endpoint → Editor run engine: prepares and executes
- Editor run engine → Assistant tools: runs tools
- Assistant tools → Anthropic models: calls models
- Auto-draft endpoint → Auto-draft loop: runs loop
- Auto-draft loop → Anthropic models: requests drafting
- Chat endpoint → Application database: persists run state
- Bible API → Bible files: reads and writes
- Bible API → Application database: accesses project data
- Import endpoint → Manuscript import: imports file
- Manuscript import → Application database: creates manuscript
- Export endpoint → Application database: loads manuscript
- Export endpoint → Export formats: renders EPUB
- Export endpoint → Author: returns download
- Mobile client → Sync API: pushes and pulls
- Sync API → Application database: reads and writes sync data