HAYLAYN — THE BACKEND THAT MOVES MONEY

The backend that moves money.
Ship this week.

Double-entry ledger, idempotency runtime, and settlement rail — with 416+ E2E tests included. Cloud-hosted from $99/mo, or own the source code for $299.

Cloud from $99/mo · Or own the code for $299 · 30-day guarantee
ledger.service.ts
// Balanced ledger entry — 4 lines
const entry = await this.ledger.postEntry({
  debit:  { accountId: 'user_alice', amount: 5000 },
  credit: { accountId: 'revenue', amount: 5000 },
  idempotencyKey: req.headers['x-idempotency-key'],
});

// Idempotency — same key = same result
// @Idempotent() handles it automatically
@Post('/payments')
@Idempotent()
async createPayment(dto: CreatePaymentDto) {
  // Fires once. Even if called 10 times.
  return this.payments.process(dto);
}
416+ E2E tests · HAYLAYN Cloud live · 3-minute cold start · 0 recurring fees · 30-day money-back guarantee · Your code forever

Built for fintech teams  ·  NestJS + TypeScript + PostgreSQL  ·  Join the teams building the next generation of payments infrastructure

How it works

From zero to production backend. One afternoon.

01

Sign up

Create your account at dashboard.haylayn.com. Get your API key in 60 seconds.

02

Make one POST request

Call the API. Money moves. Ledger records it. Idempotency handles retries automatically.

03

Ship with confidence

416+ E2E tests validate every module. Your team inherits production-grade infrastructure.

See it live

Cold start to live dashboard. Three minutes.

Watch the full stack come alive — auth, deposit, ledger verification, USDC settlement. Every command is real.


The problem

Every SaaS that processes real money hits the same wall.

error

A customer gets charged twice.

You have no idempotency layer. You refund manually and hope your support queue doesn't explode. It does.

error

A webhook fires mid-deploy. Your server restarts.

Did the transaction record? Can you replay it? You don't know — because you built payments on top of a CRUD app.

error

Your accountant asks for a balance report.

You spend three days exporting CSVs, reconciling numbers that don't match, and questioning your life choices.

These aren't edge cases. They're Tuesday.
Meridian Core exists so you never build this infrastructure from scratch again.

Who built this

Built by a founder, for founders.

James Wilson, Founder of HAYLAYN
James Wilson
FOUNDER & CTO · SANTIAGO, CHILE 🇨🇱

"I built HAYLAYN because every fintech startup in Latin America was solving the same infrastructure problems from scratch. Double-entry ledger, idempotency, settlement — these should be solved once, correctly, with tests. That's Meridian."

→ james@haylayn.com

What's included

Five modules. Every financial primitive you need.

Each module solves a real problem that teams typically spend months building — and getting wrong.

01 — LEDGER

Double-entry ledger

Every peso has a source and a destination. Your books close correctly — always. Immutable, reversible, multi-asset, Decimal(36,18) precision.

02 — IDEMPOTENCY

Idempotency runtime

The same webhook hits twice. You record it once. Full state machine — CREATED, PROCESSING, COMPLETED, FAILED, TIMEOUT. Exact response replay.

03 — OUTBOX

Reliable event delivery

Events survive server restarts. FOR UPDATE SKIP LOCKED, exponential backoff with jitter, dead-letter support, HMAC-SHA256 signed payloads.

04 — GOVERNANCE

API key governance

SHA-256 hash storage, timing-safe comparison, rotation, revocation, audit trail, admin and operator roles. No raw keys ever stored.

05 — OBSERVABILITY

Ops dashboard

React UI with live health, outbox status, idempotency records, and SLA minute aggregates. No Datadog required for v1.

06 — TESTING

Contract-first test suite

300 E2E contract tests included and passing across 30+ contract files. Validate every module before touching production. Docker Compose included.

NestJS 10 TypeScript Prisma 5 PostgreSQL 16 React + Vite Docker Compose Swagger / OpenAPI

Why HAYLAYN

The primitives most backends get wrong.

Every fintech team eventually builds these. Most get them wrong the first time. Meridian ships them production-grade from day one.

Idempotency Runtime

Complete state machine (CREATED → PROCESSING → COMPLETED → FAILED → TIMEOUT). Every API call is safe to retry. No double charges, ever.

📬

Outbox Pattern

FOR UPDATE SKIP LOCKED, exponential backoff with jitter, dead-letter queue, HMAC-SHA256 webhook signatures. Your events are delivered exactly once.

💸

Circle USDC Settlement

Built-in settlement rail with Circle integration. Move USDC programmatically — wallets, transfers, and webhook verification included.

