jhonsfran1165 / unprice

Pricing engine for modern ai apps
https://unprice.dev
GNU Affero General Public License v3.0
27 stars 4 forks source link

Feat/refactor the whole thing #41

Closed jhonsfran1165 closed 8 months ago

jhonsfran1165 commented 1 year ago

This is a massive PR that introduces some new features and refactor the whole repo into a mono repo.

I decided to get rid of supabase and started to use clerk for authentication and neon postgres for database. Supabase is great but there is a lack of DX when it comes to handling db changes, specially with RLS also the auth system is primitive and not mature enough to support all the things I need for this project. I ended up doing a lot of thing manually to have a multitenant auth system which in my opinion is not good. Also introduced Drizzle as ORM and it feels great to develop. I have some hacky approaches in order to support RLS but I hope I can get rid of that when Drizzle supports RLS natively.

The whole api now runs on edge which is great :D

The other big change was the monorepo configuration.

The api now is a new package and started using TRPC.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builderai ❌ Failed (Inspect) Feb 29, 2024 3:18pm
jhonsfran1165 commented 1 year ago

I addressed these issues on this PR

https://github.com/jhonsfran1165/builderai/issues/19 https://github.com/jhonsfran1165/builderai/issues/15 https://github.com/jhonsfran1165/builderai/issues/20 https://github.com/jhonsfran1165/builderai/issues/34 https://github.com/jhonsfran1165/builderai/issues/40