HSWLP:Next is the new core system of the HSWLP platform.
It provides a modern, Cloudflare-native foundation on which various frontend “shells” (applications) can be built and deployed — without the need for a separate backend.
The framework is designed for scalability, security, and speed, making it ready for launching SaaS products directly on Cloudflare’s infrastructure.
-
Authentication & Onboarding
Sign-up, login, email verification, and Cloudflare Turnstile captcha -
Cloudflare-Native Storage
D1 database with migrations, R2 object storage, and KV for session handling -
Payments & Billing
Stripe integration for subscriptions and purchases
Email notifications via Resend or Brevo -
Cloud-Optimized Deployment
Seamless deployment to Cloudflare Workers with support for Pages and Edge Functions
-
Install dependencies
pnpm install
-
Configure environment variables Copy
.env.example
to.env
and fill in your values. (For local dev, also copy.dev.vars.example
→.dev.vars
) -
Run migrations and start the dev server
pnpm db:migrate:dev pnpm dev
Deploy in one step:
pnpm run deploy
This will:
- Build the Worker
- Upload static assets (R2)
- Bind secrets, database, KV, and buckets via Wrangler
⚠️ Secrets must be configured manually withwrangler secret put
or in the Cloudflare dashboard.
src/constants.ts
→ configuration constantssrc/react-email/
→ email templatessrc/app/globals.css
→ global stylessrc/app/layout.tsx
→ metadata & layoutwrangler.json
→ Worker configuration
Preview email templates locally:
pnpm email:dev
HSWLP:Next will serve as the foundation for upcoming HSWLP apps:
- HSWLP:Cloud – Static website deployments
- HSWLP:NAS – Local Docker stack manager
- HSWLP:Dev – Developer hub
- HSWLP:Store – Template marketplace
- HSWLP:Academy – Learning modules
One system, many possibilities. Built cleanly, built on Cloudflare.