416+ E2E Tests

Every module ships with comprehensive end-to-end tests. Run them yourself. Production confidence from day one.

Build vs Buy

Six months of your team's time, or one week with Meridian.

Build yourself With HAYLAYN ✓
Time to production 6–12 months 1 week
Team required 2–3 senior devs 1 dev
Double-entry ledger Build from scratch Included
Idempotency runtime Build from scratch Included
E2E test suite Write yourself 416+ included
USDC settlement Integrate yourself Circle ready
First production bug Painful Already fixed
Cost $200k+ in salaries From $299

What you can build

Built for every financial use case.

From wallets to BaaS — Meridian's primitives power the full spectrum of fintech products.

💰

Digital Wallets

Multi-currency wallets with real-time balance tracking. Fund, transfer, and withdraw with full audit trail.

Payments

Process payments with idempotent retries and automatic reconciliation. Never lose a transaction in transit.

🏦

Lending

Credit lines, disbursements, and repayment tracking on a double-entry ledger. Every cent accounted for.

🔗

Crypto / Stablecoins

USDC settlement via Circle integration. Bridge fiat and crypto with a single API call.

📊

SaaS Billing

Usage-based billing, credits, and invoicing. Track consumption per tenant with atomic counters.

🏗️

Banking-as-a-Service

White-label financial infrastructure for neobanks and fintechs. Multi-tenant from day one.


By the numbers

Production-grade infrastructure. Not a boilerplate.

416+
E2E Tests Passing
0 failed · 41 suites
12,050+
Lines of Code
TypeScript · NestJS
34+
Prisma Models
PostgreSQL 16
< 3 min
Cold Start
Auth → API key → first call
$0
Recurring Fees
Source code option
30 days
Money-back Guarantee
No questions asked

HAYLAYN Cloud

Hosted infrastructure. Zero DevOps.

Full Meridian backend, managed by us. Your API keys, your dashboard, your data. Cancel anytime.

Starter
$99
/month
  • 1,000 transactions/mo
  • 5 API keys
  • Dashboard access
  • Email support
  • Priority support
  • SLA
Start Free →
Scale
$799
/month
  • 100,000 transactions/mo
  • 100 API keys
  • Dashboard access
  • Email support
  • Priority support
  • 99.9% SLA
Start Free →
Enterprise
$2,499
/month
  • Unlimited transactions
  • Unlimited API keys
  • Dashboard access
  • Email support
  • Priority support
  • 99.99% SLA
Contact Us

All plans include the full Meridian backend. Your code, your data. Cancel anytime.
Prefer to self-host? Own the source code →


Own the Source Code

One-time payment. No recurring fees. Your code, forever.

No subscriptions. No vendor lock-in. Every module is standalone — buy only what you need. Private GitHub repo delivered instantly.

EXTENSION
Credits & Usage
$349
one-time payment
requires Core
  • Credit wallet per tenant
  • Usage meters — cost per unit
  • Atomic credit deduction
  • Batch event ingestion
  • Low-balance alerts via outbox
  • React: CreditsView + UsageView
Get Credits — $349
PREMIUM
Settlement Rail
$549
one-time payment
requires Core
  • Circle USDC wallets per tenant
  • Stablecoin payouts via Circle
  • Smart routing: fiat vs USDC
  • HMAC webhook verification
  • 42 E2E tests
  • React: SettlementView + RoutingView
Get Settlement — $549
NEW
Recon Suite
$799
one-time payment
requires Core
  • CSV import + column mapping
  • 3-phase matching engine
  • Exact + fuzzy matching
  • Discrepancy management
  • Configurable matching rules
  • 35 E2E tests
  • React: ReconView + DiscrepancyView
Get Recon — $799

Core + Settlement Rail Bundle

Everything you need to build a production payment backend with USDC settlement. Core included. Ship this week.

$799
save $49 vs buying separately
Get the Bundle — $799

✔ 30-day money-back guarantee on all products. Email [email protected] if it doesn't fit your stack.


Built for modern payment rails

The stablecoin market hit $312B. Your competitors are building.

Before anyone can process a single USDC payment, they need a double-entry ledger, idempotent webhook processing, reliable event delivery, and API key governance.

That's exactly what Meridian Core provides — and Settlement Rail extends it with Circle USDC integration, smart routing, and compliance-ready audit trails.


Demo

Cold start to live dashboard. Three minutes.

Watch the full stack come alive — auth, deposit, ledger verification. Every command is real.

