Books, Ideas & Intelligence Worth Keeping.
Discover original books, papers and reports. Add free publications to your personal library, read them online anytime, and download each publication once.
Free Publications
My Library
Your publications stay here permanently. Online reading is unlimited. Each title may be downloaded once.
My Account
This prototype uses a local demo account. Production will connect this screen to Supabase authentication/magic links.
Digital Book Store™ Admin
V1 administration starter. Production saves through Cloudflare to Supabase.
Customer Download Reset
Production will search the customer's entitlement and reset the one-download allowance server-side while retaining the audit history.
Architecture & Setup
Ghost — hosts and presents this HTML storefront.
Cloudflare Worker — secure API, authorization, entitlement checks and one-download enforcement.
Supabase/Postgres — users, publications, authors, entitlements, reading progress and download audit records.
Private Object Storage — original publication files. Never expose a permanent public PDF URL.
JSONBin — optional lightweight non-sensitive configuration only.
Production API
GET /api/publications GET /api/publications/:slug POST /api/library/:publicationId GET /api/library GET /api/read/:publicationId POST /api/download/:publicationId POST /api/admin/entitlements/:id/reset
Critical Rule
The browser demonstration currently uses localStorage. In production, ownership and download counts must be enforced on the server through Cloudflare and Supabase. Never trust a browser-side counter for download security.
Core Data Model
Users → Entitlements → Publications. A free acquisition creates an entitlement. Future paid checkout will create the same entitlement only after successful payment.