Skip to main content
Okhare Paul — Portfolio©2026
000
Back

Case study · 02 / 12

Obsiryn

An online store, built from the checkout down

Fig. 02 — ObsirynBlack, gold and a crystal that is drawn live. Nothing on the page is a picture file.
About the project

My own product: an online store that sells PDF guides teaching beginners to build MetaTrader 5 Expert Advisors with an AI agent. I designed it, wrote it and run it.

I wanted a product that teaches what I do, not one that sells promises. The guides take someone with no coding or trading background to a working, backtested bot, using prompts with an AI agent. But the real build is the store. A digital product needs a checkout that cannot be tricked, an order book that never loses a sale, and a download that only the buyer can open. I wrote all three as serverless functions on Cloudflare, with Stripe for payments and Neon Postgres for orders. The brand is faceless and premium, black and gold, and every visual on the site is drawn in code. It is software education, so the site makes no profit claims.

Main features

What it does

  1. 01Sells the guide in three plans, with a waitlist for the two still to come
  2. 02Takes card payments through Stripe's hosted checkout
  3. 03Records every order in Postgres, one row per sale
  4. 04Unlocks a private download link the moment payment is confirmed
  5. 05Lets a buyer recover a lost link with their email and order details
  6. 06Handles refunds and disputes automatically, so a refunded order stops downloading
  7. 07Draws 22 live canvas scenes, two of them 3D, with no image or video files
Approach

How it was solved

  1. 01Designed the guides so an AI agent recognises them on upload and onboards the buyer by plan
  2. 02Kept prices on the server: the browser sends a plan name and the server looks up what it costs
  3. 03Fulfilled orders only from Stripe's signed webhook, never from the thank-you page, and verified the signature before reading a byte
  4. 04Made the webhook safe to repeat: the same event twice writes one order, and a paid order never moves backwards
  5. 05Guarded each download with a random 256-bit token that expires and counts its uses in a single atomic database update
  6. 06Gave the live site its own database role with the least access it needs
  7. 07Drew the visuals in code instead of shipping images, which took the site from about 40 MB to about 1.7 MB
  8. 08Capped canvas resolution and paused every scene that is off screen, so phones stay smooth
  9. 09Wrote everything as education, with no profit claims
Results

Live at obsiryn.store and taking real orders: about 1.7 MB for the whole site, down from roughly 40 MB with pictures, on an infrastructure bill that starts at zero.

Technologies

Stack

Languages
JavaScript (ES modules)HTML5CSS3SQL
Front-end
Vite 6GSAPScrollTriggerSplitTextBarba.jsLenisSwiperCanvas 2D
Back-end
Cloudflare Pages FunctionsStripe CheckoutStripe webhooksNeon serverless PostgresCloudflare KV
Security
HMAC-SHA256 signature checksContent Security PolicyHSTSLeast-privilege database roleExpiring download tokens
Tools
Wranglerpdf-libGitGitHub

The case study is the how. The site is the proof.

Next project · 03 / 12AXIG