Skip to content

About

A curated marketplace for production-ready code — SaaS templates, scripts, UI kits and developer tools. Next.js 16 on Cloudflare Workers, Neon, Razorpay.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ScriptlyStore

ScriptlyStore

A curated marketplace for production-ready code. SaaS templates, automation scripts, landing pages, UI kits and developer tools — bought once, shipped today.

scriptly.store · Explore · Sell on Scriptly · Payment Links API

Next.js 16 Cloudflare Workers Neon Postgres Drizzle ORM Razorpay


What it is

ScriptlyStore is an edge-rendered marketplace where developers buy and sell code they would otherwise spend weeks writing. Every listing is a real, downloadable asset with screenshots, a stated license, and delivery gated behind a verified purchase.

Creators keep 95% of direct sales. Affiliates earn on referred sales. Prices are listed in US dollars and Razorpay charges the INR equivalent at checkout.

For buyers For creators For developers
Browse by category and subcategory, filter, sort, and buy in one step. A studio for listings, coupons, payouts, a sales ledger and a public storefront. Dynamic and AES-GCM encrypted payment links, a public products JSON feed, and an agent/MCP API.

Design

The interface follows Paper & Ember — a warm, editorial system built for scanning code products quickly. Paper-toned surfaces and dense ink type keep the focus on product screenshots and prices, and a single ember accent marks where money moves. Headlines use Newsreader, the interface uses Geist, and code uses Geist Mono.

The full specification lives in DESIGN.md.

Stack

Layer Choice
Framework Next.js 16 (App Router, Turbopack, React 19 Server Components)
Runtime Cloudflare Workers via @opennextjs/cloudflare
Database Neon serverless Postgres + Drizzle ORM
Auth Hexclave (@hexclave/next)
Payments Razorpay orders, signature verification and webhooks (USD catalog, INR charge)
UI Tailwind CSS v4, Radix/Base UI primitives, lucide icons

Architecture notes

  • SQL does the work. Filtering, sorting, pagination and counts run in Postgres, never in JavaScript over full tables.
  • Server-first rendering. Pages are Server Components. Client code is limited to interactive leaves such as the cart, checkout, and filters.
  • Money is integers. Catalog amounts are stored in US cents. The server recomputes prices from the database and converts them to INR paise at the live rate before creating a Razorpay order.
  • Private assets. Archives are never public. /api/download/[productId] streams a file only after the buyer's completed order has been verified.
  • Encrypted payment links. /pay accepts signed Base64 tokens or k1.<iv>.<tag>.<ciphertext> AES-256-GCM tokens. A key can be entered on the page or passed as &key=.
src/
├── app/                 Routes: explore, products, cart, pay, blog, docs, creator studio, admin
│   └── api/             download, pay/create, webhooks/razorpay, coupons, products.json, agents
├── components/          Feature components; ui/ holds primitives and the Skeleton
├── db/                  Drizzle schema and Neon client
├── lib/actions/         Server actions: products, orders, payment links, affiliates, payouts
└── lib/payments/        Payment link encoder (Base64 / AES-GCM)

Getting started

Prerequisites: Bun 1.1+, a Neon database, Razorpay keys and a Hexclave project.

git clone https://github.com/playlikeboy/scriptly.store.git
cd scriptly.store
bun install

Create .env (Next.js) and .dev.vars (Wrangler) with:

DATABASE_URL=postgresql://user:pass@ep-host.neon.tech/neondb?sslmode=require

NEXT_PUBLIC_HEXCLAVE_PROJECT_ID=
NEXT_PUBLIC_HEXCLAVE_PUBLISHABLE_CLIENT_KEY=
HEXCLAVE_SECRET_SERVER_KEY=

RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
RAZORPAY_WEBHOOK_SECRET=

ADMIN_EMAILS=admin@example.com
bun x drizzle-kit push   # apply schema to Neon
bun run dev              # http://localhost:3000

Deployment

Pushing to main triggers .github/workflows/deploy.yml. The workflow syncs runtime secrets to Cloudflare, then builds and deploys the Worker. To deploy manually:

bun run deploy     # opennextjs-cloudflare build && deploy
bun run preview    # local workerd preview

Documentation

Topic File
Architecture docs/ARCHITECTURE.md
Routes and access levels docs/ROUTES.md
REST API docs/API.md
Payment links docs/PAYMENT-LINKS.md
Security docs/SECURITY.md
Performance docs/PERFORMANCE.md
SEO docs/SEO.md
Design system DESIGN.md
Contributor and agent rules AGENTS.md

Support

Built by Shaswat Raj. If Scriptly saves you time, you can sponsor development.

License

© ScriptlyStore. All rights reserved. Each product sold on the marketplace is covered by its own license, listed on scriptly.store/licenses.

About

A curated marketplace for production-ready code — SaaS templates, scripts, UI kits and developer tools. Next.js 16 on Cloudflare Workers, Neon, Razorpay.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages