npm install tachles-pay

Payment Infrastructure
for Developers

An unopinionated, runtime-agnostic payment toolkit built with Effect-TS. Complete visibility into every transaction — live, before webhooks arrive.

npm install tachles-pay effect
Live Demo

See It In Action

Watch payments flow through in real-time. This is what your sales team dashboard could look like.

Features

Built for Sales Teams & Developers

Everything you need to monitor, track, and analyze payment data in real-time

Real-Time Data

See payment status changes as they happen, before webhooks arrive from your payment provider.

Live Analytics

Revenue graphs, success rates, and KPIs updating in real-time. Built for sales managers.

Effect-TS Powered

Type-safe, composable, and runtime-agnostic. Works on Node.js, Cloudflare Workers, Deno, and more.

Pluggable Storage

Swap database and storage providers without changing code. Memory, KV, Redis, or custom.

Webhook Correlation

Link provider responses with webhook events. Complete transaction lifecycle in one place.

Security Built-In

HMAC webhook signatures, timing-safe comparisons, and secure crypto utilities included.

Developer Experience

Type-Safe &
Runtime-Agnostic

Built with Effect-TS for robust error handling and dependency injection. Deploy anywhere — Node.js, Cloudflare Workers, Deno, or Bun.

Effect-TS Powered

Type-safe errors, composable services, testable code

Zero Lock-in

Swap providers without changing application code

Batteries Included

Crypto utilities, webhook verification, and more

Cloudflare Worker
import { Effect } from "effect";
import { 
  makeFetchRuntime, 
  Database,
  createCloudflareKVStorage 
} from "tachles-pay/adapters/cloudflare";

const runtime = makeFetchRuntime({
  makeStorage: (env) => 
    createCloudflareKVStorage(env.TACHLES_KV)
});

export default {
  fetch: runtime((request, env) =>
    Effect.gen(function* () {
      const db = yield* Database;
      const payments = yield* db.listPayups();
      return Response.json(payments);
    })
  )
};

Ready to Build?

Check out the live demo to see what's possible, then dive into the code examples to start building your own payment dashboard.