Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Civic Drafter v0.8 πŸ›οΈ

By Lustra.news - The Civic Evolution Initiative

Civic Drafter is a local-first, zero-backend, AI-powered legislative drafting tool. It allows citizens to translate social problems into strictly formatted, constitutionally sound legal frameworks (LDS-1 Standard).

Built as a single-file SPA (Single Page Application) to ensure absolute transparency and zero operational costs.

🎯 Core Features

  • BYOK (Bring Your Own Key): Runs entirely in your browser using the Google Gemini 2.5 Flash API. Your API key never leaves your sessionStorage.
  • Constitutional Filter: Pre-scans the user's objective against US Constitutional law before drafting begins.
  • AI Tribunal (Auditor): Ruthlessly evaluates the generated draft for structural integrity, loopholes, and emotional bias.
  • Auto-Fixer: The AI can directly apply audit feedback to the live document.
  • Zero-Backend Export: Generates downloadable .html files locally or routes the draft to your local email client.

πŸ› οΈ Tech Stack

  • Vanilla HTML / JavaScript
  • Tailwind CSS (via CDN)
  • Google Gemini REST API

πŸš€ Getting Started (Run Locally)

You don't need a server to run this.

  1. Clone the repository.
  2. Open index.html in your browser.
  3. Get an API Key from Google AI Studio.
  4. Start drafting.

πŸ“œ License

This project is licensed under the MIT License.

You are free to use, modify, and distribute this software. Our goal is to arm citizens with tools to comprehend and write the laws that govern them. If you build something cool with it, let us know.

About

Created for lustra.news

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages