Skip to content

zenchantlive/TheFeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

TheFeed 🍎

Nourishing Neighborhoods, Together.

TheFeed is a hyperlocal food-sharing network that connects people experiencing food insecurity with nearby resources and neighbor-to-neighbor support. Built with dignity, privacy, and speed in mind.

License: MIT Next.js TypeScript

image

✨ Features

Crisis Path (No Sign-in Required)

  • Interactive Map – Mapbox GL-powered discovery of food banks, pantries, and meal programs
  • Real-time Status – See what's open now, verified by the community
  • Anonymous Access – Find food without creating an account

Community Path (Sign-in Required)

  • AI Sous-Chef – CopilotKit-powered assistant for finding resources, planning meals, and coordinating events
  • Community Feed – Share surplus food, organize potlucks, and post requests
  • Event Hosting – Create and manage food events with RSVPs and volunteer signups
  • Provider Dashboard – Food banks can claim and manage their listings

πŸš€ Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/zenchantlive/TheFeed.git
cd TheFeed/foodshare

# Install dependencies
bun install

# Copy environment template
cp .env.example .env

Environment Variables

Required environment variables in .env:

Variable Description
POSTGRES_URL PostgreSQL connection string (with sslmode=require for Supabase)
BETTER_AUTH_SECRET 32+ character random string (openssl rand -hex 32)
GOOGLE_CLIENT_ID Google OAuth client ID
GOOGLE_CLIENT_SECRET Google OAuth client secret
NEXT_PUBLIC_APP_URL Your app URL (e.g., http://localhost:3000)
NEXT_PUBLIC_MAPBOX_TOKEN Mapbox public access token
OPENROUTER_API_KEY OpenRouter API key for AI chat

Optional: | OPENROUTER_MODEL | Model override (default: openai/gpt-4.1-mini) | | POLAR_WEBHOOK_SECRET | Polar billing webhook secret |

Database Setup

# Generate migrations when schema changes
bun run db:generate

# Apply migrations
bun run db:migrate

# Seed sample Bay Area food banks (optional)
bun run scripts/seed-food-banks.ts

Development

# Start development server (with Turbopack)
bun dev

Visit http://localhost:3000 and explore:

  • /map – Discover food banks and resources
  • /chat-v2 – Talk to the AI Sous-Chef
  • /community – Browse community posts and events

πŸ›  Tech Stack

Category Technology
Framework Next.js 15 (App Router), React 19
Language TypeScript 5.9
Database PostgreSQL (Supabase) with Drizzle ORM
Auth Better Auth v1.3.34 + Google OAuth
UI shadcn/ui + Tailwind CSS 4
Maps Mapbox GL JS v3.1 (react-map-gl)
AI Vercel AI SDK + OpenRouter + CopilotKit
Fonts Geist Sans & Geist Mono

πŸ“‚ Project Structure

src/
β”œβ”€β”€ app/              # Next.js App Router pages
β”‚   β”œβ”€β”€ map/          # Food bank discovery map
β”‚   β”œβ”€β”€ chat-v2/      # AI Sous-Chef (CopilotKit)
β”‚   β”œβ”€β”€ community/    # Social feed and events
β”‚   └── api/          # API routes
β”œβ”€β”€ components/       # React components
β”‚   β”œβ”€β”€ ui/           # shadcn/ui components
β”‚   β”œβ”€β”€ map/          # Map-related components
β”‚   └── events/       # Event components
β”œβ”€β”€ lib/              # Utilities and database
β”‚   β”œβ”€β”€ schema.ts     # Drizzle ORM schema
β”‚   β”œβ”€β”€ auth.ts       # Better Auth config
β”‚   └── ai-tools.ts   # AI chat tools
└── hooks/            # Custom React hooks

πŸ§ͺ Development Workflow

# Type checking (fast, 2-5s)
bun run typecheck

# Linting
bun run lint

# Full build (slower, production verification)
bun run build

# Pre-commit workflow
bun run typecheck && bun run lint && bun run build

πŸ“– Documentation

🀝 Contributing

We welcome contributions! Please read our Contributing Guide for details on:

  • Setting up your development environment
  • Git workflow and branch naming
  • Code style and TypeScript standards
  • Pull request process

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

TheFeed builds on the Agentic Coding Starter Kit (MIT licensed).

πŸ™ Acknowledgments


Built with ❀️ by hungry neighbors.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •