Experiments
How it's built

How these tools are built and tested

I am a development economist and a lawyer, and I built these tools for my own work: impact evaluation, poverty and labour data, and legal calculations.

For each tool I take the method from the paper, the survey manual or the statute, and I choose a source outside the tool to check its answers against. That source is usually a Python library, a table the publisher prints, or a worked example. I write much of the code with Claude, an AI coding assistant. The tests compare the code's answers with those sources, and they run every time the repository changes. The code and the tests are on GitHub.

At present 12 tools have their arithmetic in a separate test suite, listed below. The rest were checked by hand when they were built.

What each test checks against

In these tools the arithmetic is kept in its own script block, apart from the code that draws the page. The test file runs that block under Node and compares its results with values computed elsewhere.

To see whether a test can fail, I broke the code on purpose, one change at a time, and confirmed the test failed each time. The repository's notes record 171 such changes across these suites.

State figures from unit-level survey data

MoSPI's API gives Time Use Survey figures for All India only. The state figures in Unpaid Care Valuation were therefore computed from the 2024 unit-level file, which MoSPI distributes in Nesstar format without a published file layout. The script records the layout I worked out, and it writes nothing unless its All India results match the eight figures MoSPI publishes.

In the 2019 file the start and end time of every activity is blank, across all 9,436,777 diary rows, so the 2019 minutes come from the published report. The 2019 wages come from the person files of two PLFS rounds. They match MoSPI's quarterly figures to within 0.15% for regular wages and 1.75% for casual wages.

Some state wages in PLFS rest on very few workers. The casual wage for women in Chandigarh and in Mizoram each comes from one woman in the sample. The tool counts the workers behind every wage and does not use a wage based on fewer than 30.

The unit-level files are not in the repository. They are large and they are row-level survey data. The scripts are there for anyone who gets the files from MoSPI.

API keys and outside code

The Court Petition Translator uses Sarvam AI and Groq, and the read-aloud in Little K uses Sarvam AI. The keys for both are held in a Netlify server function and are never sent to the browser. Until October 2026 that function accepted requests from any website. It now accepts requests only from this site.

The site's Content-Security-Policy lists the outside addresses a page is allowed to load or contact. A check compares that list with what the pages load. It found 19 addresses that no page used, and I removed them. Scripts loaded from a CDN are pinned to an exact file, and a weekly job confirms each file has not changed.

Accessibility

Every page is audited with axe at phone and desktop widths, on every change. The first audit, in September 2026, found 573 serious or critical problems. Most were form fields with no label a screen reader could use, and grey text below the contrast minimum. Three pages also scrolled sideways on a phone. All of them are fixed.

Bugs that showed no error

Not yet done

Need help setting out your story, what sets your work apart, the context, the return on investment and the projections? Pinpoint Ventures can help. Write to hello@pinpointventures.in or message on WhatsApp.