← Projects

eden-tanstack-query

Type-safe TanStack Query integration for Elysia Eden. Like @trpc/react-query, but for Elysia.

TypeScriptTanStack QueryElysia
No media yet

Type-safe TanStack Query integration for Elysia Eden. Works like @trpc/react-query, but for the Elysia ecosystem.

Motivation

Elysia is a fast, type-safe HTTP framework for Bun. Its client library (Eden) provides end-to-end type safety, but lacked a first-class integration with TanStack Query — the de facto standard for server state management in React apps.

This library bridges that gap: you get the full TanStack Query API with automatic type inference from your Elysia server routes.

Features

  • Full TanStack Query API: useQuery, useMutation, useSuspenseQuery, useInfiniteQuery, and more
  • Automatic type inference from Elysia Eden treaty
  • React hooks and vanilla client
  • 97%+ test coverage
  • Published on npm as eden-tanstack-react-query