Skip to content
hassanismailtechPublic

About

Pacts is an asynchronous digital negotiation workspace. It is a lightweight web platform that allows two informal parties to collaboratively define their terms in plain, conversational English. The system automatically maps these inputs onto legally binding, compliance-checked boilerplate templates (NDAs, SLAs).

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Pact (Hackathon MVP)

Pact is a lightweight web demo that turns an informal “WhatsApp handshake” into a structured agreement in minutes.

This repo contains only the frontend (React + Vite + Tailwind). It simulates link-sharing and state on the client for a live demo.

Quickstart (copy/paste)

npm install

Create .env in the project root:

echo VITE_GEMINI_API_KEY=your_key_here> .env

Run the app:

npm run dev

Build (optional sanity check):

npm run build

Demo script (end-to-end “Happy Path”)

  1. Open the app at http://localhost:5173/

  2. Click Start an Agreement

  3. Paste a prompt like:

    I'm paying Chioma ₦75,000 to build my e-commerce website by May 30, 2026.
    
  4. Submit → wait for analysis → review extracted terms → click Looks good

  5. On Review and share:

    • Confirm currency shows ₦ (not #)
    • Tap Whatsapp (demo shortcut to open the receiver link)
    • Or tap Copy shareable link and open it in another tab/device
  6. Receiver opens /agreement/:id:

    • Toggle Plain English / Legal Jargon
    • Click Accept terms
  7. Executed state:

    • Click Download agreement PDF (exports Pact_Agreement.pdf)

Data flow (MVP constraints)

  • No authentication: anonymous session only.
  • No backend DB: agreements are stored in browser localStorage to simulate link-sharing.
  • Chat-to-doc extraction: uses Gemini Flash via @google/generative-ai with a strict JSON-only schema:
    • partyA, partyB, amount, deliverable, deadline

Privacy Policy (MVP)

  • Pact does not collect accounts or store drafts on a server in this MVP.
  • Chat prompts are sent to the Gemini API for extraction.
  • Do not include passwords, bank details, national IDs, or other highly sensitive data in prompts.

Disclaimer

Pact provides general information to help parties clearly document terms. It is not a law firm and does not provide legal advice. For complex agreements, consult a qualified lawyer.

Contact

For demo support: hello@pact.app

About

Pacts is an asynchronous digital negotiation workspace. It is a lightweight web platform that allows two informal parties to collaboratively define their terms in plain, conversational English. The system automatically maps these inputs onto legally binding, compliance-checked boilerplate templates (NDAs, SLAs).

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages