Open source, the updated version
Cohort Builder 2, rebuilt for the browser
This is the updated version of Cohort Builder. The first one was a Streamlit app. I wanted something faster and easier to host, so I split it in two: a FastAPI service that runs the linkage with Splink and DuckDB, and a plain web front end that talks to it.
It links two files or finds duplicates inside one, then shows how accurate the match was. You choose the fields and blocking rules, and a live waterfall shows how many candidate pairs each rule adds. Every run gets seven result tabs, two runs can be compared side by side, and you can export the cohort, the model and a printable report. It handles up to 50,000 records, and a linkage that size takes a few seconds on my laptop.
For a public host I added guards: runs that would create too many candidate pairs are refused with a reason, uploaded models are screened before they run, and URL imports accept public addresses only. The demo data is synthetic, so no real people are involved. It has a test suite and an MIT licence.
Python, FastAPI, Splink, DuckDB, pandas, Plotly, JavaScript, Docker, Hugging Face Spaces, Cloudflare Pages, pytest