bash — haylayn-backend
Meridian Ops DEMO_MODE
234
Delivered
2
Pending
1
Failed
0
Dead Letter
99.97%
Uptime
42ms
P95 Latency
IDTypeAmountStatusWhen
EndpointP50P95P99Success
POST /banking/deposit18ms42ms89ms100%
POST /fx/execute24ms56ms112ms100%
POST /auth/login31ms67ms134ms100%
POST /transfers/create22ms48ms95ms99.98%
curl -X POST https://api.haylayn.com/payment-intents \
  -H "X-Api-Key: hk_live_••••••••" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "amount": 50000,
    "currency": "USD"
  }'
{
  "id": "pi_abc123",
  "amount": 50000,
  "currency": "USD",
  "status": "CREATED",
  "idempotencyKey": "idem_xyz789",
  "ledgerEntries": 2,
  "balanced": true
}

Start in Minutes

One API call. Real money movement.

Your API key from the dashboard is all you need. No SDKs required — standard HTTP.

Request

curl
# Create a payment intent
curl -X POST https://api.haylayn.com/payment-intents \
  -H "X-Api-Key: hk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: pay-$(uuidgen)" \
  -d '{
    "amount": 50000,
    "currency": "USD",
    "description": "Invoice #1234"
  }'

Response

200 OK
{
  "id":             "pi_abc123",
  "amount":         50000,
  "currency":       "USD",
  "status":         "CREATED",
  "idempotencyKey": "idem_xyz789",
  "ledgerEntries":  2,
  "balanced":       true
}

Full API reference at api.haylayn.com/docs


416+ E2E Tests
12,050+ Lines of Code
34+ Prisma Models
143+ TypeScript Files
4 Cloud Plans

Built for Production

Security you can verify.

No black boxes. Every claim is backed by code you can read.

🔐

Encrypted at Rest

All data encrypted with AES-256. API keys stored as SHA-256 hashes — no plaintext ever written to disk.

🧪

416+ E2E Tests

Comprehensive test suite included with every purchase. Run them yourself. Production confidence from day one.

📖

Open Audit

Swagger documentation at api.haylayn.com/docs. Every endpoint documented. Full transparency.


Questions

Frequently asked.

What is HAYLAYN Meridian?
Meridian is a production-grade financial backend built on NestJS, Prisma, and PostgreSQL. It includes a double-entry ledger, idempotency runtime, outbox pattern, and 416+ end-to-end tests. You can buy the source code for a one-time payment or use HAYLAYN Cloud for hosted infrastructure.
What's the difference between Source Code and Cloud?
Source Code ($299) gives you the complete codebase to self-host — your code, forever, no recurring fees. Cloud ($99–$2,499/mo) is fully hosted on our infrastructure with multi-tenant isolation, usage metering, and a customer dashboard at dashboard.haylayn.com. Many customers start with Cloud and download the source code later.
Do I need to know NestJS?
Meridian is built on NestJS and TypeScript, the most popular backend stack in Latin America. If your team writes JavaScript or TypeScript, you'll be productive immediately. The codebase follows standard NestJS patterns with modules, services, guards, and Prisma ORM.
What payment processors are supported?
Meridian includes a Circle USDC settlement rail for stablecoin payments. For traditional processors (Stripe, MercadoPago), the architecture supports any integration via the outbox pattern — events are guaranteed to be delivered exactly once with HMAC-SHA256 verification.
How is HAYLAYN different from open-source ledgers?
Most open-source ledgers give you a basic double-entry system. Meridian goes further with a production-grade idempotency runtime (state machine with 5 states), an outbox pattern with dead-letter queue, automated reconciliation with fuzzy matching, and 416+ E2E tests. These are the features that matter when you have your first production incident.
Can I see the test suite?
Yes. Every source code purchase includes the full E2E test suite. You can run all 416+ tests locally against your PostgreSQL instance. The tests cover the complete customer journey: registration, payment processing, usage metering, plan limits, and key revocation.
Is there a free trial?
HAYLAYN Cloud offers free registration at dashboard.haylayn.com. You can explore the dashboard and API documentation before subscribing. For source code, contact james@haylayn.com for a walkthrough.
What about security?
All data is encrypted at rest with AES-256. API keys are stored as SHA-256 hashes — plaintext is never written to disk. Webhook signatures use HMAC-SHA256. The outbox pattern ensures exactly-once delivery. Full API documentation is available at api.haylayn.com/docs.

Ready to build?

Start with HAYLAYN Cloud in 60 seconds.

Create your account, get an API key, make your first call. Or buy the source code and self-host — your choice, your code.

Create Free Account → Get Source Code — $299
Cloud from $99/mo · Source code from $299 one-time · 30-day money-back guarantee