slonik-trpc
zod-express-middleware
slonik-trpc | zod-express-middleware | |
---|---|---|
2 | 1 | |
24 | 72 | |
- | - | |
7.5 | 2.6 | |
18 days ago | almost 3 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
slonik-trpc
-
Implementing Cursor Pagination with tRPC queries
For this tutorial I'm gonna use slonik-trpc for fetching data from a postgres database. It's this abstraction I created using slonik, to make it easy to build these kinds of tRPC APIs, with pure SQL queries.
-
How to solve overfetching with tRPC APIs when rendering tables (Pt. 1)
We can implement selective fetching in our tRPC APIs, using a select array that we pass as an argument. Doing so manually isn't too difficult, but you can also use a package like slonik-trpc that is designed to implement this kind of API automatically.
zod-express-middleware
-
express-ts
Just in case you're the developer, what's the benefit over something simpler like https://github.com/Aquila169/zod-express-middleware?
What are some alternatives?
pg-mem - An in memory postgres DB instance for your unit tests
express-jwt-authentication - Simple and lightweight Express middleware written in TypeScript to easily handle user authentication with JWT.
t3-twitter-clone - Twitter clone built with T3 Stack + NextAuth + Supabase + Prisma
resolvers - 📋 Validation resolvers: Yup, Zod, AJV, Joi, Superstruct, Vest, class-validator, io-ts, typanion, Ajv, TypeBox, Valibot and nope.
react-table-library - :bento: React Table Library
express-openapi-validator - 🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
cal.com - Scheduling infrastructure for absolutely everyone.
Fleet-of-the-Faithful-Knights - Monorepo for the Fleet of the Faithful Knights
nextjs-resources - A web application for sharing useful Next.js resources
nodebestpractices - :white_check_mark: The Node.js best practices list (February 2024)
t3-blog - Typescript Fullstack forum made with Next.js, tRPC, Prisma, Next Auth, Tailwind CSS, S3 uploads, Zod & more.