Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dashboard

> 前端框架
Open source

Create your own team dashboard with custom widgets. Built with Next.js, React, styled-components and polished.

1.3K stars0 likes3 views
WebsiteGitHub

About

Create your own team dashboard with custom widgets. Built with Next.js, React, styled-components and polished.

Dashboard

Create your own team dashboard with custom widgets.

Table of Contents

  • Installation
  • Server
    • Development
    • Production
    • Docker
  • Create a Dashboard
  • Available Widgets
    • DateTime
    • Jenkins Job Status
    • Jenkins Job Health
    • Jenkins Build Duration
    • JIRA Issue Count
    • JIRA Sprint Days Remaining
    • Bitbucket PullRequest Count
    • PageSpeed Insights Score
    • PageSpeed Insights Stats
    • SonarQube
    • Elasticsearch Hit Count
    • GitHub Issue Count
    • Title
  • Available Themes
    • light
    • dark
  • Authentication
  • Cross-Origin Resource Sharing (CORS)
    • Proxy
    • Resources
  • License

Installation

  1. Download or clone the repository.
  2. Install the dependencies with npm install.

Server

Development

Run npm run dev and go to http://localhost:3000.

Production

Build your dashboard for production with npm run build and then start the server with npm start.

Docker

  1. Build your dashboard for production with npm run build
  2. Build the image with docker build -t dashboard .
  3. Start the container with docker run -d -p 8080:3000 dashboard
  4. Go to http://localhost:8080

Create a Dashboard

You can create multiple dashboards. For example populate pages/team-unicorn.js inside your project:

javascript
import Dashboard from '../components/dashboard'
import DateTime from '../components/widgets/datetime'
import lightTheme from '../styles/light-theme'

export default () => (
  
    
  
)

This dashboard is available at http://localhost:3000/team-unicorn.

For an example, see pages/index.js.

Available Widgets

DateTime

Example

javascript
import DateTime from '../components/widgets/datetime'

props

  • interval: Refresh interval in milliseconds (Default: 10000)

Jenkins Job Status

Example

javascript
import JenkinsJobStatus from '../components/widgets/jenkins/job-status'

For Jenkins multibranch projects add branch to the object.

props

  • title: Widget title (Default: Job Status)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: Jenkins URL
  • jobs: List of all jobs
  • authKey: Credential key, defined in auth.js

Jenkins Job Health

Example

javascript
import JenkinsJobHealth from '../components/widgets/jenkins/job-health'

For Jenkins multibranch projects add branch to the object.

props

  • title: Widget title (Default: Job Health)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: Jenkins URL
  • jobs: List of all jobs
  • authKey: Credential key, defined in auth.js

Jenkins Build Duration

Example

javascript
import JenkinsBuildDuration from '../components/widgets/jenkins/build-duration'

For Jenkins multibranch projects add branch to the object.

props

  • title: Widget title (Default: Build Duration)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: Jenkins URL
  • jobs: List of all jobs
  • authKey: Credential key, defined in auth.js

JIRA Issue Count

Example

javascript
import JiraIssueCount from '../components/widgets/jira/issue-count'

For Jenkins multibranch projects add branch to the object.

props

  • title: Widget title (Default: JIRA Issue Count)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: JIRA Server URL
  • query: JIRA search query (jql)
  • authKey: Credential key, defined in auth.js

JIRA Sprint Days Remaining

Example

javascript
import JiraSprintDaysRemaining from '../components/widgets/jira/sprint-days-remaining'

props

  • title: Widget title (Default: JIRA Sprint Days Remaining)
  • interval: Refresh interval in milliseconds (Default: 3600000)
  • url: JIRA Server URL
  • boardId: JIRA board id
  • authKey: Credential key, defined in auth.js

Bitbucket PullRequest Count

Example

javascript
import BitbucketPullRequestCount from '../components/widgets/bitbucket/pull-request-count'

props

  • title: Widget title (Default: Bitbucket PR Count)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: Bitbucket Server URL
  • project: Bitbucket project key
  • repository: Bitbucket repository slug
  • users: Bitbucket user slugs as an array
  • authKey: Credential key, defined in auth.js

PageSpeed Insights Score

Example

javascript
import PageSpeedInsightsScore from '../components/widgets/pagespeed-insights/score'

props

  • title: Widget title (Default: PageSpeed Score)
  • interval: Refresh interval in milliseconds (Default: 43200000)
  • url: URL to fetch and analyze
  • strategy: Analysis strategy (Default: desktop)
    • Acceptable values: desktop | mobile
  • filterThirdPartyResources: Indicates if third party resources should be filtered out (Default: false)

PageSpeed Insights Stats

Example

javascript
import PageSpeedInsightsStats from '../components/widgets/pagespeed-insights/stats'

props

  • title: Widget title (Default: PageSpeed Stats)
  • interval: Refresh interval in milliseconds (Default: 43200000)
  • url: URL to fetch and analyze
  • strategy: Analysis strategy (Default: desktop)
    • Acceptable values: desktop | mobile
  • filterThirdPartyResources: Indicates if third party resources should be filtered out (Default: false)

SonarQube

Example

javascript
import SonarQube from '../components/widgets/sonarqube'

props

  • title: Widget title (Default: SonarQube)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: SonarQube URL
  • componentKey: SonarQube project key
  • authKey: Credential key, defined in auth.js

Elasticsearch Hit Count

Example

javascript
import ElasticsearchHitCount from '../components/widgets/elasticsearch/hit-count'

props

  • title: Widget title (Default: Elasticsearch Hit Count)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • url: Elasticsearch URL
  • index: Elasticsearch index to search in
  • query: Elasticsearch query
  • authKey: Credential key, defined in auth.js

GitHub Issue Count

Example

javascript
import GitHubIssueCount from '../components/widgets/github/issue-count'

props

  • title: Widget title (Default: GitHub Issue Count)
  • interval: Refresh interval in milliseconds (Default: 300000)
  • owner: Owner of the repository
  • repository: Name of the repository
  • authKey: Credential key, defined in auth.js

Title

Example

javascript
import Title from '../components/widgets/title'

API Status

Available Themes

light

Example

javascript
import lightTheme from '../styles/light-theme'

  ...

Preview

dark

Example

javascript
import darkTheme from '../styles/dark-theme'

  ...

Preview

Authentication

Any widget can authenticate itself, should your server expect this. We use basic authentication.

  1. Define your credential key in auth.js. For example:
    javascript
    jira: {
      username: process.env.JIRA_USER,
      password: process.env.JIRA_PASS
    }
  2. Give the defined credential key jira via prop authKey to the widget. For example:
    javascript
  3. Create a .env file or rename .env.example to .env in the root directory of your project. Add environment-specific variables on new lines in the form of NAME=VALUE. For example:
    dosini
    JIRA_USER=root
    JIRA_PASS=s1mpl3

Cross-Origin Resource Sharing (CORS)

Cross-Origin Resource Sharing (CORS) is a W3C spec that allows cross-domain communication from the browser. By building on top of the XMLHttpRequest object, CORS allows developers to work with the same idioms as same-domain requests.

Proxy

You can use a proxy (e.g. hapi-rest-proxy) to enable CORS request for any website.

Server

bash
docker pull chrishelgert/hapi-rest-proxy
docker run -d -p 3001:8080 chrishelgert/hapi-rest-proxy

Dashboard

javascript

Resources

  • https://www.w3.org/TR/cors/
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
  • https://enable-cors.org
  • https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

License

Copyright (c) 2017-present Daniel Bayerlein. See LICENSE for details.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptbitbucketdashboardelasticsearchgithub

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架