How a Mid-Autumn gift spreadsheet became a maintainable sheltered-workshop directory

Using Collective 353's self-initiated '2026 Taiwan Sheltered Workshops Mid-Autumn Gift Map,' this post traces how a single data file generates both the website and offline spreadsheet, how missing addresses and order links are handled, and what it really takes to maintain it year over year.

In this note

The Mid-Autumn gift directory generates a searchable website and a purchasing spreadsheet from one dataset. When a workshop changes an order link, the editor corrects the source and rebuilds both outputs. Next year’s team has one place to start.

In Taiwan, every year ahead of the Mid-Autumn Festival, corporate welfare committees and individual buyers look for gift boxes made by sheltered workshops (nonprofit-backed workplaces employing people with disabilities). Yet product details are typically scattered across government PDF catalogs, foundation websites, Shopee or Rakuten storefronts, Google Forms, or even flyer images posted on social media pages. Collecting everything into a spreadsheet works in a pinch, but spreadsheets are clumsy on mobile when you want to filter by budget, county, or shipping method, and they offer no clean way to flag “sold out” or “broken link.”

In August 2026, Collective 353 launched the Taiwan Sheltered Workshops Mid-Autumn Gift Map as a self-initiated public-interest project. Walking through the actual code and data structure, this post traces one public gift box all the way from the master file to the spreadsheet and web page, looks at the real-world data gaps we ran into, lists what has to be updated for next year, and breaks down the real costs of infrastructure, verification, and upkeep.

One JSON source generating both the website and the spreadsheet

Many teams instinctively start with Excel and write a script to convert the spreadsheet into HTML. In this project, the direction is intentionally reversed: data.json acts as the single source of truth, and both the website and the Excel workbook are build outputs:

Public sources (Presidential Office 62-workshop list, Ministry of Labor catalog, workshop sites/stores, Threads self-submissions)
  → AI-assisted candidate collection + manual item-by-item verification → Single source data.json (68 workshops, 355 products)
       ├── build.py + page template (portal_template.html) → Static website (index.html and static images)
       └── build_xlsx.py → Offline workbook (2026中秋庇護工場公益禮盒總表.xlsx: Workshop Overview / Product Details / Summary sheets)

Treating data.json as the sole master file has a practical payoff: nested data (one workshop holding multiple products, multiple order channels, shipping inference notes, and link types) stays structured and easy to validate in JSON instead of breaking over merged cells or line breaks in a spreadsheet. Meanwhile, the export script still generates an Excel workbook with auto-filters and summary formulas so corporate buyers who prefer comparing quotes offline keep a ready-to-use spreadsheet.

Tracing one gift box: from master JSON fields to spreadsheet and web card

Public page of the Taiwan Sheltered Workshops Mid-Autumn Gift Map
The public page of the gift map. Both the web directory and the offline workbook are generated from the same curated dataset.

To see where every field ends up, let’s follow one publicly listed item from the August 23, 2026 dataset snapshot across all three surfaces: the “Abrazo – Tranquil Tea Time Tieguanyin Latte Gift Box” (愛不囉嗦-恬茶時光 鐵觀音拿鐵禮盒) from the Down Syndrome Foundation R.O.C. (Abrazo / 愛不囉嗦).

Field group Master file (data.json) fields Exported workbook (.xlsx) columns Front-end page (portal_template.html) rendering & behavior
Workshop & region id: 2, name, county: "新北市" (New Taipei City), region: "北部" (North), status: "2026中秋" Workshop ID, workshop name, county, region, and Mid-Autumn status in Workshop Overview and Product Details Displays “New Taipei City” and “2026 Listed” badges; clicking the workshop name expands all its links and items
Specs & pricing cat: "咖啡/飲品" (Coffee/Drinks), name, desc (contents & 6-month shelf life), price: 420, src: "勞動部型錄" (Ministry of Labor catalog) Category, product name, description, price 420, and price source “Ministry of Labor catalog (official suggested retail)” in Product Details Card shows title, summary, and NT$ 420, placing it in the 301–500 budget tier and “Coffee/Drinks” category tab
Order link & fallback channel url (points to the Ministry of Labor catalog detail page), lk: "catalog", plus alt (points to Facebook page ordering) and workshop-level buy (Abrazo online store) Product Details uses product url (falling back to workshop buy if absent); Workshop Overview lists primary buy link, official site, Facebook, Shopee, etc. Because lk: "catalog", the primary button intentionally renders in a secondary style labeled “View specs” (signaling it is a catalog page with no checkout), paired beside an alt button labeled “Order (FB Page)” so buyers aren’t surprised by a dead end
Shipping & contact order (convenience-store pickup / home delivery, free ambient shipping over NT$ 3,000, Shopee, phone), phone, ship: { tier: "yes", basis: "Order notes mention convenience-store pickup" } Order method and phone in Workshop Overview; phone in Product Details Classified under “Confirmed shippable” in filters and recommendations, with the reasoning note displayed directly on recommendation cards
Product photo img: "4bac50a494803e", imgsrc: "orsd.wda.gov.tw" Photo flag V and image source orsd.wda.gov.tw in Product Details Loads pre-converted WebP assets by hash: thumbnail /img/t/<hash>.webp and card image /img/c/<hash>.webp

This single record sums up the directory’s scope: the site never handles payments or orders, and instead helps buyers read the terms clearly before heading straight to each workshop’s official channel.

Who uses the map, and the real-world data gaps we had to handle

One dataset, two outputs
  • Source

    Check addresses, prices and order links

  • Website

    Filter gifts by region and budget

  • Spreadsheet

    Compare options offline

