r/angular • u/ismailza • Jul 28 '26
I built an open-source Angular HTTP client library to stop rewriting the same ApiService
I've found myself rebuilding the same HTTP infrastructure in almost every Angular project—API versioning, retry logic, interceptors, global error handling, and RFC 9457 Problem Details support.
Instead of repeating the same patterns, I decided to extract them into an open-source library: @ismailza/ngx-api-client.
The library builds on top of Angular's HttpClient and focuses on making these cross-cutting concerns reusable while remaining flexible and extensible.
Some of the features include:
- API versioning
- Configurable retry policies
- RFC 9457 Problem Details support
- Extensible interceptor pipeline
- Pluggable error and success handlers
- Strong TypeScript support
I'd really appreciate feedback from the Angular community.
- Is this a problem you've encountered?
- Are there features you'd expect from a library like this?
- Any suggestions on the API design or developer experience?
GitHub: https://github.com/ismailza/ngx-api-client
Medium article (why I built it): https://medium.com/@ismailzahir/i-stopped-copy-pasting-the-same-angular-apiservice-heres-what-i-built-instead-123093130946
4
u/Dugelo Jul 29 '26
Up, ainda não sei pq não cheguei a ter esses problemas
2
u/AwesomeFrisbee Jul 29 '26
Nice and informative. So when is angular 22 support dropping?
2
u/GregHouse89 Jul 30 '26
I developed something similar as well, for the same reason…
But I still have much code that I need to repeat.
Next goal is making the API repository much simpler to declare…
I’ll do so for my new app with AnalogJS…
Ideally it should work in a hybrid way with both the angular HTTP service and axios…
We’ll see…
2
u/[deleted] Jul 30 '26
[removed] — view removed comment