How bansaljayden/flock-social works
Flock is a social planning app for coordinating outings with friends, with venue intelligence and venue-facing tools. Its main user journey is to create a flock, invite friends, RSVP and vote on a venue, then coordinate in chat and use safety and bill-splitting features. Other major branches include accounts, Birdie recommendations, crowd forecasts, venue management, and the Flux sensor. The README documents these capabilities; the supplied source index and excerpts support selected backend relationships. Links between unsampled client screens and backend features are left unasserted or marked unverified.
Main entry points: server.js Backend server · crowd.js Crowd forecasts · database.js PostgreSQL · flocks.js Flocks and invites
Components 24
Social planning
- Flocks and invites
backend/routes/flocks.js - Friends and feedback
backend/routes/friends.js - Chat and live presence
backend/sockets/handlers.js - Plans calendar
backend/routes/calendar.js - Budgets and bill split
backend/routes/budget.js - Location and SOS
backend/routes/safety.js - Report and block
backend/utils/moderation.js
App and accounts
- Flock app
frontend/src/App.js - Client API
frontend/src/services/api.js - Sign-in and accounts
backend/routes/auth.js - Auth middleware
backend/middleware/auth.js - PostgreSQL
backend/config/database.js - Backend server
backend/server.js
Venue intelligence
- Crowd forecasts
backend/routes/crowd.js - Crowd rule engine
backend/services/crowdEngine.js - Forecast predictor
backend/services/mlPredictor.js - Weather context
backend/services/weatherService.js - Birdie venue advisor
backend/routes/advisor.js - Flux sensor
flock-sensor/main.py
Venue tools
- Venue profiles and search
backend/routes/venues.js - Venue dashboard
backend/routes/venueDashboard.js - Venue plans
backend/services/venueBilling.js - Consumer subscriptions
backend/services/proBilling.js
Other components
- Friends going out
Connections 27
- Friends going out → Flock app: make plans
- Flock app → Client API: requests data
- Client API → Sign-in and accounts: signs in
- Backend server → Sign-in and accounts: mounts routes
backend/server.js - Backend server → Flocks and invites: mounts routes
backend/server.js - Backend server → Friends and feedback: mounts routes
backend/server.js - Backend server → Chat and live presence: mounts sockets
backend/server.js - Friends going out → Flocks and invites: create flocks
- Flocks and invites → Chat and live presence: coordinate in chat
- Friends going out → Friends and feedback: connect socially
- Friends going out → Plans calendar: review plans
- Friends going out → Budgets and bill split: match budgets
- Friends going out → Location and SOS: share location or SOS
- Friends going out → Report and block: report or block
- Backend server → Crowd forecasts: mounts routes
backend/server.js - Crowd forecasts → Crowd rule engine: scores venues
backend/routes/ai.js - Crowd forecasts → Forecast predictor: gets forecasts
backend/routes/ai.js - Crowd forecasts → Weather context: uses weather
backend/routes/ai.js - Flux sensor → Crowd forecasts: supplies readings
- Friends going out → Birdie venue advisor: ask for venue ideas
- Backend server → Venue profiles and search: mounts routes
backend/server.js - Venue profiles and search → Venue dashboard: venue management
- Venue dashboard → Venue plans: checks plan
- Backend server → PostgreSQL: configures database
backend/server.js - Auth middleware → PostgreSQL: queries users
backend/middleware/auth.js - Crowd rule engine → PostgreSQL: reads venue data
- Consumer subscriptions → PostgreSQL: stores subscriptions