Integrations
Pithos is framework-agnostic. One package, zero adapters, zero plugins. You import what you need, and it works, regardless of your stack.
Because every technology serves a different purpose, we wrote several Pithos integrations with the most common stacks to show how it can fit in without friction. These pages are here to help you understand how to use it in harmony with your favorite tech.
No need to convince you that Pithos is framework-agnostic... these integrations speak for themselves.
Pithos fills the gaps, it does not replace what already exists. When a framework already handles a feature natively, we use it. For example:
- Angular: we use
HttpClientfor network calls, then wrap the result inResultAsyncfor validation - SvelteKit: we use native
fail()anderror()for error handling, Sphalma is not needed - Nuxt: we rely on
createErrorand native server routes
The goal is never to reinvent the wheel, but to integrate in the most natural way possible.
Frontend (SPA)
Client-only applications that communicate with a backend via fetch.
Fullstack (SSR)
Frameworks with server-side rendering. The Kanon schema is shared between client and server, a single source of truth.
Backend
Pure API servers. Pithos handles input validation and normalization.
The common pattern
Regardless of the framework, the pipeline stays the same:
- Validate inputs with Kanon via
ensureorensurePromise - Normalize data with Arkhe (
capitalize,titleCase,groupBy,orderBy) - Handle errors with Zygos (
Result,ResultAsync) or the framework's native mechanisms - Structure business errors with Sphalma when the framework has no built-in equivalent
Each integration is a fully functional app with tests. The frontend and backend demos are interchangeable: you can combine any frontend (React, Angular, Preact) with any backend (Express, Hono, Bun), they share the same API contract. Explore the code in packages/main/integrations/.