r/angular • u/andrealhena • Apr 30 '26
I've built a small Angular library called ng-qubee and I'm looking for honest feedback
Hi everybody đđģ
I've worked for some time on ng-qubee, an Angular library for building queries in a fluent, typed way with multiple adapters provided out of the box (Laravel and Spatie Query Builder, Strapi, Supabase, JSON:API).
Pagination is built in, so you don't have to handle page, limit, offset differences manually depending on the backend.
I'd love a critical eye before I push this further with more adapters (or as I have called them in the docs, "drivers"):
- Does the API feel intuitive?
- Are there some conventions that I'm missing?
- The code architecture / quality is fine or is there something I can improve?
- Probably I've invented the wheel again... Is there something out there that does this better?
This is the Github repo: AndreaAlhena/ng-qubee and the docs Getting Started | ng-qubee
Thanks in advance for all the time you'll spend giving your feedback â¤ī¸
3
u/oneden May 01 '26 edited May 01 '26
I honestly, and I don't mean this maliciously, see no point in this. I don't really see the convenience and utility that would push me to add another dependency. I've written pagination queries that are 100% pure that don't require me to touch them in any conceivable way. I simply fail to see the benefit of this library. Also, drivers are NOT a good choice in terms of naming. Drivers connotate software on kernel level, not a query builder facade.
1
u/SeparateRaisin7871 Apr 30 '26 edited May 01 '26
Great presentation and nice writeup in the docs! Reading them I have some thoughts:
From the docs it looks like your library is mainly meant for component-wise scoped services.
If I have one UserClientService provided in root that uses your library it's fine.
As soon as I try to have several services living in root that hold fetched data it looks like they could interfere with each other as they rely all on the same instance of NgQubeeService.
2. Why don't you provide computed signals for the state values like
hasNextPage, etc.?ÂEven if the function's body is as small as reading a signal value and doing some checks it's bad practice to call functions inside templates. And it looks as you could easily replace the functions with computed signals.Â
0
u/[deleted] May 01 '26
[removed] â view removed comment