A live social activity map for discovering what people are actually doing around you.
๐ Live: https://gravity.college
Gravity was built for MuleHacks 2026 around the theme of Connections.
Social media shows you what people are posting. Gravity shows you what people are actually doing.
Gravity helps people discover real-world activity happening around them right now.
Instead of posts, feeds, and status updates, Gravity focuses on actual activity:
- ๐ Basketball
- ๐ Running
- ๐ Studying
- ๐๏ธ Workout
- โฝ Soccer
- ๐ฎ Gaming
- and dynamically configurable activities such as Pickleball
Users can start an activity, discover nearby sessions, join other people, scan QR codes, compete with friends, earn XP, and explore historical and predicted activity patterns around an area.
Gravity uses MapLibre and PostGIS to visualize live activity as dynamic geographic heat.
Nearby sessions naturally combine visually while remaining separate sessions internally.
Discover what is happening nearby right now based on:
- distance
- number of active participants
- recency
- activity type
Gravity analyzes recurring historical activity patterns to show activity that is likely to happen nearby soon.
Forecasting is deterministic and explainable rather than generated by a black-box AI model.
It considers:
- recurring activity across weeks
- weekday
- time of day
- participation volume
- recency
- geographic clustering
Inspect any geographic area and see:
- dominant activities
- historical participation
- busiest days
- peak activity times
- activity distribution
No manually defined venue or neighborhood objects are required.
Gravity supports mutual friendships with live activity presence and configurable location privacy.
Friends can compete through challenges such as:
- First to Target
- Highest Metric by Deadline
- Cooperative Combined Target
Metrics remain completely activity-configurable.
Platform events can temporarily provide:
- XP multipliers
- bonus XP
- badges
Activity-specific seasonal competition using each activity's native metric.
Examples:
- Running โ Distance
- Basketball โ Points
- Studying โ Duration
- Pickleball โ Games Won
Gravity includes universal personal progression independent of activity-specific leaderboards.
Gravity is an installable mobile-first PWA with:
- offline/degraded-state handling
- service worker
- safe-area support
- mobile navigation
- route-level code splitting
- app resume reconciliation
Every active session can generate a QR code that lets another user quickly open and join the activity.
Stationary activities can automatically stop when a participant leaves the activity area.
Movement-based activities such as Running are configured differently so moving away from the starting point does not incorrectly stop the activity.
Location privacy is built into Gravity's architecture.
Users can choose:
Hidden
Live location is not shown to other users.
Other users see an approximate geographic area rather than the exact location.
Accepted friends may see the exact activity location while other users receive a blurred location.
Exact activity location is publicly visible.
Historical data and forecasts use aggregate geographic regions and minimum anonymity thresholds to prevent reconstruction of individual routines.
- React
- TypeScript
- Vite
- Tailwind CSS
- MapLibre GL JS
- Progressive Web App / Workbox
- Python
- Django
- Django REST Framework
- GeoDjango
- Django Channels
- Daphne
- PostgreSQL
- PostGIS
- Redis
- WebSockets
- Debian / Linux VPS
- Nginx
- systemd
- Let's Encrypt HTTPS
gravity.college
โ
โผ
Nginx
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
React PWA Django API WebSockets
โ โ โ
โ โโโโโโโโฌโโโโโโโโโ
โ โผ
โ Daphne / ASGI
โ โ
โ โโโโโโโโโดโโโโโโโโ
โ โผ โผ
โ PostgreSQL Redis
โ + PostGIS
โ
โโโโโโโโโ MapLibre
gravity/
โโโ backend/
โ โโโ accounts/
โ โโโ activities/
โ โโโ config/
โ โโโ manage.py
โโโ frontend/
โ โโโ src/
โ โโโ public/
โ โโโ vite.config.ts
โโโ deploy/
โโโ docs/
โโโ scripts/
โโโ README.md
Create a Python virtual environment and install the backend dependencies.
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtCreate your environment configuration based on the provided example.
Never commit the real .env file.
Run migrations:
python manage.py migrateStart Django/ASGI using the development configuration documented in the project.
cd frontend
npm install
npm run devGravity is currently deployed at:
https://gravity.college
Production uses:
Nginx
โ
Daphne / Django ASGI
โ
PostgreSQL + PostGIS
Redis
Deployment documentation is available under:
docs/GRAVITY_DEPLOYMENT.md
Gravity includes tooling for creating a controlled demo environment for development and hackathon demonstrations.
python manage.py seed_demo --resetDemo credentials are intentionally not stored in this public repository.
Gravity includes backend tests covering the major systems including:
- authentication
- activity sessions
- realtime updates
- privacy
- metrics
- leaderboards
- XP
- badges and streaks
- events
- seasons
- Pulse
- friends
- challenges
- auto-stop
- Gravity History
- Pulse Soon
Run tests from the backend environment with:
python manage.py testProduction secrets are stored outside Git.
The repository must never contain:
- Django production secret keys
- database passwords
.envfiles- private TLS keys
- production database dumps
- authentication cookies or tokens
Gravity was created for MuleHacks 2026 as a project centered around connecting people through real-world activity rather than traditional social-media content.
Gravity V1
- Feature complete
- Production deployed
- PWA enabled
- Realtime enabled
- Demo ready
๐ https://gravity.college