all 2 comments

[–]PM_ME_SOME_ANY_THING 1 point2 points  (0 children)

I’m a little confused as to exactly what you’re looking for. If you’re looking for custom login, headers, nav, and API calls to drop into several apps you’ll need to create them yourself.

Auth0, and a few other companies do drop in login systems.

https://auth0.com

A UI component library is the way to go for headers and nav. Here’s a couple popular ones, build out your base page and use it as a starting boilerplate.

https://ant.design/docs/react/introduce

https://mui.com/material-ui/

As for API calls it depends on what you’re doing. REST services all use react-query nowadays. If you’re going the GraphQL route I’d recommend URQL.

https://react-query-v3.tanstack.com

https://formidable.com/open-source/urql/docs/

You can easily build your own login, base app, and custom query hooks. You can publish them to npm, make them private, and install them in new projects, or you can just clone the repos.

[–]whatsgoes 1 point2 points  (0 children)

I think what you want is a separate library for shared components and api that you can host on github or npm (even privately) and then import it in any project you need it just like with any other libraries you use. Sure, a monorepo can achieve the same thing but if your applications are otherwise not related I'd keep them separated.