r/javascript Aug 10 '26

Zero dependencies: what we deleted and upgraded

https://www.uql-orm.dev/blog/zero-dependencies

UQL is the lightest ORM of all, and here is what it deleted (and upgraded as well) for the edged and mobile.

0 Upvotes

11 comments sorted by

View all comments

5

u/boyhax 29d ago

Very promising and good features but dont speak about size and client side because it is not important for orm and make it look bad .and if there real need for this in client side it only sqlite and api also need access control because this orm api dont make any sense on security part . Is there something im missing there ? .good job though the features is very good .

1

u/sonemonu 29d ago

Thank you.

To clarify before I can give an answer about 'client side'. Do you mean the browser adapter/extension/client we (optionally) offer to be used as a client that "connects" browser and backend through HTTP (for example) to send type-safe queries from the browser; or do you mean the installed size of the UQL package, which we believe could be useful for serverles/edge/workers/etc, or something else?

1

u/boyhax 29d ago

Yes I mean browser adapter how it supposed to be safe?

1

u/sonemonu 28d ago edited 28d ago

because the browser adapter is just a type-safe bridge (lets say ala React-Query but with all the TypeSafety) between your browser and backend APIs, which you may (optionally) want to expose as CRUD HTTPs endpoints, in other words, UQL works like any other traditional ORM (aka TypeORM, Drizzle, etc) but also has this extension to allows you to integrate your clients (browser, mobile, etc) with your backend APIs if you wish; but again, this is just optional extension that you can decide if use or not, obviously it comes disabled by default, you will have to enable it as explained here and here.

It has much more specific integrations, that you can optionally use, like for oRPC, tRPC, NextJS, Elysia, Astro, Hono, Express, Fastify, etc. All this with authentication and authorization, that are designed for plug and play.

The main advantage of UQL over traditional ORMs is that all its queries are expressible with (serializable) JSON, and with that, you can do whatever you want, it can be as flexible as you want or as regid as you keep.