Production-tested · 4 shipped products

Stop rebuilding
AWS Marketplace plumbing

Self-hosted Node.js gateway that handles customer onboarding, authentication, entitlement gating, and usage metering for your SaaS listing. Source included. Runs in your VPC.

4 production SaaS products · Same code. Battle-tested.

Your app reads headers.
Zero Marketplace logic needed.

The gateway sits between AWS Marketplace and your application, handling auth, entitlements, and metering. Your upstream only sees identity headers.

Origin
AWS Marketplace
Customer clicks Subscribe
Token issued
HTTPS
TLS
NGINX
TLS termination
Edge security
Port 3000
Gateway
Auth + Metering
JWT auth · Entitlements
Quota enforcement · Metering
Injects X-User-* headers
Proxy + Headers
Upstream
Your SaaS App
Reads: X-User-Email
X-User-AcctId
X-User-Tier

Every Marketplace listing
rebuilds the same things

01

ResolveCustomer + Fulfillment

Validating marketplace tokens, creating tenants, handling the redirect flow, dealing with race conditions between SQS events and registration.

02

Authentication & User Management

JWT auth, multi-tenant user accounts, invitation flows, password resets, admin panels. Every SaaS needs it, nobody wants to build it again.

03

Entitlement & Subscription Gating

Checking active subscriptions, enforcing tier quotas, caching entitlements, handling contract vs PAYG models. Get this wrong and you give away your product.

04

Usage Metering

BatchMeterUsage with hourly semantics, zero-usage heartbeats, aggregation, deduplication, audit trails. Get this wrong and you lose revenue.

Everything between AWS Marketplace
and your application

RC

ResolveCustomer Fulfillment

Handles the AWS Marketplace POST redirect, validates tokens, creates tenant records, manages registration sessions. Handles the SQS race condition out of the box.

AU

JWT Auth + Admin Panel

httpOnly cookie auth, multi-tenant user management, email invitations with expiry, password resets, role-based access control (admin/user).

EG

Entitlement Gating

Contract tier enforcement with configurable thresholds (monthly/lifetime). Entitlement checks cached as signed JWTs. One boolean toggle switches to PAYG mode.

MT

Usage Metering

Usage ingestion API, hourly BatchMeterUsage with auto-aggregation, zero-usage heartbeats for compliance, dimension auto-discovery, full audit trail with AWS MeteringRecordIds.

GP

Gateway Proxy

Transparent reverse proxy to your upstream. Injects X-User-Email, X-User-AcctId, X-User-Tier, X-User-CurrentUsage. Configurable public path whitelist for webhooks.

CP

Built-in Control Panel

SvelteKit 2 + Material UI frontend. Admin dashboard, user login/signup, profile management, password reset, contact form. Production-ready out of the box.

Contract or PAYG.
One toggle.

A single environment variable switches the entire billing and enforcement strategy. No code changes.

Contract / Subscription

PAYG=false
Entitlement check AWS GetEntitlements (cached)
Quota enforcement Tier thresholds
Periods Monthly or lifetime
Middleware auth → entitlement → balance → proxy
// tiers.json
{ "name": "free", "threshold": 100, "period": "monthly" }
{ "name": "pro", "threshold": 5000, "period": "monthly" }

Pay-As-You-Go

PAYG=true
Entitlement check None
Quota enforcement None
Billing Per-unit via AWS
Middleware auth → subscription → proxy
// .env
PAYG=true
// That's it. No tier config needed.

Built for production
from day one

httpOnly + Secure + SameSite cookies

Auth tokens are never accessible to client-side JavaScript. SameSite=Strict by default.

Single-use registration sessions

Prevents replay attacks on the AWS Marketplace fulfillment flow. Sessions are consumed on first use.

bcrypt with configurable cost

All passwords hashed with bcrypt. Cost factor is configurable for your security/performance tradeoff.

Startup validation

Server refuses to start with missing or invalid configuration. No silent failures in production.

NGINX edge hardening

Blocks WebDAV methods, dotfiles, database files, and config file extensions at the reverse proxy layer.

Complete audit trails

Login events, subscription lifecycle events, and metering submissions all recorded with timestamps.

No magic. Just solid engineering.

Backend
Node.js + Express 5
Database
SQLite (WAL mode)
Frontend
SvelteKit 2 + Svelte 5
UI
Material UI (SMUI)
Infrastructure
NGINX + systemd
AWS SDKs
Metering, Entitlements, Catalog, SES, SQS (v3)
Email
AWS SES + Pug templates
Logging
Winston + daily rotation

Full source. Ready to deploy.

  • Full source code (private repo access)
  • Production-ready backend + frontend
  • NGINX configuration (dev + prod)
  • systemd service file
  • Database schema + creation scripts
  • Jest + Vitest + Playwright test suites
  • Environment configuration templates
  • Documentation
project structure
$ tree -L 2
.
+-- backend/
|   +-- app.js
|   +-- auth/
|   +-- routes/
|   +-- lib/
|   +-- db/
|   +-- tests/
+-- frontend/
|   +-- src/routes/
|   +-- src/lib/
|   +-- e2e/
+-- nginx/
+-- systemd/

Ship your listing in days, not weeks

ISVs listing on AWS Marketplace

Don't spend weeks rebuilding fulfillment, auth, and metering. Start with production-tested code and focus on your product.

Teams shipping multiple products

Reusable foundation for every Marketplace listing. Deploy the gateway, point it at your upstream, and you're live.

Solo founders & small teams

Production-grade Marketplace integration without the overhead. One Node.js server, one SQLite file, no database server to manage.

One-time purchase. No subscription.

Save weeks of engineering time. The kit pays for itself before your first customer subscribes.

LAUNCH OFFER -- 50% OFF FOR FIRST 10 BUYERS
$499
$999
one-time · 1 year of repo access + updates
Limited to first 10 buyers. Then $999.
  • Full source code (private repo access)
  • Backend + frontend, production-ready
  • NGINX + systemd configs
  • Database schema + creation scripts
  • Jest + Vitest + Playwright test suites
  • Environment configuration templates
  • Documentation
  • 1 year of updates
  • White-glove installation available (extra)
Get the Kit →

Stop rebuilding.
Start shipping.

The same auth + metering code behind 4 production AWS Marketplace SaaS products. Now yours.

Get the Kit →