A phased approach to building a Metabase alternative, starting with static dashboards and evolving to a full analytics platform.
dashforge/
├── cmd/
│ ├── dashforge/ # Static CLI (minimal deps)
│ │ ├── main.go
│ │ └── cmd/
│ │ ├── root.go
│ │ ├── serve.go # Local dev server
│ │ ├── validate.go # Dashboard validation
│ │ └── version.go
│ └── dashforge-server/ # Full server (db, auth)
│ ├── main.go
│ └── cmd/
│ ├── root.go
│ ├── serve.go # Production server
│ └── version.go
├── dashboardir/ # Core IR types (zero deps)
│ ├── dashboard.go
│ ├── datasource.go
│ ├── transform.go
│ └── widget.go
├── viewer/ # Embedded HTML/JS viewer
│ ├── viewer.go
│ └── index.html
├── schema/ # JSON Schema
│ ├── schema.go
│ ├── dashboard.schema.json
│ └── generate/
├── internal/
│ └── server/ # Server-only code
│ ├── server.go
│ ├── api/ # REST API handlers
│ ├── db/ # Database interface
│ ├── auth/ # Authentication
│ └── config/ # YAML config loading
└── examples/
- DashboardIR Go types
- JSON Schema generation from Go types
- Static HTML/JS viewer
- URL and inline data sources
- Widgets: chart, metric, table, text
- Transforms: extract, filter, sort, limit
- ChartIR → ECharts compilation
- Interactive variable filters
- Select dropdowns
- Text search with debounce
- Date and daterange pickers
- URL param sync (shareable links)
- Dynamic options from data sources
- Variable interpolation in transforms (
${var:id})
-
dashforge serve- local dev server -
dashforge validate- dashboard validation - Example compliance dashboard
- CLI structure with Cobra
- Server package with HTTP routing
- API handler scaffolding (dashboard CRUD, query execution)
- Database interface definition
- Auth middleware scaffolding
- YAML config loading
- PostgreSQL implementation (pgx)
- Dashboard storage (file + database)
- User management
- Query caching
Goal: Make static dashboards robust enough for production GitHub Pages deployment.
- Generate JSON Schema from Go types
- Create
dashforge validateCLI command - Add schema validation to viewer (runtime)
- Add schema version migration support
- Dark mode toggle (use theme from dashboard)
- Responsive/mobile layout
- Loading states and error boundaries per widget
- Keyboard navigation
- Print/export to PDF
- Implement variable UI controls (select, text, date, daterange)
- Variable-based data filtering
- URL query param sync for variables
- Cross-widget filtering (click row to filter other widgets)
- Table: client-side sorting, filtering, search
- Table: column resizing and reordering
- Metric: sparkline support
- Metric: comparison to previous period
- Text: markdown rendering with variable interpolation
- Heatmap
- Treemap
- Funnel
- Gauge
- Radar/spider
- Candlestick (for time series)
- Tab/page support within dashboard
- Auto-refresh toggle in viewer
- Full-screen widget mode
- Widget drill-down navigation
- Dashboard embedding (iframe snippet generator)
-
dashforge serve- local dev server with live reload -
dashforge build- bundle dashboard + data for deployment -
dashforge new- scaffold new dashboard from template
Goal: Add a Go server that can query databases directly.
- Go HTTP server (
dashforge-server serve) - Serve static dashboards
- REST API scaffolding for dashboard CRUD
- Health check endpoint
- Configuration via YAML/env vars
- Graceful shutdown
- Metrics endpoint (Prometheus)
- Database interface defined
- Connection configuration (with env var secrets)
- Query execution with parameterized queries (pgx)
- Connection pooling
- Query timeout and cancellation
- SSL/TLS support
- In-memory cache with TTL
- Cache invalidation on refresh
- Optional Redis cache backend
- Cache statistics endpoint
- MySQL/MariaDB
- SQLite (for local/embedded use)
- ClickHouse (for analytics)
- DuckDB (for local analytics)
- Named/saved queries
- Query parameters from variables
- Query result transformation
- Query chaining (one query feeds another)
- HTTP/REST API data source
- GraphQL data source
- Authentication (API key, OAuth)
- Response transformation
Goal: Allow non-technical users to explore data without SQL.
- Auto-discover tables and columns
- Column type detection
- Foreign key relationship detection
- Schema caching
- Table/view selector
- Column picker with search
- Filter builder (WHERE clause)
- Aggregation selector (GROUP BY)
- Sort configuration (ORDER BY)
- Limit/pagination
- Monaco editor integration
- Syntax highlighting
- Auto-complete for tables/columns
- Query formatting
- Query history
- Save queries as "questions"
- Query versioning
- Query sharing via link
- Query collections/folders
Goal: Support teams with authentication and permissions.
- Auth middleware interface
- Role-based access (admin, editor, viewer)
- Local user accounts (email/password)
- Session management (JWT)
- Password reset flow
- API tokens for programmatic access
- GitHub OAuth
- Google OAuth
- OIDC generic provider
- SAML (enterprise)
- Dashboard-level permissions
- Data source-level permissions
- Collection-level permissions
- Row-level security
- Dashboard collections/folders
- Dashboard favorites
- Dashboard search
- Activity feed / audit log
- Comments on dashboards
- Public dashboard links
- Password-protected shares
- Expiring share links
- Embed tokens with row-level filtering
Goal: Features required for enterprise adoption.
- Cron-based dashboard refresh
- Email delivery (PDF/PNG snapshots)
- Slack/Teams integration
- Webhook delivery
- Threshold-based alerts on metrics
- Alert conditions (above, below, change %)
- Alert destinations (email, Slack, webhook)
- Alert history and acknowledgment
- Column-level masking
- IP allowlisting
- Audit logging with retention
- Query result pagination
- Async query execution
- Query queue management
- Multi-node deployment
- Read replicas for queries
- Admin dashboard (usage stats)
- User management UI
- Database connection management UI
- System health monitoring
- Backup/restore
Goal: Enable community extensions and integrations.
- Custom visualization plugins
- Custom data source plugins
- Custom transform plugins
- Plugin marketplace/registry
- dbt integration (model metadata)
- Airbyte/Fivetran (data pipelines)
- Jupyter notebook export
- Terraform provider
- Comprehensive REST API
- Go SDK
- TypeScript/JavaScript SDK
- Python SDK
- CLI for CI/CD workflows
- User guide
- Admin guide
- API reference
- Plugin development guide
- Self-hosting guide
go install github.com/grokify/dashforge/cmd/dashforge@latestgo install github.com/grokify/dashforge/cmd/dashforge-server@latest# Create a dashboard
dashforge new my-dashboard
# Serve locally
dashforge serve ./my-dashboard
# Deploy: push JSON files to GitHub Pages# Start server with database
dashforge-server serve --db-url postgres://localhost/analytics
# Or use config file
dashforge-server serve --config config.yaml| Phase | Effort | Impact | Priority | Status |
|---|---|---|---|---|
| 1.1 Schema & Validation | Low | High | P0 | ✅ Done |
| 1.3 Interactive Filters | Medium | High | P0 | ✅ Done |
| 1.7 CLI Tools | Low | Medium | P1 | Partial |
| 2.1 Server Foundation | Medium | High | P1 | Scaffolded |
| 2.2 PostgreSQL | Medium | High | P1 | Interface only |
| 1.2 Enhanced Viewer | Medium | High | P1 | Not started |
| 3.2 Query Builder UI | High | High | P2 | Not started |
| 4.1 Authentication | Medium | Medium | P2 | Scaffolded |
| 5.1 Scheduled Reports | Medium | Medium | P3 | Not started |