Content pfp
Content
@
0 reply
0 recast
0 reaction

Kevin pfp
Kevin
@typedarray.eth
Introducing Ponder 0.9 We built a SQL-based alternative to GraphQL, with live query support and a TanStack Query integration. Apps & websites that use Ponder for indexing are about to feel much faster →
21 replies
69 recasts
329 reactions

Kevin pfp
Kevin
@typedarray.eth
The GraphQL API works, but tends to fall short as new requirements appear. 1) Flexibility → no complex filters, aggregations, or joins 2) Dev ex → requires additional tooling & codegen 3) Realtime data → gql subscriptions suck, must poll
1 reply
0 recast
15 reactions

Kevin pfp
Kevin
@typedarray.eth
This release introduces a new option – @­ponder/client, a SQL library for querying indexed data over HTTP. Write SQL queries directly from your frontend (or any JS code) using Drizzle with full-stack type inference.
2 replies
1 recast
14 reactions

Kevin pfp
Kevin
@typedarray.eth
The client library also supports live queries, powered by HTTP server-sent events, which update whenever a new block gets indexed. For latency-sensitive apps, live queries are a *huge* improvement over polling the GraphQL API.
1 reply
0 recast
6 reactions

Kevin pfp
Kevin
@typedarray.eth
We also shipped @­ponder/react, a library that makes it easy to use the SQL client in any React app. It extends TanStack Query – a familiar experience for Wagmi users. The usePonderQuery hook uses a live query to re-render whenever the query result has changed.
1 reply
0 recast
2 reactions

Kevin pfp
Kevin
@typedarray.eth
0.9 includes other new features, including simplified API functions (just export a Hono App object) and multiple custom event filters for one contract. Migration guide: ponder.sh/docs/migration-guide GitHub: github.com/ponder-sh/ponder Telegram (come say hi): t.me/ponder_sh
0 reply
0 recast
1 reaction