r/angular • u/Upbeat_Rope1614 • Sep 30 '26
Has anyone here tried the Effect ecosystem with Angular?
I was recently looking for something to replace our Django backend. I love NestJS but I can't convince my team leader that that is the most efficient api layer for our Angular frontend.
We currently depend on Django for our REST endpoints and we have 2 separate teams working on the backend and frontend. Backend receives daily updates and every now and then the contracts between server and client break without the frontend team knowing about it. We rely on tests to find these kind of issues and that's another pain being extremely slow and everything...
So we were recently looking at Hono and Effect. We care much about end-to-end type safety and sharing one contract between backend and frontend.
I've tried Hono before and it's amazing. Especially the generated RPC client and integration with zod schemas. Effect seems a bit over-complicated but that's something we are willing to learn if it helps us improve the type-safety and separation of concerns. Besides, how much more complicated can it be compared to Angular? 😅
I was wandering if anyone has any feedback to give me on that matter... Appreciated!
2
u/mihajm Sep 30 '26
Love hono, been even using it instead of the usual express in ssr angular setups :)
That said Effect is a whole different beast - an amazing one tbc, but wow does it take time/effort/onboarding...to me it's a question of need for any such thing, your named usecase is e2e typesafety so I'll talk to that in alts:
For error handling, typing & reactivity I'd start simple, maybe grow into neverthrow (which is still a whole "thing") before ever introducing effect...especially since rxjs/signals & DI cover 99% of what I'd need anyway..but if you have a usecase that supports it, or youre hacking a personal project that you don't plan on onboarding jr devs onto...go hard my man it's a fun ride :)
Final personal note - last time I did it was for an Actor POC, but I ended up quickly switching to Elixir + Horde + LiveView for documentation & completeness reasons...if that's what you're doing those are worth an eye
5
u/Merry-Lane Sep 30 '26
There is a way better solution to your problem.
There is absolutely no need to bring effect.js to the frontend. We already have typescript, effect.js brings exactly 0 features but damn gotta write a ton of boilerplate…
1
u/Ok-Armadillo-5634 Sep 30 '26
Go using gin
1
u/reydemia Sep 30 '26
A more approachable alternative is to just use oRPC (+ tanstack query optionally for an even smoother and more powerful typesafe integration across frontend and backend).
https://orpc.dev
I’ll add that oRPC has integrations with Effect too, but it’s not required at all for what you’re looking to achieve.
1
u/Straight-Number-1911 Sep 30 '26
No but I'm interested in this.