Content
@
0 reply
0 recast
0 reaction
Kevin
@typedarray.eth
Introducing API functions With today's 0.5.0 release, you can build custom API endpoints directly in your Ponder app. Use cases - Replace GraphQL with tRPC or REST - Build SQL queries with Drizzle - Merge onchain & offchain data
10 replies
22 recasts
314 reactions
Kevin
@typedarray.eth
Why build API functions? The automatic GraphQL API is too rigid. With more flexibility at the API layer, users can simplify their data models and indexing logic. Example: Don't create a "volume" or "chart" table, just write a simple aggregation query.
1 reply
0 recast
3 reactions
Kevin
@typedarray.eth
The GraphQL client developer experience is cumbersome compared to TypeScript-native tools like tRPC. We have work planned that builds on API functions to improve the client/server experience further. More soon.
1 reply
0 recast
4 reactions
Kevin
@typedarray.eth
API functions are built on Hono, and the new Select API is powered by Drizzle. Docs: ponder.sh/docs/query/api-functions Migration guide: ponder.sh/docs/migration-guide#050 Telegram chat: t.me/ponder_sh We're hiring backend, infrastructure, and web framework engineers in NYC - get in touch!
1 reply
0 recast
3 reactions
daws.eth
@daws
Good tech choices all around. Hono just makes sense in 2024 over express ✅
0 reply
0 recast
1 reaction