A modern, responsive web management console for RustFS distributed file system, built with Next.js 16 (App Router) + React 19 + TypeScript + Tailwind CSS v4 + shadcn/ui. https://rustfs.com
  • TypeScript 90.5%
  • JavaScript 8.5%
  • CSS 1%
Find a file
2026-10-27 14:50:19 +08:00
.agents/skills/shadcn chore: update shadcn Base UI components (#161) 2026-07-11 11:58:54 +08:00
.github fix: install aws cli for r2 artifact uploads (#254) 2026-10-04 09:41:49 +08:00
app feat(site-replication): show replication health on the console page (#278) 2026-10-27 14:50:19 +08:00
assets refactor: align all Console pages with the RustFS design system (#269) 2026-10-17 22:44:11 +08:00
components feat: allow editing the current site in site replication (#275) 2026-10-26 15:20:41 +08:00
config feat: redesign Console pages around their workflows (#270) 2026-10-18 06:13:13 +08:00
contexts fix: refresh console version config after login (#255) 2026-10-04 09:53:45 +08:00
docs feat: redesign Console pages around their workflows (#270) 2026-10-18 06:13:13 +08:00
hooks feat(site-replication): show replication health on the console page (#278) 2026-10-27 14:50:19 +08:00
i18n/locales feat(site-replication): show replication health on the console page (#278) 2026-10-27 14:50:19 +08:00
lib feat(site-replication): show replication health on the console page (#278) 2026-10-27 14:50:19 +08:00
public docs: update license copyright to RustFS, Inc. (#246) 2026-09-24 00:55:45 +08:00
scripts refactor: harden task management and TypeScript safety (#162) 2026-07-11 13:26:01 +08:00
skills docs(agents): consolidate AGENTS.md and align skills with latest prompt guidelines (#196) 2026-08-05 08:50:33 +08:00
styles feat: redesign Console pages around their workflows (#270) 2026-10-18 06:13:13 +08:00
tests feat(site-replication): show replication health on the console page (#278) 2026-10-27 14:50:19 +08:00
themes/default refactor: align all Console pages with the RustFS design system (#269) 2026-10-17 22:44:11 +08:00
types feat(site-replication): show replication health on the console page (#278) 2026-10-27 14:50:19 +08:00
.editorconfig Migrate shadcn/ui from Radix to Base UI (#115) 2026-05-10 09:32:13 +08:00
.env.example feat: add NEXT_PUBLIC_API_PREFIX for reverse-proxy support (#109) 2026-05-08 09:56:18 +08:00
.gitignore Update .gitignore 2026-07-29 02:12:23 +08:00
.nvmrc fix: security value problem 2026-03-09 15:47:26 +08:00
.prettierignore chore: update shadcn Base UI components (#161) 2026-07-11 11:58:54 +08:00
.prettierrc fix : 403 check Unauthorized 2026-02-02 15:43:58 +08:00
AGENTS.md docs: add first-principles guidance (#207) 2026-08-22 07:50:44 +08:00
components.json Migrate shadcn/ui from Radix to Base UI (#115) 2026-05-10 09:32:13 +08:00
eslint.config.js fix: preserve pool status before rebalance starts (#166) 2026-07-14 17:51:25 +08:00
LICENSE docs: update license copyright to RustFS, Inc. (#246) 2026-09-24 00:55:45 +08:00
next.config.ts feat: Implement the SSE Management Interface (#91) 2026-03-28 08:19:34 +08:00
package.json fix(deps): upgrade Next.js to 16.4.1 security baseline (#276) 2026-10-25 23:21:20 +08:00
pnpm-lock.yaml fix(deps): upgrade Next.js to 16.4.1 security baseline (#276) 2026-10-25 23:21:20 +08:00
pnpm-workspace.yaml Update next to 16.3 and specify PNPM version in devEngines.packageManager (#198) 2026-08-06 11:32:21 +08:00
postcss.config.mjs Update dependencies, migrate to ESM, and update PNPM to 10.28.2 (#86) 2026-03-23 07:50:47 +08:00
README.md chore: update PNPM to v12 (#227) 2026-09-10 21:19:03 +08:00
skills-lock.json chore: update shadcn Base UI components (#161) 2026-07-11 11:58:54 +08:00
tsconfig.json chore(deps): bump project dependencies (#131) 2026-06-13 08:46:11 +08:00

RustFS Console

A modern, responsive web management console for RustFS distributed file system, built with Next.js 16 (App Router) + React 19 + TypeScript + Tailwind CSS v4 + shadcn/ui.

✨ Features

Core Features

  • File Browser - Visual file/object management interface with upload, download, delete operations
  • Access Keys Management - Create and manage service account access keys
  • Policy Management - Configure and manage IAM policies for fine-grained access control
  • User Management - Create, edit, enable/disable, and delete user accounts
  • User Groups Management - Create and manage user groups to simplify permission assignment

Advanced Features

  • Import/Export - Import and export system configurations
  • Performance Monitoring - Real-time system status, server information, and performance metrics
  • Tiered Storage - Configure and manage tiered storage policies
  • Event Destinations - Configure event destinations for event notifications
  • SSE Settings - Server-side encryption configuration
  • License Management - View and manage system license information

🛠️ Tech Stack

Core Framework

UI & Styling

Data Management

Other Tools

📁 Project Structure

console/
├── app/                    # Next.js App Router pages and layouts
│   ├── (auth)/            # Authentication pages
│   └── (dashboard)/       # Dashboard pages
├── components/             # React components
│   ├── ui/                # shadcn/ui base components
│   └── ...                # Business components
├── hooks/                 # Custom React Hooks
├── contexts/              # React Context providers
├── lib/                   # Utility functions and library code
│   └── feedback/          # Global feedback APIs (toast, dialog)
├── types/                 # TypeScript type definitions
├── i18n/                  # Internationalization resource files
│   └── locales/          # Multi-language files (13 languages)
├── config/                # Configuration files
├── public/                # Static assets
└── tests/                 # Test files (mirror source structure)

🚀 Quick Start

Prerequisites

  • Node.js >= 22
  • pnpm >= 12.0.0 (recommended to use the version specified in the project)
  • Docker - For running RustFS service

Start RustFS Service

The RustFS service must be started before development. Run it using Docker:

# Create data directory
mkdir rustfs-data

# Run RustFS service
docker run -p 9000:9000 -p 9001:9001 -v ./rustfs-data:/data rustfs/rustfs:1.0.0-alpha.82

The service will start on the following ports:

  • 9000 - API port
  • 9001 - Console port

Install Dependencies

The pnpm version is pinned in package.json under devEngines.packageManager.

If you use Corepack, upgrade to Corepack >= 0.34.5 before running pnpm 12:

npm install --global corepack@0.34.5
corepack enable pnpm

Older Corepack versions look for bin/pnpm.cjs, which pnpm 12 no longer provides. If a previous attempt failed with Cannot find module .../bin/pnpm.cjs, run corepack cache clean after upgrading to clear the stale package-manager cache, then retry.

Alternatively, install pnpm directly through npm. If Corepack manages your pnpm command, first run corepack disable pnpm.

npm install --global pnpm@12.3.4

From the project directory, verify the pinned version and install dependencies:

pnpm --version # Expected: 12.3.4
pnpm install

Development Mode

Note: Before starting the development server, ensure the RustFS service is running (see "Start RustFS Service" section above).

Start the development server (with hot reload):

pnpm dev

Visit http://localhost:3000 to view the application.

Build for Production

pnpm build

Run Production Build

pnpm start

💻 Development Guide

Code Quality Checks

Before committing code, ensure all checks pass:

1. Lockfile Sync Check

pnpm install --frozen-lockfile

Ensure pnpm-lock.yaml is in sync with package.json. After modifying package.json, you must run pnpm install and commit the updated lockfile.

2. TypeScript Type Check

pnpm type-check
# or
pnpm build

3. ESLint Check

pnpm lint

4. Code Formatting Check

pnpm format:check

5. Auto-fix Formatting Issues

pnpm lint:fix
# or
pnpm format

Naming Conventions

  • Component files: Use kebab-case (e.g., bucket-selector.tsx)
  • Component names: Use PascalCase (e.g., <BucketSelector />)
  • Directory structure: Group by feature/domain, use plural forms (e.g., buckets/, users/)
  • File naming: Don't repeat directory name in filename (e.g., buckets/info.tsx instead of buckets/bucket-info.tsx)

UI Component Usage

  • Declarative UI: Use base components from @/components/ui/*
  • Imperative feedback: Use @/lib/feedback/message and @/lib/feedback/dialog for global toast and dialog prompts

Testing

When tests are configured:

  • Test files should be placed in tests/ directory, mirroring source structure
  • Use *.spec.ts or *.test.ts naming
  • Run tests: pnpm test:run

🌍 Internationalization

The project supports multiple languages. Currently supported languages:

  • 中文(简体)(Chinese Simplified)
  • English (US)
  • Deutsch (DE)
  • Español (ES)
  • Français (FR)
  • Bahasa Indonesia (ID)
  • Italiano (IT)
  • 日本語 (JP)
  • 한국어 (KR)
  • Português (BR)
  • Русский (RU)
  • Türkçe (TR)
  • العربية (AR-MA)

Language files are located in the i18n/locales/ directory.

📦 Build & Deployment

Environment Variables

Configure necessary environment variables according to your deployment environment (e.g., API endpoints, authentication configuration).

Build Configuration

The project uses Next.js default build configuration. Custom configuration can be done via next.config.ts.

Deployment

The project can be deployed to any platform that supports Next.js:

  • Vercel (Recommended) - Zero-config deployment
  • Docker - Using official Next.js Docker image
  • Self-hosted - Run pnpm build && pnpm start

🤝 Contributing

Commit Guidelines

  • Use conventional commit messages (Conventional Commits)
  • Ensure all code quality checks pass before committing
  • Each PR should include a clear description and related issue links

Code Review

  • Keep PR scope focused; coordinate large refactors in advance
  • Commit messages and PR titles must be in English
  • UI-related work should include screenshots

📄 License

Licensed under the Apache License 2.0. See LICENSE for details.

🔗 Resources

📝 Development Notes

  • Follow the guidelines in AGENTS.md
  • Keep code simple, readable, and maintainable
  • Prefer using existing project tools and patterns
  • Consider internationalization support when adding new features
  • Ensure all changes pass type checking