devui-0.0.1 has been yanked.
DevUI - Development Tools UI
A Tower middleware that adds a /dev/ui route to any HTTP service, serving a React-based development tools interface.
Features
- π οΈ Tower Middleware: Drop-in middleware for any Tower-compatible HTTP service
- βοΈ React SPA: Modern React TypeScript single-page application
- π Axum Integration: Works seamlessly with Axum applications
- π± Responsive UI: Modern, clean interface for development tools
- π§ Embedded Assets: React app is embedded in the Rust binary at compile time
Quick Start
1. Add to your Cargo.toml
[]
= "0.1.0"
= "0.7"
= { = "1.0", = ["full"] }
2. Apply the middleware to your Axum app
use ;
use DevUiLayer;
use ServiceBuilder;
async
3. Access your development tools
- Main app: http://localhost:3000/
- DevUI: http://localhost:3000/dev/ui
Example
Run the included example:
Then visit:
- http://localhost:3000/ - Your main application
- http://localhost:3000/dev/ui - Development tools interface
How it works
The DevUiLayer middleware:
- Intercepts requests to
/dev/ui - Serves the React SPA for non-API routes
- Handles API endpoints for backend communication
- Passes through all other requests to your application
Architecture
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β HTTP Request βββββΆβ DevUiLayer βββββΆβ Your Service β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βΌ
ββββββββββββββββββββ
β React SPA β
β /dev/ui route β
β + API endpoints β
ββββββββββββββββββββ
Available Development Tools
PostgreSQL SQL Management
Comprehensive PostgreSQL database management - Explore, query, and manage PostgreSQL databases with a rich set of features:
- ποΈ Schema Exploration: Automatic discovery of tables, columns, and relationships
- π Advanced Filtering: Type-aware filters with support for all PostgreSQL data types
- π Foreign Key Navigation: One-click navigation through foreign key relationships
- π Pagination: Efficient server-side pagination for large datasets
- π¨ Modern UI: Responsive interface with rich metadata display
π See full PostgreSQL features documentation
Kafka Management
- Kafka UI: Monitor Kafka topics and messages
- Produce/Consume: Test message production and consumption
- Cluster Management: Manage Kafka cluster configurations
Future Development Tools
The interface is designed to be extensible with tools like:
- API Explorer: Test and explore API endpoints
- Log Viewer: View and search application logs
- Metrics Dashboard: Monitor application performance
Development
For hot module reloading during development, see DEVELOPMENT.md.
Quick Development Setup
# Install frontend dependencies
# Build the entire project (frontend + backend)
# Start development server with hot reloading
Frontend Development
For React development with hot reloading:
# Start frontend development server
License
MIT