Skip to content

About

Making local government more transparent and accessible

Topics

Resources

Contributing

Stars

76 stars

Watchers

3 watching

Forks

Latest commit

 

History

3,687 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCouncil

Welcome to OpenCouncil - an open-source platform making local government more transparent and accessible. This project aims to digitize, transcribe, and make municipal council meetings searchable, helping citizens engage with their local government.

Website Discord Project Board X (formerly Twitter)

About the Project

OpenCouncil is developed by Schema Labs, a non-profit organization building technology to strengthen democracy.

  • 🎙️ Automatic Transcription: Word-for-word transcription of council meetings with speaker recognition
  • 🎯 Voice Recognition: Speaker identification using voiceprints
  • 📝 Smart Summaries: AI-generated summaries of council member statements
  • 🔍 Advanced Search: Full-text search across all council meetings
  • 📊 Subject Analysis: Automatic categorization of discussion subjects
  • 📢 Notification System: Personalized updates for citizens
  • 🎥 Meeting Highlights: Create and share custom video clips from council meeting moments, with automatic generation and editing capabilities
  • 📜 Diavgeia Integration: Link council decisions with their official publications on Diavgeia, Greece's government transparency portal
  • 🌐 Open Data: All data available through a public API
  • 🔐 Role-Based Access: Granular permissions for different user types
  • 🤖 AI Chat Assistant: Ask questions about council meetings
  • 💬 Discord Integration: Real-time admin alerts for system events
  • 🌍 Multilingual Support: (Coming Soon) Support for multicultural cities

Technical Architecture

Next.js 14 (TypeScript) + PostgreSQL/PostGIS + Prisma. A separate task server handles media processing and AI features. See the documentation index for architecture details and the full deployment topology.

Prerequisites

  • Node.js 18+ and npm
  • PostgreSQL 16 with the postgis extension, the PostgreSQL 16 client tools (pg_restore, psql), and zstd. The Nix and Docker setups include them.
  • Docker (optional, but recommended)
  • Nix (optional, recommended for the flake-based setup)

Documentation

For architecture, feature guides, and operational procedures, see the documentation index.

Contributing

We welcome contributions from the community! Please read our contributing guidelines to get started. Our contributor workflow is designed around a human-AI co-creation partnership, and the guidelines will walk you through the process.

To get started, you'll need to set up the project on your local machine.

Development Setup

Copy the example environment file:

cp .env.example .env

Then edit the file to include your specific configuration values.

Nix (Flakes) Setup

OpenCouncil supports a flake-based dev environment (recommended on NixOS, supported on macOS/Linux).

Enter the dev shell:

nix develop

Once you’re in the dev shell, follow the Nix Usage Guide for how to install Nix (if needed), run the dev runner, choose DB modes, and use the process-compose UI.

Docker Setup (Recommended)

The easiest way to get started is using our Docker setup:

Start the application with the local database:

./run.sh

This will automatically:

  • Start the dockerized PostgreSQL database
  • Apply database migrations
  • Seed the database with sample data
  • Run the application in development mode

Note:
For more advanced Docker configuration options, see Docker Usage Guide.

For a full list of required environment variables and instructions on how to generate secure values (such as NEXTAUTH_SECRET), see Environment Variables Reference.

Manual Setup

If you prefer to run without Docker:

  1. Install dependencies:

    npm install
  2. Set up your database connection:

    • For local development, you can use the dockerized PostgreSQL database:
      docker compose up db -d
    • Alternatively, you can use a PostgreSQL 16 database of your own on this machine by setting the DATABASE_URL environment variable in your .env file:
      DATABASE_URL="postgresql://user:password@localhost:5432/database"
      
      The database must have the postgis extension installed. The next step writes only to a database on this machine.
  3. Set up the database:

    npm run db:deploy:seed

    On an empty local database, this loads the latest published seed artifact (real public content of production), applies the migrations, generates the Prisma client, and adds the test accounts. It needs the PostgreSQL 16 client tools (pg_restore, psql) and zstd, and it stops with what to install when they are missing. On a database with data, it applies new migrations and puts back the test accounts and the Serbian review city when they are missing. See the Database Seeding Guide.

  4. Start the development server:

    npm run dev

About

Making local government more transparent and accessible

Topics

Resources

Contributing

Stars

76 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages