Skip to content

fireform-core/FireForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

180 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ”₯ FireForm

Digital Public Goods

FireForm is a recognized Digital Public Good (DPG) from the United Nations and the 1st Place Winner of the Reboot the Earth hackathon, hosted by the UN and UC Santa Cruz (UCSC).

It is an open-source, agnostic system built to solve administrative overhead for first responders, designed to help departments like Cal Fire save hundreds of hours by eliminating redundant paperwork.

🚩 The Problem

First responders, like firefighters, are often required to report a single incident to multiple different agencies (e.g., county sheriff, local PD, emergency medical services). Each agency has its own unique forms and templates. This forces firefighters to spend hours at the end of their shift filling out the same information over and over, taking them away from critical duties.

πŸ’‘ The Solution

FireForm is a centralized "report once, file everywhere" system.

  • Single Input: A firefighter records a single voice memo or fills out one "master" text field describing the entire incident.
  • AI Extraction: The transcription is sent to an open-source LLM (via Ollama) which extracts all the key information (names, locations, incident details) into a structured JSON file.
  • Template Filling: FireForm then takes this single JSON object and uses it to automatically fill every required PDF template for all the different agencies.

The result is hours of time saved per shift, per firefighter.

✨ Key Features

  • Desktop App: Download the native desktop app for macOS, Windows, or Linux from Releases.
  • Agnostic: Works with any department's existing fillable PDF forms.
  • AI-Powered: Uses open-source, locally-run LLMs (Mistral) to extract data from natural language. No data ever needs to leave the local machine.
  • Single Point of Entry: Eliminates redundant data entry entirely.

Open-Source (DPG): Built 100% with open-source tools to be a true Digital Public Good, freely available for any department to adopt and modify.

🀝 Code of Conduct

We are committed to providing a friendly, safe, and welcoming environment for all. Please see our Code of Conduct for more information.

πŸš€ Contributing

Contributions are welcome! Please see our Contributing Guide to learn how you can help.

βš–οΈ License

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

πŸ–₯️ Desktop App

FireForm is available as a native desktop application for macOS, Windows, and Linux.

Download

Grab the latest installer from the Releases page:

  • macOS: .dmg
  • Windows: .exe (NSIS installer)
  • Linux: .AppImage

Run from Source

cd frontend
npm install
npm start

Note: The desktop app is a thin Electron wrapper around the same web frontend. The backend (API + Ollama) still needs to be running β€” see the Deployment Guide.

πŸ† Acknowledgements and Contributors

This project was built in 48 hours for the Reboot the Earth 2025 hackathon. Thank you to the United Nations and UC Santa Cruz for hosting this incredible event and inspiring us to build solutions for a better future.

πŸ“œ Citation

If you use FireForm in your research or project, please cite it using the following metadata:

Cite this repository

You can also use the "Cite this repository" button in the GitHub repository sidebar to export the citation in your preferred format.

πŸ“ Ownership & Accountability

FireForm is an Open Software Digital Public Good. Ownership and accountability for the software code and its assets are clearly defined and lie with the core creators. This ownership is officially documented in our public LICENSE file, on our public website, and listed below.

Contributors (Accountable Entity):

  • Juan Álvarez SΓ‘nchez (@juanalvv)
  • Manuel Carriedo Garrido
  • Vincent Harkins (@vharkins1)
  • Marc VergΓ©s (@marcvergees)
  • Jan Sans

πŸ”“ Platform Independence

FireForm is built entirely on open-source technologies and has no mandatory proprietary dependencies, ensuring complete platform independence.

  • Frontend: Built with React and packaged with Electron (Node.js). Dependencies are listed in frontend/package.json.
  • Backend: Built with Python (FastAPI, SQLite). Dependencies are listed in requirements.txt.
  • AI System (Optional): Uses Ollama running open-weight LLMs (e.g., Mistral), ensuring all AI processing is done locally and openly. Note: The AI features are optional and not core to the main functionality of FireForm (which operates as a digital form and template manager). The AI extraction can be disabled in the application settings. Furthermore, this local Ollama dependency can be swapped with any other LLM service.

All dependencies can be verified through the GitHub dependency graph (SBOM). There are no vendor lock-ins, and any external service is designed to be replaceable with open alternatives without overhauling the core product.

πŸ’Ύ Mechanism for Extracting Data

