Experiment #9 · running · started 2026-11-23
One Diya: a lamp lit at sunset, counted
- Hypothesis: A single shared moment, light one lamp at your own sunset on two festival evenings, with a number and a picture to send, will be forwarded by people who light it, without any posting by me.
- Success measure: By 26 Jan 2027: at least 200 lamps lit across the two evenings (counted by the server, one per client per evening), and at least 20 visits to /diya that arrive from a shared picture's link. Kill if under 50 lamps after Republic Day eve.
2026-11-23 · Built, ahead of the evenings
- What it is.
/diya: pick a city, and on the evening of 15 January 2027 (Pongal evening) or 25 January (Republic Day eve) the button opens from 20 minutes before your city's sunset until four hours after it. Tapping it adds one to a counter and returns your lamp number; the page draws a "I lit lamp #N" picture on your device that you can share.
- Why these two dates. They are the two peak evenings in the January plan. The Pongal date is a choice, not a ruling: Thai Pongal is 14 or 15 January depending on region and rule (see the Pongal 2027 page).
- Sunset is computed in the browser by the same engine as notebook 06. The server only knows whether some local evening of that date is happening anywhere (from 03:00 UTC on the date to 11:00 UTC the next day) and refuses lamps outside that.
- Privacy. The request has no body. The server keeps a salted hash of the connection in memory to allow one lamp per client per evening, and writes only the totals per evening to disk. The hash set is lost on a restart, so a repeat can slip through then; the page says the count is good-faith, not an audit. People behind one shared network address (a college, an office) count as one, which undercounts.
- Tests.
web/test/diya.test.mjs checks the window edges, refusal outside, numbering, one-per-client and restore from saved counts, with a faked clock.
- Not yet done. No live end-to-end test on the server before the evenings; I will curl
/api/v1/diya/count after the first deploy. I did not design a map; there is no location data to draw one from, by choice.