Quick Start
Get a Semaphor dashboard embedded in your app.
Introduction
Semaphor is an embedded analytics platform for customer-facing dashboards. You build dashboards in the Semaphor Console and embed them in your app with a few lines of code.
This decouples analytics from your product code. Update dashboards, add visuals, and change data logic — all without redeploying your app. Semaphor supports natural language, SQL, and Python for data logic.
Prerequisites
- A Semaphor account — sign up here
- A data source: PostgreSQL, MySQL, MS SQL, ClickHouse, BigQuery, Snowflake, or S3
Step 1: Create a Project and Connect Your Data
- Log in to the Semaphor Console
- Create a new project
- Go to the Connections tab, click Add Connection, and connect your database
- Note your
projectIdandprojectSecretfrom the project settings
See the Connectors section for database-specific setup guides.
Step 2: Create a Dashboard
- From the console, create a new dashboard
- Add visuals using natural language, SQL, or Python
- Note your
dashboardIdfrom the dashboard URL or settings
Step 3: Embed the Dashboard
The fastest way to embed is with an iframe. It's zero dependency — you don't need to bundle any Semaphor libraries or SDKs in your app. Everything runs inside the iframe. This means you can embed Semaphor dashboards in any app that supports iframes: Notion, Confluence, WordPress, Retool, internal tools, or your own product.
Fetch a token server-side, then render the iframe.
Do not expose projectSecret in client-side code in production. Generate tokens from your backend server.
Embedding Options
The iframe above is the simplest way to embed. For deeper integration, use the Semaphor SDK.
| Method | Best For | Guide |
|---|---|---|
| iFrame | Fastest setup, zero dependencies | iFrame Guide |
| React SDK | Component-level control, event handlers | React Guide |
| Vue SDK | Vue applications | Vue Guide |
| Web Component | Framework-agnostic | Web Component Guide |
What's Next
Self-Service Analytics
Enable your customers to explore data and build their own dashboards.
Custom Visuals
Build your own React chart components and filters.
Connectors
Database-specific connection guides.
Token Options
Configure token expiry, multi-tenancy, and security.
Themes & Styles
Match dashboard appearance to your app.