How expensify/app works
New Expensify is a cross-platform chat and payments application. The principal user journey is entering the app, navigating conversations, and initiating expense or payment workflows; the README describes the product as payments built on chat. The graph also preserves routing, shared state, HTML message rendering, onboarding, and native integrations. Many application areas are represented by directories because their implementation was not sampled; dashed, uncited edges indicate plausible but unverified flow rather than inspected calls.
Main entry points: Expensify.tsx App composition · HTMLEngineProvider Message rendering · Card.ts Transaction actions · App.tsx Application shell
Components 24
App experience
- Application shell
src/App.tsx - App composition
src/Expensify.tsx - Onboarding flow
src/libs/actions/Welcome/OnboardingFlow.ts
Chat and navigation
- Route definitions
src/ROUTES.ts - Screen definitions
src/SCREENS.ts - Conversation UI
src/pages - Message rendering
src/components/HTMLEngineProvider - Link renderer
src/components/HTMLEngineProvider/HTMLRenderers - Image renderer
src/components/HTMLEngineProvider/HTMLRenderers - Mention renderer
src/components/HTMLEngineProvider/HTMLRenderers
Expenses and payments
- Transaction actions
src/libs/actions/Card.ts - Transaction threads
src/libs/TransactionThreadNavigationUtils.ts - Expense requests
src/types/onyx/Request.ts - Workspace policies
src/types/onyx/Policy.ts
Native capabilities
- Android integration
android/app/src/main/java/com/expensify/chat - iOS integration
ios - Hybrid app module
modules/hybrid-app/src - Native utility modules
modules/ExpensifyNitroUtils/src
Shared foundations
- State key catalog
src/ONYXKEYS.ts - Search result types
src/types/onyx/SearchResults.ts - Popover context
src/components/PopoverMenu/v2/content/ContentContext.ts - Popover controller
src/components/PopoverMenu/v2/content/useContentController.ts - Style system
src/styles/index.ts
Other components
- User
Connections 19
- User → Application shell: opens
- Application shell → App composition: starts
- App composition → Route definitions: navigates via
- Route definitions → Screen definitions: selects
src/ROUTES.ts - User → Conversation UI: chats
- Conversation UI → Message rendering: renders messages
- Message rendering → Link renderer: dispatches links
src/components/HTMLEngineProvider/HTMLRenderers/index.ts - Message rendering → Image renderer: dispatches images
src/components/HTMLEngineProvider/HTMLRenderers/index.ts - Message rendering → Mention renderer: dispatches mentions
src/components/HTMLEngineProvider/HTMLRenderers/index.ts - User → Transaction actions: initiates expenses
- Transaction actions → Transaction threads: opens thread
- Transaction actions → Expense requests: creates requests
- User → Onboarding flow: onboards
- Onboarding flow → State key catalog: tracks state
src/ONYXKEYS.ts - Popover controller → Popover context: uses context
src/components/PopoverMenu/v2/content/useContentController.ts - App composition → Android integration: uses native bridge
- App composition → iOS integration: uses native bridge
- App composition → Hybrid app module: integrates hybrid app
- App composition → Native utility modules: uses native utilities