DioxusLabs / DioxusLabs/dioxus

Database / Session integrations

Open
#1,998 3 comments 4 reactions 0 assignees View on GitHub
enhancement fullstack
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Specific Demand

Currently dioxus fullstack requires [a lot of boilerplate](https://github.com/DioxusLabs/dioxus/tree/9ae3d14e676c90c73a99f5cfb41ff85c7cbf4bc2/packages/fullstack/examples/axum-auth) to set up a database. Dioxus should provide integration for different databases that make it easier to get started with storage

## Implement Suggestion

There are a few different directions we could go here:
- Choose a specific database like [surrealdb](https://surrealdb.com/) and create a very high quality rust and dioxus integration provides a type safe interface with a simpler template/API to get started with the database
- Support multiple adapters for different databases like the old approach to fullstack with a trait
- Create higher quality templates for different databases without a new library

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the fullstack/examples/axum-auth example to measure the database setup boilerplate. Compare the three proposed directions—SurrealDB integration, multiple adapters, or improved templates—and seek agreement on one scope before coding. Done means the chosen approach provides a documented, simpler database setup for Dioxus fullstack.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.