OpenCut-app / OpenCut-app/OpenCut
[FEATURE] Add Bun server with API using TanStack and tRPC
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 89.8k
- Forks
- 8.9k
- PR merge metrics
- No merged PRs in 30d
Description
Problem
Currently, the project doesn’t have a dedicated state management solution or an independent API layer. This makes it harder to manage shared state and handle data fetching in a scalable, consistent way. By introducing a separate API server and integrating modern state management tools, we can keep concerns clearly separated, improve maintainability, and make it easier for contributors to build new features without tightly coupling frontend and backend logic
Solution
Adding a Bun-powered API server would bring significant benefits to the project. Bun’s modern JavaScript runtime delivers excellent speed and up-to-date tooling, which can help us achieve better performance out of the box. By using tRPC, we gain fully type-safe, end-to-end API calls without the overhead of maintaining OpenAPI or GraphQL schemas. Combined with TanStack tools like TanStack Query, this setup enables efficient data fetching and caching on the frontend. Overall, having a dedicated, modern API layer improves separation of concerns and makes the project more maintainable and scalable in the long run.
My idea is to spin up a Bun server to handle all API routes, with tRPC managing the API procedures to ensure type safety across the stack. On the frontend, we can connect to this API layer using TanStack Query (or other TanStack libraries already in use) for seamless data fetching. The implementation should be kept modular so that contributors can easily add or extend endpoints in the future without friction.
Alternative
...
Anything else?
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are identified in the issue. First review the existing frontend structure and current data-fetching approach, then determine the API server and endpoint scope. Done should include a modular Bun server, tRPC procedures, and TanStack-based frontend integration, but the proposal does not define specific endpoints or acceptance tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, typescript
- Domain
- api, backend, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100