[GH-ISSUE #5034] [Feature]: Initializing Wizard for Newbie Users #3546

Open
opened 2026-10-31 20:33:13 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @DanyPrinceOP on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5034

I propose adding an initial setup wizard that guides users through the essential configuration steps and automatically generates a functional baseline setup.
The wizard could include:
Language selection
Basic configuration presets
Domain selection
Preference sliders or choices such as:

  • security preference
  • speed optimization
  • load balancing
  • region selection

After the user selects these options, the wizard would generate a default, working configuration that they can later customize in detail.
This reduces the cognitive load for beginners while still preserving full flexibility for advanced users.

Describe the solution you'd like

In this wizard, users could choose the language, basic options, the domains they want to add, and whether they prefer security, speed, load‑balancing, region selection, and so on.
After selecting these options, the wizard would generate the initial configuration, and users could then customize everything based on those defaults.
Right now, someone who wants to set up the panel for personal use or for friends gets overwhelmed by the large number of options, which makes it difficult to configure the panel correctly.
Providing these initial default values would help beginners a lot by giving them a solid starting point that they can adjust later.

Alternatives you've considered

  • Manually configuring everything from scratch — too complex for beginners.
  • Using external panels like Hiddify — not ideal for users who prefer or rely on 3xui.
  • Sharing pre‑made configs — not scalable and often mismatched with user environments.

None of these alternatives solve the core issue: new users need a guided, structured starting point.

Concrete use case

A typical scenario:
A user wants to deploy the panel for their family or small group of friends. They only need a few inbounds and a simple domain setup, but they are confronted with dozens of configuration options.
A wizard would allow them to complete the setup in under 5 minutes, instead of spending hours searching for tutorials or risking misconfiguration.

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

Frontend (UI / panel pages), Install / upgrade script, Backend (API endpoints, login, settings)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @DanyPrinceOP on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5034 ### Is your feature request related to a problem? I propose adding an initial setup wizard that guides users through the essential configuration steps and automatically generates a functional baseline setup. The wizard could include: Language selection Basic configuration presets Domain selection Preference sliders or choices such as: - security preference - speed optimization - load balancing - region selection After the user selects these options, the wizard would generate a default, working configuration that they can later customize in detail. This reduces the cognitive load for beginners while still preserving full flexibility for advanced users. ### Describe the solution you'd like In this wizard, users could choose the language, basic options, the domains they want to add, and whether they prefer security, speed, load‑balancing, region selection, and so on. After selecting these options, the wizard would generate the initial configuration, and users could then customize everything based on those defaults. Right now, someone who wants to set up the panel for personal use or for friends gets overwhelmed by the large number of options, which makes it difficult to configure the panel correctly. Providing these initial default values would help beginners a lot by giving them a solid starting point that they can adjust later. ### Alternatives you've considered - Manually configuring everything from scratch — too complex for beginners. - Using external panels like Hiddify — not ideal for users who prefer or rely on 3xui. - Sharing pre‑made configs — not scalable and often mismatched with user environments. None of these alternatives solve the core issue: new users need a guided, structured starting point. ### Concrete use case A typical scenario: A user wants to deploy the panel for their family or small group of friends. They only need a few inbounds and a simple domain setup, but they are confronted with dozens of configuration options. A wizard would allow them to complete the setup in under 5 minutes, instead of spending hours searching for tutorials or risking misconfiguration. ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? Frontend (UI / panel pages), Install / upgrade script, Backend (API endpoints, login, settings) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2026):

Thanks for the detailed write-up — the use case is clear and well-motivated.

What exists today

A few pieces of the puzzle already exist:

  • Install-time randomization — on a fresh install, install.sh (lines 899–901) already generates a random username, password, and web base path; the user is prompted about port and SSL at that point too. So the CLI installation already has a minimal guided step.
  • Language picker on the login page — frontend/src/pages/login/LoginPage.tsx exposes the full 13-language selector (powered by LanguageManager) even before the user logs in. Language therefore doesn't need to be part of a post-login wizard.
  • Settings page — all panel-level options (TLS, subscription URL, Telegram bot, etc.) live in the Settings page after login.

What does not exist is any in-panel first-run wizard: there is no setup-complete flag in the database, no wizard route in the React frontend, and no API endpoint to drive one.

What this feature would require

Implementing a full wizard is a sizeable, multi-layer effort:

Layer Work needed
Database A boolean/timestamp "setup complete" flag in the Settings table so the panel knows whether to show the wizard
Backend API One or more new endpoints (e.g. POST /panel/api/setup/complete) to persist wizard choices and mark setup done
Xray config generation Logic to translate high-level user choices (security vs. speed, protocol family, domain) into a concrete inbound JSON — today this lives in xray/ and is protocol-specific
Frontend A new React route/page (e.g. /setup) with a multi-step Steps component (Ant Design has one), guarded so it only appears when the setup flag is unset; the dashboard redirects there on first login

The tricky part is the config-generation step: mapping "prefer security" to a sensible VLESS+REALITY or Trojan+TLS inbound, versus "prefer speed" to a VMess/XHTTP inbound, requires opinionated but reasonable defaults, and those defaults will age as Xray evolves.

Suggestions for anyone picking this up

  1. Keep the wizard minimal at first: admin password change (the install script already randomizes this, but a forced change prompt on first login is common UX) and one "quick-start" inbound template (e.g. VLESS+REALITY with a generated UUID/keys).
  2. Implement the setup-complete flag as a regular Setting key (see web/service/setting.go) — no schema change needed, just a new key.
  3. The frontend wizard can be a simple <Steps> modal shown on the first visit to the dashboard when that flag is absent — minimal new routing needed.
  4. Advanced presets (load-balancing, region selection) are best deferred to a later iteration to keep the initial PR scope manageable.

If you'd like to implement this, the above gives a concrete starting point. PRs are very welcome!

<!-- gh-comment-id:4640509408 --> @github-actions[bot] commented on GitHub (Jun 6, 2026): Thanks for the detailed write-up — the use case is clear and well-motivated. ## What exists today A few pieces of the puzzle already exist: - **Install-time randomization** — on a fresh install, `install.sh` (lines 899–901) already generates a random username, password, and web base path; the user is prompted about port and SSL at that point too. So the CLI installation already has a minimal guided step. - **Language picker on the login page** — `frontend/src/pages/login/LoginPage.tsx` exposes the full 13-language selector (powered by `LanguageManager`) even before the user logs in. Language therefore doesn't need to be part of a post-login wizard. - **Settings page** — all panel-level options (TLS, subscription URL, Telegram bot, etc.) live in the Settings page after login. What does **not** exist is any in-panel first-run wizard: there is no setup-complete flag in the database, no wizard route in the React frontend, and no API endpoint to drive one. ## What this feature would require Implementing a full wizard is a sizeable, multi-layer effort: | Layer | Work needed | |---|---| | **Database** | A boolean/timestamp "setup complete" flag in the `Settings` table so the panel knows whether to show the wizard | | **Backend API** | One or more new endpoints (e.g. `POST /panel/api/setup/complete`) to persist wizard choices and mark setup done | | **Xray config generation** | Logic to translate high-level user choices (security vs. speed, protocol family, domain) into a concrete inbound JSON — today this lives in `xray/` and is protocol-specific | | **Frontend** | A new React route/page (e.g. `/setup`) with a multi-step `Steps` component (Ant Design has one), guarded so it only appears when the setup flag is unset; the dashboard redirects there on first login | The tricky part is the config-generation step: mapping "prefer security" to a sensible VLESS+REALITY or Trojan+TLS inbound, versus "prefer speed" to a VMess/XHTTP inbound, requires opinionated but reasonable defaults, and those defaults will age as Xray evolves. ## Suggestions for anyone picking this up 1. Keep the wizard **minimal at first**: admin password change (the install script already randomizes this, but a forced change prompt on first login is common UX) and one "quick-start" inbound template (e.g. VLESS+REALITY with a generated UUID/keys). 2. Implement the setup-complete flag as a regular `Setting` key (see `web/service/setting.go`) — no schema change needed, just a new key. 3. The frontend wizard can be a simple `<Steps>` modal shown on the first visit to the dashboard when that flag is absent — minimal new routing needed. 4. Advanced presets (load-balancing, region selection) are best deferred to a later iteration to keep the initial PR scope manageable. If you'd like to implement this, the above gives a concrete starting point. PRs are very welcome\!
Author
Owner

@ckun52880 commented on GitHub (Jun 6, 2026):

If you wish to add new features, it is recommended to change the initialization wizard to optional. For some users, the initialization wizard is redundant. Language selection can be set to mandatory before user login.

<!-- gh-comment-id:4640711211 --> @ckun52880 commented on GitHub (Jun 6, 2026): If you wish to add new features, it is recommended to change the initialization wizard to optional. For some users, the initialization wizard is redundant. Language selection can be set to mandatory before user login.
Author
Owner

@rqzbeh commented on GitHub (Jun 8, 2026):

https://github.com/iampedii/WhiteDNS-Wizard

<!-- gh-comment-id:4654470986 --> @rqzbeh commented on GitHub (Jun 8, 2026): https://github.com/iampedii/WhiteDNS-Wizard
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3546
No description provided.