db
by
TanStack

Description: The reactive client store for your API.

View TanStack/db on GitHub ↗

Summary Information

Updated 4 minutes ago
Added to GitGenius on May 25th, 2026
Created on March 11th, 2025
Open Issues & Pull Requests: 265 (+0)
Number of forks: 226
Total Stargazers: 3,774 (+0)
Total Subscribers: 14 (+0)

Issue Activity (beta)

Open issues: 133
New in 7 days: 2
Closed in 7 days: 3
Avg open age: 195 days
Stale 30+ days: 105
Stale 90+ days: 56

Recent activity

Opened in 7 days: 2
Closed in 7 days: 3
Comments in 7 days: 1
Events in 7 days: 3

Top labels

  • query-collection (11)
  • bug (7)
  • good first issue (7)
  • question (6)
  • enhancement (5)
  • documentation (4)
  • RFC (3)
  • help wanted (3)

Detailed Description

TanStack DB is an open-source, reactive client store designed to optimize data management and interaction in modern web applications. Developed by the TanStack team, it addresses common challenges faced by developers when building fast, scalable apps that rely heavily on API data. The core purpose of TanStack DB is to provide a seamless, efficient way to load, store, and interact with API data on the client side, minimizing backend complexity and maximizing frontend performance.

One of the main features of TanStack DB is its ability to avoid endpoint sprawl and network waterfalls. Instead of making multiple API calls for different parts of the application, TanStack DB loads data into normalized collections. This approach ensures that data is organized and accessible, reducing redundant network requests and simplifying state management. By normalizing data, developers can easily query and update collections, leading to more maintainable and scalable codebases.

Performance optimization is a key focus of TanStack DB. The library supports sub-millisecond live queries and real-time reactivity, meaning that any changes to the underlying data are instantly reflected in the UI. This real-time capability is crucial for applications that require immediate feedback, such as dashboards, collaborative tools, or any interface where data changes frequently. The reactive nature of TanStack DB ensures that users experience smooth, instantaneous interactions without waiting for network responses.

Another standout feature is instant optimistic writes. When a user interacts with the application, such as submitting a form or updating a record, TanStack DB allows these changes to be reflected immediately in the UI, even before the backend confirms the update. This technique, known as optimistic updates, enhances the user experience by making interactions feel instantaneous. If the backend later rejects the change, TanStack DB can reconcile the state accordingly, maintaining data integrity.

TanStack DB is currently in beta, with ongoing development and community involvement encouraged. The repository welcomes issues, pull requests, and discussions, fostering an open environment for contributors and users. Integration with the broader TanStack ecosystem is emphasized, allowing developers to leverage related tools such as TanStack Query for async state and caching, TanStack Form for type-safe form state, and TanStack Store for reactive data management. This ecosystem approach ensures that TanStack DB can fit into a wide variety of application architectures and workflows.

The project is supported by several partners, including CodeRabbit, Cloudflare, ElectricSQL, and Prisma, indicating a commitment to collaboration and innovation. TanStack DB aims to push the boundaries of client-side data management, inviting new partners to join its mission.

In summary, TanStack DB is a powerful solution for developers seeking to build fast, reactive, and scalable web applications. Its focus on normalized data collections, real-time reactivity, and optimistic updates streamlines client-side data handling, reduces backend complexity, and delivers a superior user experience. As part of the TanStack ecosystem, it integrates well with other tools, making it a versatile choice for modern JavaScript and TypeScript projects.

db
by
TanStackTanStack/db

Repository Details

Fetching additional details & charts...