arthur-fontaine / agrume

Server-side functions in your frontend for any tool. Easy, customizable and type-safe. Made for frontend developers.
https://agrume.js.org
MIT License
9 stars 0 forks source link

New feature: allow extending server #101

Open arthur-fontaine opened 1 week ago

arthur-fontaine commented 1 week ago

Allow to extend the server would allow the user to register his own stuff like custom routes, but also task scheduling, queues, easiest auth handling, etc.

I think it is important to keep the main package (agrume) simple, with only one function exported. So extending the server would be with an extendServer function on a agrume/server package (not @agrume/server, it should be a sub-export of agrume).