← All projects

Community & preservation / Live

BooksbyPress

Three generations of e-commerce for a miniature-book business.

Visit Booksby Press ↗Explore MiniBookCat ↗
1,264Products with embeddings
93%Smaller catalog payload
46Database migrations
19Edge functions

Why I built it

My father operated two separate osCommerce websites for his miniature-book business. I migrated them to WordPress/WooCommerce and ultimately rebuilt the store on a custom stack. I wanted him to manage inventory, orders and customers himself, with a platform that fits the needs of a specialist dealer. MiniBookCat is its companion public bibliographic reference, not another storefront.

What it does

The live storefront offers catalog browsing, semantic search with keyword fallback, customer accounts and order history. A separate back office handles products, refunds, staff roles, sales analytics, newsletters and marketplace stock sync. PayPal handles payments, and the full WooCommerce order history was imported. An in-app shipping flow is built and quoting live carrier rates: buying a label will record it in a shipment ledger, push tracking to PayPal and let a carrier webhook mark the order delivered. The first live label is the next step. The store then became the TzolakSites storefront template.

Engineering lessons

Keep vectors out of storefront payloads: that cut the catalog response by 93%. Model shipments as a ledger, never overwrite history. Proof of delivery matters more than the cheapest rate. Generalize a template from a proven business, not assumptions.

From the build log

Order emails that vanished without an error

Confirmations stopped arriving with nothing logged. The mail host pointed at a CDN-proxied name: TLS completed against the CDN’s edge, nothing answered as SMTP, and with no timeout the send hung forever. The tell was a “sending” line followed by neither success nor failure.

Shipping decided by real quotes

The same parcels were quoted both ways. Domestic was a wash once the declared weights matched; international was clearly cheaper with automatic customs forms. The cheapest services were rejected on purpose: without delivery confirmation, a payment “item not received” dispute can’t be defended.

A 403 that wasn’t the table

A status-change trigger called the auth helper without SECURITY DEFINER. Policies calling the same helper worked, because policies resolve names at creation while function bodies resolve at run time under the caller.

What’s next

Run the first live labels through the full delivery workflow, connect the postal scale, add live carrier rates at checkout once product weights fill in from the shipment ledger, and build back-office bookkeeping.

Principles in practice

Interconnectivity

Storefront, payment, shipping and inventory workflows connect to a reusable hosting template.

Security by Design

Scoped staff roles and guarded transaction flows constrain access and preserve history.

Continual Improvement

Actual order workflows and payload measurements informed the redesign.