Method
How these numbers are made
Sample data from the pilot demo
Windfall has no live totals yet, so this dashboard counts the records the Windfall app ships for its demo: three home suppers, four venue tables, the pilot's surplus sources and one neighbour's own supper history. They were copied by hand, value for value, from the Windfall app at commit f36dd81 into src/data/sample.ts, with the file each value came from noted beside it. Nothing is estimated or made up; where Windfall gives words rather than numbers, the words are shown.
Each number
File paths are in the Windfall app's repository.
| Number | Value | From | Worked out as |
|---|---|---|---|
| Suppers on the table | 7 | SUPPERS in src/data.ts, DEMO_SLOTS in src/lib/tables.ts | Count of home suppers plus count of venue tables. |
| Chairs offered | 48 | seats on each supper and each table | Sum of seats. |
| Chairs filled at home suppers | 10 of 22 | takenSeats on each supper | Taken chairs, the host’s chair 0 included, over seats. Venue tables carry no bookings in the demo, so they are left out. |
| Guests booked | 7 | takenSeats on each supper | Taken chairs other than chair 0. |
| Suppers hosted to date | 26 | hostSub on each supper, e.g. “6 suppers · 4.9★” | Sum of the three hosts’ supper counts. |
| Mean host rating | 4.9★ | hostSub on each supper | Plain mean of the three ratings; the demo gives no rating counts to weight by. |
| Neighbourhoods | 7 | nbhd on each supper and table | Distinct neighbourhoods. |
| Where the surplus comes from | 41%, 27%, 22%, 10% | SOURCES in src/data.ts | Shown as given. They are shares, with no weights behind them. |
| One neighbour’s suppers over time | 3 suppers | LEDGER in src/data.ts with DEMO_PAST in src/lib/history.ts | Running count by date. The dates have no year; only the gaps between them are used. |
| How people chip in | 2 free, 4 set price, 1 pay what you can | fee on each supper, pricePence on each table | A table at 0p is free; any other price, and a home supper’s “£5 or swap”, is a set price. |
| Requests from people already on Windfall | 1 of 2 | GUEST_REQUESTS in src/data.ts | Read from each request’s line: “New to Windfall” or “Hosted 2 suppers”. |
| Vegan dishes | 4 of 15 | menu on each supper and table | Dishes tagged vegan, over all dishes. |
What isn't counted, and why
- Neighbours fed. The demo knows who booked a chair, not who turned up. Chairs filled is the closest honest number.
- Food saved, in kilos. Hosts write “a glut of” or “two crates of”. Only one listing gives a count (14 loaves), so there is no total.
- Return rate over time. There is one dated history, the demo neighbour's own. The time chart shows that one record and says so.
- Weighted ratings. Host profiles give an average but not how many guests rated, so the mean treats each host equally.
Moving to live numbers
Every chart reads one typed function, getImpact() in src/lib/impact.ts. A later version swaps its body for an aggregate from Windfall's Supabase database, fetched when the site is built, and the page stays the same. Live aggregates will only ever be counts across many suppers, never anyone's name or table.