How zcag/tela works
tela is a self-hostable, markdown-native team wiki with a Go backend and React/Milkdown client. A team member signs in, opens or edits canonical Markdown pages, and can collaborate live; agents can also search, read, and author through MCP. Search spans ranked full-text and optional semantic retrieval, while Atlas turns source repositories into maintained wiki pages. The graph includes the documented public-sharing, organization, and agent capabilities. Several subsystems are represented at their exact tree paths because their implementation excerpts were not sampled; those links rely on README claims rather than inspected calls.
Main entry points: router.go HTTP API · PageView.tsx Page editor and reader · search.go Search and ask API · main.tsx Client bootstrap
Components 20
Web client
- Client bootstrap
frontend/src/main.tsx - App shell
frontend/src/App.tsx - Route surfaces
frontend/src/routes/router.tsx - Page editor and reader
frontend/src/components/app/PageView.tsx - Markdown rendering
frontend/src/components/view/MarkdownView.tsx - Query cache
frontend/src/lib/queryClient.ts - HTTP client
frontend/src/lib/api.ts
Wiki backend
- HTTP API
backend/internal/api/router.go - Authentication
backend/internal/auth/middleware.go - Pages and spaces
backend/internal/api/pages.go - PostgreSQL access
backend/internal/db/db.go - Live collaboration
frontend/src/lib/collab/use-collab-session.ts
Search and answers
- Search and ask API
backend/internal/api/search.go - Semantic retrieval
backend/internal/rag/rag.go
Atlas docs engine
- Atlas run API
backend/internal/api/atlas_run.go - Atlas pipeline
backend/internal/atlas/engine/engine.go
Agent and sharing
- MCP server
backend/internal/api/mcp.go - Public sharing
backend/internal/api/share_links.go
Other components
- Team member
- AI agent
Connections 21
- Team member → Client bootstrap: opens wiki
README.md - Client bootstrap → App shell: renders
frontend/src/main.tsx - App shell → Route surfaces: hosts routes
frontend/src/App.tsx - Route surfaces → Page editor and reader: routes to
frontend/src/routes/router.tsx - Page editor and reader → Markdown rendering: renders content
- Page editor and reader → Query cache: loads and saves
- Query cache → HTTP client: requests data
frontend/src/lib/queryClient.ts - HTTP client → HTTP API: calls HTTP API
README.md - HTTP API → Authentication: uses middleware
backend/internal/api/router.go - HTTP API → Pages and spaces: dispatches page routes
- Pages and spaces → PostgreSQL access: reads and writes
- HTTP API → Search and ask API: dispatches search
- Search and ask API → Semantic retrieval: retrieves context
- HTTP API → Atlas run API: dispatches Atlas
- Atlas run API → Atlas pipeline: runs pipeline
- Atlas pipeline → Team member: publishes wiki pages
README.md - AI agent → MCP server: searches and authors
README.md - Team member → Public sharing: creates share links
README.md - Page editor and reader → Live collaboration: edits collaboratively
README.md - Team member → Search and ask API: searches pages
README.md - Search and ask API → Team member: returns ranked results
README.md