# Tend

Hackathon · Civic Tech. A project by Sanat Gupta.

Award: 1st place, Capital One, MHacks 2026

Find the crime victim compensation your state already owes you, with every dollar tied to the exact law. No name, no story. A privacy-first web app that helps sexual assault survivors in all 50 states and DC claim crime victim compensation. I turned 2,728 verified rules from 824 legal sources into bytecode run by a C++ engine compiled to WebAssembly, so bank statements and bills are read on the device and every dollar cites the exact law. It flags hospital charges the law says a victim can't be billed for and pays the rest through Capital One's Nessie API after a confirm code. Built in 24 hours and extended since; a Python reference engine agreed with it on 121,000 test claims with 0 mismatches.

## What it does

- Covers all 50 states and DC: 2,728 verified rules drawn from 824 legal sources
- Rules compiled to bytecode and run by a C++ engine compiled to WebAssembly, so bank statements and bills are read on the device
- Every dollar it finds cites the exact law behind it
- Flags hospital charges the law says a victim cannot be billed for, and pays the rest through Capital One's Nessie API after a confirm code
- Privacy-first: no name and no personal story required
- Built in 24 hours at MHacks 2026 and extended since
- Checked against a Python reference engine written from the same spec: agreement on 121,000 test claims with 0 mismatches

## Tech

- Rules engine: C++20 compiled to WebAssembly, run on the device
- Rules: 2,728 rules from 824 legal sources, 50 states and DC
- Frontend: Next.js, TypeScript
- Backend: Python, FastAPI
- Database: Neon Postgres
- Payments: Capital One Nessie API (mock bank sandbox)
- AI: Fetch.ai agents, Gemini Nano
- Validation: 121,000 test claims vs a Python reference engine, 0 mismatches
- Built: 24 hours at MHacks 2026

Tags: C++20, WebAssembly, TypeScript, Next.js, FastAPI

## Demo video

A walkthrough with Tend's fictional demo case, Rowan Hale in Michigan. No sound. 43 seconds: https://thesanatgupta.com/media/tend/demo.mp4

What the captions say:

- Pick a state. Tend reads that state's law and tells you if you can apply, and by when.
- Tend never asks your name or what happened. Only the state goes to its server.
- It reads bank statements and bills on this device, line by line.
- It adds up what the program can pay for. Every dollar cites the law behind it.
- It flags hospital charges that Michigan law says a survivor can't be billed for.
- The rest is paid only after a 6-digit code. In this demo, no real money moves.
- Then it fills in Michigan's form, leaving your name and story for you to add.

## Links

- Live site: https://youreowed.tech
- Source code: https://github.com/thesanatt/tend
- Devpost: https://devpost.com/software/tend-ua9rm8
- Press: [Student-built tool helps crime survivors access compensation](https://cse.engin.umich.edu/stories/student-built-tool-helps-crime-survivors-access-compensation) (Michigan CSE, November 2026)
- Michigan CSE on LinkedIn: https://www.linkedin.com/posts/techforgood-softwareengineering-computerscience-share-7526356805690478592-B1jo/

Web page: https://thesanatgupta.com/projects/tend
