Affinity platform exampleTest mode

Your app.
Affinity inside.

A minimal partner implementation: authenticate your user, create a scoped component session on your backend, and render Affinity without exposing your API key.

What remains

Three tools. Clear jobs.

01

TanStack Start

Routes, server rendering, and server functions. No second frontend framework.

02

Elysia

One typed HTTP surface with validation and an OpenAPI document generated from the routes.

03

Better Auth

Email and password auth backed by a managed Cloudflare D1 database at the edge.