How katzennjammer/baylo-app works
Baylo is the Expo/React Native mobile client for a non-monetary local barter marketplace; its API and web admin are a separate repository. The main user journey is account access, discovering listings, posting an item, proposing and reviewing a swap, then coordinating and confirming the trade. The graph also preserves documented safety, messaging, reputation, and engagement capabilities. Several screens and API modules are indexed but unsampled, so their nodes are included while uncertain connections are omitted.
Main entry points: client.ts API client · index.tsx Home feed · login.tsx Sign in and register · offer-review.tsx Offer review
Components 25
Identity and app shell
- App entry
app/index.tsx - Session state
src/auth/session.tsx - Sign in and register
app/(auth)/login.tsx - Auth sheet UI
src/components/auth-sheet.tsx - Secure session storage
src/auth/storage.ts - API client
src/api/client.ts
Browse and listings
- Home feed
app/(app)/index.tsx - Feed components
src/components/home/FeedCard.tsx - Marketplace browse
app/(app)/marketplace.tsx - Item detail
app/(app)/item.tsx - Post item flow
src/post/state.tsx - Listing review
app/listing-review.tsx - Item valuation
src/api/post.ts
Offers and trades
- Offer rules and API
src/api/offer.ts - Offer review
app/offer-review.tsx - Trade lifecycle
src/api/trades.ts - Trade coordination
app/trade-code.tsx - Safe-zone hubs
src/api/hubs.ts
Trust and community
- Messaging
app/messages/thread.tsx - Profiles and trust
src/api/profile.ts - Social activity
src/api/social.ts - Notifications and rewards
src/api/notifications.ts - Realtime updates
src/api/pusher.ts
Other components
- Mobile user
- Baylo API
Connections 29
- Mobile user → App entry: opens app
README.md - App entry → Session state: checks session
app/index.tsx - Mobile user → Sign in and register: signs in
app/(auth)/login.tsx - Sign in and register → Auth sheet UI: renders
app/(auth)/login.tsx - Sign in and register → API client: authenticates
app/(auth)/login.tsx - Session state → API client: manages session
src/auth/session.tsx - API client → Secure session storage: reads and writes
src/api/client.ts - API client → Baylo API: sends HTTPS requests
README.md - Mobile user → Home feed: views feed
README.md - Home feed → Feed components: renders
app/(app)/index.tsx - Home feed → API client: loads feed
app/(app)/index.tsx - Mobile user → Marketplace browse: browses listings
README.md - Marketplace browse → API client: requests listings
- Home feed → Item detail: opens listing
app/(app)/index.tsx - Item detail → Offer rules and API: requests offer data
app/(app)/item.tsx - Mobile user → Post item flow: creates listing
README.md - Post item flow → Listing review: submits for review
- Listing review → Item valuation: uses posting API
- Mobile user → Offer review: reviews proposed swap
README.md - Offer review → Offer rules and API: loads offer details
app/offer-review.tsx - Offer review → Trade lifecycle: loads trade state
app/offer-review.tsx - Mobile user → Trade coordination: confirms meetup swap
README.md - Trade coordination → Trade lifecycle: confirms trade
- Mobile user → Safe-zone hubs: finds meetup points
README.md - Mobile user → Messaging: messages trader
README.md - Messaging → Realtime updates: receives live updates
app/messages/thread.tsx - Mobile user → Profiles and trust: views trust profile
README.md - Mobile user → Social activity: likes and comments
README.md - Mobile user → Notifications and rewards: tracks activity
README.md