How jhangyu/folo works
Folo is a feed reader and content organizer, self-hosted here with the Forage API. The main user path is following feeds and reading them in a unified timeline; the README also highlights collections, discovery, AI assistance, multiple view modes, and feed crawling. The tree and excerpts support the client, CLI, AI mention, and tracking components below. Several backend and product capability links are documented only at a high level, so those edges cite the README rather than implying unsampled call paths.
Main entry points: forage/src Forage API · index.ts Tracker adapters · renderer/src Feed reader · client.ts CLI API client
Components 22
Reading clients
- Feed reader
apps/desktop/layer/renderer/src - Mobile reader
apps/mobile/src - SSR experience
apps/ssr
Self-hosted backend
- Forage API
apps/forage/src - RSS parsing
apps/forage/src/lib/rss-parser.ts - PostgreSQL
- Redis
AI assistance
- AI chat
apps/desktop/layer/renderer/src/modules/ai-chat - Mention search
apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/mention/hooks/useMentionSearchService.ts - Date suggestions
apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/mention/hooks/dateMentionSearch.ts - Mention formatting
apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/mention/utils/mentionTextValue.ts
CLI access
- CLI commands
apps/cli/src/commands - CLI API client
apps/cli/src/client.ts - CLI config
apps/cli/src/config.ts - CLI output
apps/cli/src/output.ts
Event tracking
- Tracker manager
packages/internal/tracker/src/manager.ts - Tracker adapters
packages/internal/tracker/src/adapters/index.ts - Adapter contract
packages/internal/tracker/src/adapters/base.ts - Firebase adapter
packages/internal/tracker/src/adapters/firebase.ts - PostHog adapter
packages/internal/tracker/src/adapters/posthog.ts - Proxy adapter
packages/internal/tracker/src/adapters/proxy.ts
Other components
- Reader
Connections 19
- Reader → Feed reader: reads feeds
- Reader → Mobile reader: reads feeds
- Feed reader → Forage API: uses backend
- Mobile reader → Forage API: uses backend
- SSR experience → Forage API: uses backend
- Forage API → PostgreSQL: stores data
- Forage API → Redis: uses cache
- Forage API → RSS parsing: parses feeds
- Feed reader → AI chat: offers assistance
apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/shared/useChatSessionHandlers.tsx - Mention search → Date suggestions: builds suggestions
apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/mention/hooks/useMentionSearchService.ts - Mention search → Mention formatting: formats results
apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/mention/hooks/useMentionSearchService.ts - CLI commands → CLI API client: creates context
- CLI API client → CLI config: reads settings
apps/cli/src/client.ts - CLI API client → CLI output: uses errors
apps/cli/src/client.ts - Tracker manager → Tracker adapters: dispatches events
packages/internal/tracker/src/manager.ts - Tracker adapters → Adapter contract: exports contract
packages/internal/tracker/src/adapters/index.ts - Tracker adapters → Firebase adapter: exports adapter
packages/internal/tracker/src/adapters/index.ts - Tracker adapters → PostHog adapter: exports adapter
packages/internal/tracker/src/adapters/index.ts - Tracker adapters → Proxy adapter: exports adapter
packages/internal/tracker/src/adapters/index.ts