How soenug66/wristkaki works
Wrist Kaki is a static AliExpress affiliate minisite for Singapore Casio-watch shoppers. Its main workflow is to retrieve and filter product listings, create product pages with buyer guidance and affiliate links, then publish the generated site for visitors to browse and buy. The README also describes counterfeit warnings, editorial guides, a live Singapore clock and a case-size finder. The excerpts show the catalog, article, template and optional Supabase behavior; other page-generation details are supported by the README or module references, not fully sampled source.
Main entry points: build.mjs Site builder · ali.mjs AliExpress catalog · article.mjs Product guidance · util.mjs Text and money utilities
Components 18
Catalog and data
- AliExpress catalog
scripts/lib/ali.mjs - Preview catalog
scripts/lib/sample.mjs - Supabase cache
scripts/lib/supabase.mjs - Text and money utilities
scripts/lib/util.mjs
Buyer content
- Product guidance
scripts/lib/article.mjs - Guide index
content/guides.mjs - Guide collection A
content/guides_a.mjs - Guide collection B
content/guides_b.mjs
Static site
- Site builder
scripts/build.mjs - Page templates
scripts/lib/templates.mjs - Generated static pages
scripts/build.mjs
Visitor experience
- Browser assets
public/app.js - Case size finder
public/app.js - Singapore live clock
public/app.js
Other components
- Shopper
- AliExpress API
- Exchange-rate API
- Affiliate listings
Connections 22
- Site builder → AliExpress catalog: fetches listings
scripts/build.mjs - Site builder → Preview catalog: loads preview data
scripts/build.mjs - AliExpress catalog → AliExpress API: queries products
scripts/lib/ali.mjs - AliExpress catalog → Exchange-rate API: gets exchange rate
scripts/lib/ali.mjs - Site builder → Product guidance: builds product guidance
scripts/build.mjs - Product guidance → Supabase cache: reads cached articles
scripts/lib/article.mjs - Site builder → Supabase cache: stores catalog snapshot
scripts/build.mjs - Site builder → Page templates: renders pages
scripts/build.mjs - Page templates → Product guidance: uses product details
scripts/lib/templates.mjs - Site builder → Guide index: loads guide content
scripts/build.mjs - Guide index → Guide collection A: imports guides
content/guides.mjs - Guide index → Guide collection B: imports guides
content/guides.mjs - AliExpress catalog → Text and money utilities: cleans and formats
scripts/lib/ali.mjs - Preview catalog → Text and money utilities: cleans and slugs
scripts/lib/sample.mjs - Product guidance → Text and money utilities: formats content
scripts/lib/article.mjs - Page templates → Text and money utilities: formats pages
scripts/lib/templates.mjs - Site builder → Generated static pages: writes static output
scripts/build.mjs - Shopper → Generated static pages: browses
- Generated static pages → Affiliate listings: links to offers
- Generated static pages → Case size finder: provides finder
README.md - Generated static pages → Singapore live clock: shows live time
README.md - Generated static pages → Browser assets: includes browser assets