InetSoft provides a dashboard application that is well-suited for another ISV or SaaS provider to use for embedding dashboards into their own applications.
With InetSoft's embeddable dashboard solution, it is possible to provide a condensed, single screen dashboard for monitoring several key performance indicators, or whatever data needs to be presented.
InetSoft's dashboard software offers a solution provider's customers:
It offers a solution provider's development team:
StyleBI from InetSoft, the solution to your application's dashboarding needs.
#1 Ranking: Read how InetSoft was rated #1 for user adoption in G2's user survey-based index | Read More |
Music streaming platforms and content-focused music websites need to analyze listener preferences, track artist performance, optimize recommendations, and understand regional trends in real-time. Embedding InetSoft's StyleBI microservice into your music platform can provide advanced analytics capabilities without the complexity of building a BI infrastructure from scratch.
This article walks through how to embed StyleBI into a music website, its technical advantages, and best practices for integrating interactive dashboards and analytics seamlessly within your web stack.
What is StyleBI?
InetSoft's StyleBI is a lightweight, microservice-based BI and analytics engine designed for embeddability. Unlike traditional BI platforms that are monolithic and resource-intensive, StyleBI follows a modern microservice architecture that makes it highly scalable and developer-friendly. It can be deployed as a containerized service and easily integrated into existing web applications via REST APIs and iFrames.
Its main capabilities include:
Use Case: A Music Website
Let's say you operate a music streaming website like SoundPulse, featuring curated playlists, artist pages, user accounts, and real-time music streaming. You want to offer both internal analytics (for admins and artists) and external-facing metrics (for label partners, press kits, or even fans). Examples include:
Embedding StyleBI dashboards allows developers to build all this into their platform with minimal development overhead while giving business teams and creators robust analytics.
Architecture Overview
Here's a simplified view of how StyleBI fits into your architecture:
text
CopyEdit
+---------------------------+ +-------------------------+
| Music Website (UI) | <----> | StyleBI Microservice |
+---------------------------+ +-------------------------+
| ^ ^
| | |
v | |
User Actions | |
| v |
+-----> API Gateway <------------> Backend + Database
Step-by-Step Integration
1. Install StyleBI
InetSoft provides a Docker-based deployment for StyleBI. You can get started with:
bash
CopyEdit
docker run -d -p 8080:8080 inetsoft/stylebi:latest
Ensure it has access to your analytics database, which could be Postgres, MySQL, or even REST API-fed datasets.
2. Connect Data Sources
In the StyleBI admin interface:
For example, a REST API for fetching daily stream counts might look like:
json
CopyEdit
GET /api/streams/daily?artistId=12345
Authorization: Bearer <token>
3. Create Dashboards
Use StyleBI's visual dashboard builder to create reusable views. For example:
Once published, each dashboard is assigned a View ID, which you can use for embedding.
4. Embed Dashboards in Your Web App
You can embed dashboards using an iFrame with secure session tokens.
Example React component:
jsx
CopyEdit
<iframe
src={`https://analytics.soundpulse.com/stylebi/embed/${dashboardId}?token=${userToken}`}
width="100%"
height="800"
frameBorder="0"
/>
Or, for finer control, use StyleBI's JavaScript SDK to dynamically load views and react to filters.
javascript
CopyEdit
StyleBI.init({
container: "#dashboard-container",
viewId: "artist-performance",
token: userToken,
filters: {
artistId: currentArtistId,
},
});
Authentication & Security
Use your app's SSO or token-based authentication to generate access tokens for StyleBI. It supports:
This ensures that an artist sees only their data, and admin users see aggregate views.
Example token payload:
json
CopyEdit
{
"sub": "user123",
"roles": ["artist"],
"filters": {
"artistId": "12345"
},
"exp": 1710000000
}
Pass this token via header or URL param when loading the dashboard.
Advanced Features Developers Will Appreciate
1. Parameter Injection
Filter dashboards at runtime based on user context:
jsx
CopyEdit
<iframe
src={`.../embed/viewId?artistId=${artistId}®ion=${region}`}
/>
2. REST API Control
Programmatically export dashboards as PDF or images for use in press kits or partner reports:
bash
CopyEdit
GET /api/v1/views/{viewId}/export/pdf
Authorization: Bearer <token>
3. White-Labeling
StyleBI allows CSS and theme customizations, letting you blend dashboards into your app UI for a seamless look.
css
CopyEdit
/* Customize dashboard themes */
.stylebi-header {
background-color: #0f172a;
color: #f8fafc;
}
4. Multi-Tenant Support
Ideal if your platform hosts multiple labels, agencies, or artist collectives—each can get isolated, tenant-specific data views.
Performance Considerations