Skip to content

morrisonak/Bonfire-App

Repository files navigation

Bonfire App

A procurement opportunity aggregator that pulls open solicitations from 50+ government and public agency portals powered by Bonfire Hub. Search, filter, sort, and export opportunities across federal, state, county, city, university, healthcare, transit, and utility agencies.

Features

  • Multi-Agency Aggregation - Fetches open opportunities from 50+ agencies in a single view
  • Search & Filter - Search by project name, reference ID, or description; filter by days until close, category, or agency
  • Sorting - Sort by close date, open date, agency name, or department
  • Export - Download results as CSV or JSON
  • Agency Categories - Federal, State, County, City, University, Healthcare, Transit, Utility, Regional, International
  • Edge Caching - KV-backed 5-minute cache per agency for fast repeat loads
  • Dark Mode - System-aware with manual toggle
  • Responsive - Mobile and desktop layouts

Tech Stack

Getting Started

Prerequisites

Installation

bun install

Database Setup

wrangler d1 migrations apply bonfire-cache

Development

bun run dev

Open http://localhost:5173.

Production

bun run build
bun run deploy

Project Structure

app/
  routes/
    home.tsx              # Main opportunities browser
  components/
    navbar.tsx            # Navigation with dark mode toggle
    agency-selector.tsx   # Grouped agency dropdown
    search-filters.tsx    # Search, filter, sort controls
    project-card.tsx      # Opportunity card
    pagination-controls.tsx
    ui/                   # shadcn/ui primitives
  config/
    agencies.ts           # 50+ agency configurations
  lib/
    api-client.ts         # Bonfire Hub API client with KV caching
    project-utils.ts      # Filtering and sorting logic
    date-utils.ts         # Date formatting
    export-utils.ts       # CSV/JSON export
    types.ts              # TypeScript interfaces
workers/
  app.ts                  # Cloudflare Workers entry point
migrations/
  0001_cache_schema.sql   # D1 schema

License

MIT

About

Government procurement opportunity aggregator — 50+ agencies, Cloudflare Workers, React Router v7, D1, KV caching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors