[GH-ISSUE #4868] Better Crud #10093

Closed
opened 2026-04-13 06:00:52 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @htmujahid on GitHub (Sep 24, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4868

Is this suited for github?

  • Yes, this is suited for github

Better auth already has db adapter, auth models, middlewares and rbac. It would be quite handy to add crud support by utilizing these components.

Describe the solution you'd like

There should be better crud plugin which takes db schema names and generates these endpoints out of the box

  • GET tasks
  • POST tasks
  • GET tasks\:id
  • PUT tasks\:id
  • DELETE tasks\:id

with client plugin as well

Describe alternatives you've considered

we create a separate better-crud package, and which extend better-auth functionality like

const betterCrud = betterCrud(auth);

const crud = betterCrud({ resources: [{name: 'tasks'}] })

Additional context

No response

Originally created by @htmujahid on GitHub (Sep 24, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4868 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Better auth already has db adapter, auth models, middlewares and rbac. It would be quite handy to add crud support by utilizing these components. ### Describe the solution you'd like There should be better crud plugin which takes db schema names and generates these endpoints out of the box - GET `tasks` - POST `tasks` - GET `tasks\:id` - PUT `tasks\:id` - DELETE `tasks\:id` with client plugin as well ### Describe alternatives you've considered we create a separate better-crud package, and which extend better-auth functionality like ``` const betterCrud = betterCrud(auth); const crud = betterCrud({ resources: [{name: 'tasks'}] }) ``` ### Additional context _No response_
GiteaMirror added the enhancementlocked labels 2026-04-13 06:00:52 -05:00
Author
Owner

@jd-solanki commented on GitHub (Sep 24, 2025):

Don't you think this is out of the scope for Auth library to provide CRUD?

<!-- gh-comment-id:3327179520 --> @jd-solanki commented on GitHub (Sep 24, 2025): Don't you think this is out of the scope for Auth library to provide CRUD?
Author
Owner

@htmujahid commented on GitHub (Sep 24, 2025):

Don't you think this is out of the scope for Auth library to provide CRUD?

Yes this may be the case but as better auth has incredible support to be adopted as better-fullstack platform, this is a suggestion to add crud support as well. Better-auth already have billing integration plugins which is also not in scope of auth library.

<!-- gh-comment-id:3327317877 --> @htmujahid commented on GitHub (Sep 24, 2025): > Don't you think this is out of the scope for Auth library to provide CRUD? Yes this may be the case but as better auth has incredible support to be adopted as better-fullstack platform, this is a suggestion to add crud support as well. Better-auth already have billing integration plugins which is also not in scope of auth library.
Author
Owner

@himself65 commented on GitHub (Sep 24, 2025):

It's not the scope of better-auth. Please open a feature request in https://github.com/Bekacru/better-call

<!-- gh-comment-id:3330822982 --> @himself65 commented on GitHub (Sep 24, 2025): It's not the scope of better-auth. Please open a feature request in https://github.com/Bekacru/better-call
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#10093