0004 COSS Starter
Problem:
One of our biggest hurdles is penetrating the market because you need to be building either an API or you have one and need something we offer. This is fine but what if you don’t know if you need one? Or if you are building an application for the first time and have never considered it.
Proposed solution:
Open Source starter that is highly opinionated and includes everything you need to build a new product.
- Web app with internal API
- Public API with open API spec protected by Unkey
- Docs
- Stripe integrations
Imagine typing npx create-coss-app
, and there you have it. All you need to do is sign up for 1 or 2 services, including Unkey. We want it to be DX-driven and super easy to extend and modify, but keep it so easy that an FE engineer can do it.
We can get a domain with a landing page that points to the npx command and some documentation for how it works.
Tech stack proposed
We can create a monorepo using turbo repo for the entire stack to make it as easy as possible to use.
Web application:
- Next.js
- tRPC
- Lucia auth
- Drizzle
- Planetscale
- Stripe
- Unkey
Public API
- Hono v4
- Unkey
Docs
- Mintlify using the open API spec built using Hono v4.
The proposed solution uses the smallest amount of 3rd party services (Planetscale, Mintlify, and Unkey), allowing maintenance and contributions a small hurdle.
Work to be done
Come up with a simplified project to show how everything works. An example could be a to-do list or something similar.
-
Web app has a UI interface that allows for creating, updating, and deleting todos, but you can only have a maximum of 5 on the free tier. The web app also allows for the creation of API keys to provide API access (The free tier gets limited uses or rate limiting or whatever we pick) and a way for the user to upgrade to the paid tier with unlimited.
-
API has keys from Unkey passed in and can be used to CRUD the data via the API.
-
Document everything as a real product to show how documentation works.
-
Basic landing page with the command and link to docs and a demo
-
The demo is just a deployed version of this.
Inspiration : https://create.t3.gg/