Web UI Overview
Kirin includes a comprehensive web interface for managing datasets and catalogs through your browser.
Getting Started
Starting the Web UI
# Development (with pixi)
pixi run kirin ui
# Production (with uv)
uv run kirin ui
# One-time use (with uvx)
uvx kirin ui
The web UI will start on a random port (usually 8000+) and display the URL in your terminal.
First Time Setup
- Start the web UI: Run
pixi run kirin ui
- Open your browser: Navigate to the displayed URL
- Create your first catalog: Click "Add Catalog" to get started
Key Features
Catalog Management
- Multiple Catalogs: Manage different data collections
- Cloud Integration: Connect to S3, GCS, Azure, and more
- Authentication: Secure credential management
- Catalog Overview: See all datasets at a glance
Dataset Operations
- Browse Datasets: View all datasets in a catalog
- File Management: Upload, remove, and organize files
- Commit History: Visual commit timeline
- File Preview: View file contents directly in browser
User Interface
- Modern Design: Clean, responsive interface
- Fast Interactions: HTMX-powered dynamic updates
- Mobile Friendly: Works on all device sizes
- Accessible: Keyboard navigation and screen reader support
Navigation
Main Pages
- Home (
/
): Catalog management and overview - Catalog View (
/{catalog_id}
): Dataset listing for a catalog - Dataset View (
/{catalog_id}/{dataset}
): Individual dataset with files and history - File Preview (
/{catalog_id}/{dataset}/files/{filename}
): File content viewer
Navigation Flow
Home → Catalog → Dataset → File Preview
↑ ↑ ↑ ↑
Catalogs Datasets Files Content
Working with Catalogs
Creating a Catalog
- Click "Add Catalog" on the home page
- Enter catalog details:
- ID: Unique identifier (e.g.,
my-data
) - Name: Display name (e.g.,
My Data Catalog
) - Root Directory: Storage location
- Configure authentication (for cloud storage)
- Save and test the connection
Working with Datasets
Dataset View
The dataset view shows:
- Files Tab: Current files in the dataset
- History Tab: Commit history timeline
- Actions: Upload files, remove files, commit changes
File Operations
Uploading Files
- Click "Upload Files" in the dataset view
- Select files from your computer
- Add commit message describing the changes
- Click "Commit Changes" to save
Removing Files
- Click "Remove Files" in the dataset view
- Select files to remove (checkboxes)
- Add commit message explaining the removal
- Click "Commit Changes" to save
Combined Operations
You can upload and remove files in the same commit:
- Upload new files and select files to remove
- Add commit message describing all changes
- Click "Commit Changes" to save everything together
Commit History
The History tab shows:
- Commit Timeline: Chronological list of commits
- Commit Details: Files added/removed in each commit
- File Information: Size, hash, and metadata
- Navigation: Click to view specific commits
File Preview
Supported File Types
The web UI can preview:
- Text files:
.txt
,.csv
,.json
,.py
,.md
- Code files:
.py
,.js
,.html
,.css
- Data files:
.csv
,.json
,.yaml
- Configuration:
.ini
,.toml
,.yaml
Preview Features
- Syntax highlighting for code files
- Line numbers for easy reference
- Download button for saving files
- Responsive layout for different screen sizes
Cloud Storage Integration
Setting Up Cloud Catalogs
- Create catalog with cloud URL (e.g.,
s3://bucket/path
) - Configure authentication:
- AWS: Profile name or access keys
- GCS: Service account key file
- Azure: Connection string or account details
- Test connection to verify setup
Cloud Authentication
The web UI handles cloud authentication automatically:
- Credential Storage: Secure storage in catalog configuration
- Profile Detection: Automatic AWS profile detection
- Token Management: GCS service account token handling
- Connection Testing: Verify authentication before saving
Troubleshooting
Common Issues
Port Already in Use
# If port is busy, Kirin will use a different port
# Check the terminal output for the actual URL
SSL Certificate Issues
# Set up SSL certificates for cloud storage
pixi run setup-ssl
Cloud Authentication Failures
- Check credentials: Verify AWS profiles, GCS tokens, etc.
- Test connectivity: Try a simple cloud operation
- Review logs: Check terminal output for error messages
Performance Tips
Large Datasets
- Use file filtering to focus on specific files
- Limit commit history display for better performance
- Consider chunking very large files
Cloud Storage
- Use appropriate regions for better performance
- Enable compression for text files
- Batch operations when possible
Next Steps
- Catalog Management - Advanced catalog configuration
- Basic Usage Guide - Core dataset operations
- Cloud Storage Guide - Cloud backend setup