The directory serves two main groups: corporate buyers and welfare committee coordinators deciding on dozens to hundreds of boxes on a tight deadline, and individual shoppers looking to support local workshops by budget or county.

If workshops were sorted by ID or stroke order, large organizations with big catalogs would capture most of the clicks. Instead, the default view shuffles randomly on each load (using a per-session seed so pagination never duplicates items). A “Pick one for me” feature uses weighted randomization to boost harder-to-discover workshops, including phone-only ordering (×2.0), in-store focused shops (×1.5), catalogs with 2 or fewer items (×1.6), and workshops in eastern Taiwan or outlying islands (×1.4), while dialing down large online-enabled workshops with 10 or more items (×0.6). The recommendation reason is printed right on the card.

The real time sink wasn’t building filters; it was dealing with messy public data. In the August 23, 2026 inventory (68 workshops across 19 counties/cities, 355 items), four recurring gaps stood out:

Data gap Reality in the 2026-08-23 inventory UI & data-model response
Missing street addresses None of the 68 workshops had a dedicated street-address field (some only mentioned districts like Sanxia or Xinzhuang in notes) Avoided misleading pin-drop maps; built filters around 19 counties/cities and 5 regions (North, Central, South, East, Outlying Islands)
Mixed & missing order links Of 355 items, only 149 had direct product URLs, 199 fell back to workshop-level URLs, and 7 had neither (plus 2 community-submitted workshops had no online link and were phone-only) Modeled 7 link types (Buy, View specs, Order form, View store, View notice, View FB page, Call to order); renders a tel: button when no URL exists or ordering is phone-only
Missing prices, photos & seasonal status 28 of 355 items had no listed price and 160 had no photo; of 68 workshops, only 53 had 2026 Mid-Autumn items live, while 13 had year-round items pending update, 1 remained on 2025, and 1 had no public product listing Unpriced items show “Call for price” or “Negotiable”; missing photos render category character tiles (e.g., Moon, Pastry, Pineapple) instead of broken images; status badges clearly mark “Pending update” and “Call to inquire”
Unclear shipping rules Most workshops did not clearly state delivery fees or nationwide shipping rules Split into 4 tiers (Confirmed shippable / Likely shippable / In-store focused / Call to ask), preserved the inference basis per workshop, and added a footer note clarifying items were not phone-verified one by one

To keep corrections flowing during the peak season, every product row and workshop card includes a “Report” button. Submissions go to Cloudflare Pages Functions, passing same-origin checks, a honeypot field, Cloudflare Turnstile verification, and a rate limit of 5 reports per IP per hour (storing only a salted IP hash, never raw IPs) before writing to Cloudflare D1. Maintainers review submissions in a password-protected admin view, verify the facts, update data.json, rebuild, and redeploy. Unverified anonymous reports never modify the live catalog directly.

What actually needs to change when relaunching next Mid-Autumn?

Seasonal civic projects die when they rely on memory. Auditing the codebase gives a concrete five-step checklist for handing off and updating the map for Mid-Autumn 2027:

  1. Update the master data file (data.json): refresh the meta title, curation date, new Mid-Autumn Festival date, and official catalog URLs; reset workshop statuses and audit each workshop’s new gift boxes, pricing, order links, and discontinued items; review last year’s community submissions and error reports.
  2. Refresh the product image directory by converting thumbnails and card .webp assets for newly added or repackaged gift boxes, keeping filenames aligned with image hashes and source credits in data.json.
  3. Update hardcoded year and status strings in portal_template.html, including "2026" filter labels, status sort keys (such as 2026中秋 and 2025中秋(2026待更新)), the header subtitle, and footer date notes (or refactor them to read dynamically from data.json if maintaining annually long-term).
  4. Adjust the workbook export script (build_xlsx.py) if an offline Excel summary is still needed, updating input/output paths, summary sheet year headings, and status matching strings.
  5. Rebuild and deploy by running build.py with the Turnstile Site Key and production URL, then deploying to Cloudflare Pages via Wrangler. Existing D1 report tables remain remotely; export them to CSV for archival before starting the new season’s reports.

Separating deployment, data verification, and maintenance time

When people describe static civic websites, it is tempting to summarize them as “virtually zero maintenance and zero server cost.” That framing sets future maintainers up for a surprise. Looking at where the effort actually goes gives a clearer picture.

On infrastructure and billing, the front end is prebuilt static HTML and images hosted on Cloudflare Pages, while the correction form and admin API run on Cloudflare Pages Functions, backed by Cloudflare D1 for reports and rate-limit counters and Cloudflare Turnstile for bot protection. That removes the need to rent or patch always-on virtual machines or traditional database servers. However, because we do not have actual billing and traffic settlement records for this campaign period, we do not claim “zero server cost.” Actual costs still need to be checked against current cloud pricing terms and traffic volume.

The largest cost is data collection and human verification. Even with AI helping gather public catalogs and candidate lists, what makes the directory usable is checking each entry by hand: confirming whether links actually lead to checkout, whether photos match the right boxes, whether prices are left over from last year, and marking missing fields honestly. No tech stack removes that work.

In-season reports and annual refreshes take steady attention as well. Two to three weeks before the festival, items sell out and links change quickly. Maintainers still need to check D1 reports periodically, verify workshop announcements, update data.json, and redeploy, then set aside dedicated hours for a full inventory refresh the following year.

Keeping the data model clean and reducing build and deployment to one command cuts out engineering rework and server upkeep, leaving limited volunteer time free for verifying each sheltered workshop’s latest details.


Further reading & services