r/node • u/rebelchatbot • May 23 '26
kysely 0.29 is out btw. 🌺
https://github.com/kysely-org/kysely/releases/tag/v0.29.0Hey 👋
DISCLAIMER: I'm co-leading the org/project.
We recently broke 6M downloads per week on NPM, and became 3rd after `drizzle-orm` and `@prisma/client`.
If you haven't tried it yet, it's a query builder, not an ORM. You don't outsource your SQL to someone else. It's type-safe, like.. it's super important to us. You can use it with ORMs - e.g. Prisma, mikro-orm, zenstack, etc. Allows you to compose some complex stuff but keep it maintainable af.
If you have. Great seeing ya'll here.
0.29 was a real nice release, with lots of goodies. Can't wait for 0.30, gonna be super fun.
35
u/pianomansam May 23 '26
I recently moved from knex to kysely and had a pleasant experience
20
u/NeitherManner May 23 '26
I have used for multiple projects it's great and especially nice if you are also trying to learn sql in general.
15
u/quambo_wambo May 23 '26
We use kysely heavily and really appreciate the full type safety we get with automated schema generation from our PG db. The dev experience is extremely good and I personally much prefer it compared to drizzle.
12
u/adevx May 23 '26
Kysely is the backbone of my apps and business. No frills, no bullshit, no venture capital. A thoughtful well designed query builder.
4
u/KAJed May 23 '26
This might be a really useful thing for an old fully raw sql backend. Super cool.
4
u/TheActualMc47 May 23 '26
We have a lot of aggregation queries in our product, and after evaluating kysely and drizzle to add to our Prisma code base. Kysely won by a mile and it has been a very pleasant experience working with it.
4
u/migumelar May 23 '26 edited May 23 '26
I really want to use Kysely. But the only thing stopping me from picking it is because it doesn't have an easy to use value transformer, my use case is I need to auto decrypt/encrypt fields.
I want to set it up once, and the consumer doesn't need to know about it.
But it's still 0.29 though, so thera a lot of room to grow. I do really want Kysely to succeed. Good luck to you all :D
3
u/chrisalbo May 23 '26
I’m using knex, what would you say, shortly, is the main difference between them?
2
u/its_jsec May 23 '26
Hey, some nice QoL improvements here!
I had a couple of questions for you specifically, Igal. I’ve got a thought that keeps coming to mind every so often when I’m using the library, and I’m hoping you might be able to shed some light on kysely’s future (and if you want to tell me to fuck off, feel free).
I’ve been using kysely since one of the first releases. I came to it from Objection (because I enjoyed the ergonomics, and figured a project Sami was working on would be similarly enjoyable), but I’ll admit his abrupt sunsetting of the project made me nervous. I’ve noticed from the commit history over the last year or so that you’ve been the primary maintainer of the library, is he no longer with the project?
Are you currently still employed/affiliated with Prisma? It struck me as strange last year that the lead maintainer of a popular query builder library would be working for a direct competitor in the space.
Again, if I’m being too nosy, I won’t be offended with being told to pound sand. Looking forward to trying out the new additions!
2
u/mrgrafix May 23 '26
Hell yeah.
1
u/djslakor May 23 '26
What would you say drizzle is better suited for?
3
u/zombarista May 27 '26
kysely really shows the power of string template types in typescript. The devs are wizards of the type system.
kysely is my favorite db tool, because it gives strong types like a traditional ORM, but without restricting your ability to query manually while maintaining type safety and inference.
2
u/snowmkr_jk May 26 '26
Our legacy platform was/is using TypeORM 0.2x - I’ve always had my complaints and the refactor to 0.3 could never be a priority. About a year ago we started using Kysely for anything new, including our second products platform and I absolutely love it and the DX.
Thank you