| Crates.io | waycast |
| lib.rs | waycast |
| version | 0.4.0 |
| created_at | 2025-10-15 11:56:09.559555+00 |
| updated_at | 2025-10-20 17:21:38.242352+00 |
| description | A self-hostable observability and analytics platform for LLM applications |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1884234 |
| size | 2,069,053 |
Rust-based API server for user, group, and model management with PostgreSQL database.
cargo install sqlx-cli# Start PostgreSQL (macOS with Homebrew)
brew services start postgresql
# Create database
createdb waycast
# Or connect to existing PostgreSQL instance
psql -c "CREATE DATABASE waycast;"
Create .env file in the application/waycast directory:
# application/waycast/.env
DATABASE_URL=postgres://your-username@localhost:5432/waycast
Replace your-username with your PostgreSQL username.
cd application/waycast
sqlx migrate run
# Generate offline query cache
cargo sqlx prepare
# This creates .sqlx/ directory with cached query metadata
cd application/waycast
# Run with live database connection
cargo run
# Run tests (requires database)
cargo test
The service uses config.yaml (or WAYCAST_* environment variables):
WAYCAST_HOST: Server host (default: 0.0.0.0)WAYCAST_PORT: Server port (default: 3001)DATABASE_URL: PostgreSQL connection stringWaycast uses an additive role-based access control system where users can have multiple roles that combine to provide different levels of access.
Roles are additive, meaning users gain the combined permissions of all their assigned roles:
StandardUser roleStandardUser is preserved during role updatesDatabase connection errors
brew services start postgresql.env filepsql -l | grep waycastMigration errors
# Reset database
sqlx database reset # add `-y` to skip confirmation and `-f` if you get a
# 'other user are connected' error (usually your IDE is also connected)
Migrations are stored in the migrations/ directory, and run automatically on startup.
001_initial.sql - Users, groups, models tables002_listen_notify.sql - PostgreSQL notify triggers003_make_hosted_on_not_null.sql - Schema updates/admin/docs when running