Deploy Meterdoor Starter – EUR + USDC (x402) on one endpoint

Express API: humans pay EUR via Stripe, AI agents pay USDC via x402.

Deploy Meterdoor Starter – EUR + USDC (x402) on one endpoint

Just deployed

Deploy and Host Meterdoor Starter – EUR + USDC (x402) on one endpoint on Railway

Meterdoor Starter is a small Express API with one paid endpoint, GET /api/report. Humans open it in a browser and pay in EUR via Stripe Checkout (test mode). AI agents call it with an x402 client and pay in USDC on Base Sepolia. Without payment it answers 402 Payment Required with both offers.

About Hosting Meterdoor Starter – EUR + USDC (x402) on one endpoint

The template deploys one Node service from github.com/WestLabsAI/meterdoor (starter/express). railway.json sets the start command and the health check /health. You only need one payment method to start: set WALLET (your Base Sepolia receiving address) for USDC via x402, and optionally STRIPE_KEY (sk_test_... or rk_test_...) for EUR via Stripe. ACCESS_SECRET is generated for you. Use a single instance: payment state is kept in memory. The money goes straight to your Stripe account or wallet; Meterdoor does not hold or forward funds.

Common Use Cases

  • Charge AI agents per request for an API or data endpoint in USDC via x402
  • Sell the same endpoint to humans in EUR through Stripe Checkout
  • Prototype pay-per-call pricing on testnet before going live

Dependencies for Meterdoor Starter – EUR + USDC (x402) on one endpoint Hosting

  • Node.js 20.6+ with Express and the meterdoor package (0.1.0)
  • A Base Sepolia wallet address and/or a Stripe test key

Implementation Details

Replace the handler of /api/report in server.js with your own data; it runs only after a verified payment. Add one paywall({...}) block per extra route. Testnet and Stripe test mode only. Not part of any official x402, Coinbase or Stripe product. License Apache-2.0.

Why Deploy Meterdoor Starter – EUR + USDC (x402) on one endpoint on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Meterdoor Starter – EUR + USDC (x402) on one endpoint on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Openfront Gym
Opensource Mindbody alternative based on Next.js and Keystone.js

Openship
0
View Template
open-excalidraw
Self-hostable collaborative drawing built on Excalidraw

Prateek Mohanty
5
View Template
Next.js + Prisma + PostgreSQL Starter
Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

blueorange
0