FireForm is designed from the ground up to ensure that all generated and collected data is fully accessible and not locked into proprietary formats.

  • Data Format: Any information (both non-PII and PII) extracted by the local LLM is generated and exported natively as a standard, non-proprietary JSON file.
  • Data Storage: User preferences and template mappings are stored locally using SQLite, an open-source database engine.
  • Export Mechanism: All structured data can be easily imported, exported, or exposed via the local FastAPI endpoints. No closed formats or proprietary databases are used.

πŸ”’ Privacy & Applicable Laws

FireForm is built on a local-first architecture: all processing (including AI extraction) occurs locally on the operator's hardware and nothing is transmitted to external servers by default. However, operators should be aware of the following:

  • PII is processed locally. Incident descriptions, names, dates, and other personally identifiable information are extracted by the local LLM, written into filled PDF files, and persisted in the local database (FormSubmission records). These files and records remain on disk until explicitly deleted.
  • No external transmission. Data does not leave the machine by default. Audio transcription (Whisper) and LLM inference (Ollama) are both local services.
  • Operator responsibility. Because PII is stored locally, the security of that data depends entirely on the operator's host system, filesystem permissions, backup practices, and access controls.

For complete details on data handling and compliance guidance, please review our public Privacy Policy.

πŸ—‘οΈ Data Deletion & Retention

FireForm provides API endpoints and an automated purge mechanism to manage stored PII.

Deleting individual records

# Delete a single form submission (removes DB record + output PDF)
curl -X DELETE http://localhost:8000/api/v1/forms/{submission_id} \
  -H "X-API-Key: your-key"

# Delete a template and all associated submissions
curl -X DELETE http://localhost:8000/api/v1/templates/{template_id} \
  -H "X-API-Key: your-key"

Bulk purge

# Purge all submissions older than 30 days
curl -X POST "http://localhost:8000/api/v1/forms/purge?days=30" \
  -H "X-API-Key: your-key"

Automated retention

Set RETENTION_PERIOD_DAYS in docker/.env.dev (default: 30). Celery Beat will automatically run a purge job every night at 03:00 UTC:

RETENTION_PERIOD_DAYS=30

To enable the scheduler: celery -A app.core.celery beat -l info

πŸ”‘ Access Control

Deletion and purge endpoints can be protected by setting an API key:

FIREFORM_API_KEY=your-strong-secret-key

When set, all DELETE and POST /purge requests must include one of:

  • Header: X-API-Key: your-strong-secret-key
  • Bearer token: Authorization: Bearer your-strong-secret-key

Read-only endpoints (list, preview, fill) do not require authentication.

πŸ›‘οΈ Operator Hardening Recommendations

  • Filesystem permissions: Restrict access to data/inputs/ and data/outputs/ to the application user only (chmod 700).
  • Backups: Encrypt any backups containing output PDFs.
  • HTTPS: Deploy behind a reverse proxy (e.g., nginx) with TLS enabled.
  • API key rotation: Rotate FIREFORM_API_KEY regularly and never commit it to version control.
  • Retention policy: Configure RETENTION_PERIOD_DAYS in line with applicable regulations (HIPAA, GDPR, CCPA).

πŸ›‘οΈ Do No Harm by Design

FireForm is built to anticipate and prevent harm:

  • Data Privacy & Security (9A): We handle sensitive incident data entirely offline. By never transmitting data to the cloud, we natively prevent online data breaches of PII. Operators are responsible for securing local storage; see the Operator Hardening Recommendations above.
  • Inappropriate Content (9B): The application is an internal productivity tool without public social interactions or user-generated content hosting, completely mitigating the risks of public harassment or illegal content distribution.
  • Protection from Harassment (9C): For our open-source contributor community, we strictly enforce our Code of Conduct to ensure a safe, harassment-free environment for all contributors.

πŸ… Standards & Best Practices

FireForm strictly aligns with globally recognized standards and best practices to ensure interoperability and sustainable implementation:

Featured Standards:

  • JSON & UTF-8: All data extraction and templates rely on standard JSON and UTF-8 encoding.
  • OpenAPI & REST: The Python FastAPI backend automatically adheres to the OpenAPI specification and RESTful architectural standards.

Featured Best Practices:

  • Community: We enforce a strict Code of Conduct and provide clear Contribution Guidelines.
  • Lifecycle Management: We use Git for Change Management, strictly adhere to Semantic Versioning (SemVer), and utilize Tagged Releases.
  • Interoperability & Architecture: We employ Open Standards (JSON/SQLite), Programmatic APIs (FastAPI), and strict Dependency Management (package.json, requirements.txt).

About

FireForm is a tool to streamline documentational overhead for emergency departments.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors