drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Export Drizzle Studio as a middleware for popular web frameworks
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
## Problem
Currently, Drizzle Studio is only available as a CLI tool. It would be even better if it could be integrated as a middleware into existing web projects.
## Example Usage
```typescript
import { Hono } from 'hono';
import { drizzleStudio } from 'drizzle-kit/studio';
const app = new Hono();
const studio = drizzleStudio({
db: drizzle(db, { schema }),
schema,
path: '/studio',
});
app.use('/studio/*', studio);
export default {
port: 3000,
fetch: app.fetch,
};
```
## Benefits
1. Better developer experience with framework-specific integrations
2. More flexible deployment options
3. Ability to customize the UI and features
4. Better security control through framework middleware
5. Easier to integrate with existing authentication systems
Contributor guide
Assessment
This issue has not been assessed yet.