npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mozaik/ext-gitlab

v2.0.0-alpha.9

Published

Mozaik GitLab widgets

Downloads

13

Readme

Mozaïk GitLab widgets

License Travis CI NPM version Coverage Status widget count

This repository contains some widgets to use with Mozaïk.

Sample gitlab dashboard

You can see a live demo of this extension here

Deploy

This branch contains code for the version compatible with Mozaïk v2, if you're looking for v1, please use mozaik-1 branch.

Client Configuration

In order to use the Mozaïk gitlab extension, you must configure its client. Configuration is loaded from environment variables.

| env key | required | default | description |------------------|----------|---------|---------------------------- | GITLAB_BASE_URL | yes | | gitlab API base url, eg. 'https://gitlab.com/api/v4 | GITLAB_API_TOKEN | yes | | gitlab API token

Project

Show GitLab project info.

Gitlab project

parameters

key | required | description ----------|----------|-------------------------- project | yes | ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    Project
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

Project Members

Show GitLab project members.

Gitlab project members

parameters

key | required | description ----------|----------|-------------------------- project | yes | ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    ProjectMembers
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab Branches

Show GitLab project branches.

Gitlab project branches

parameters

key | required | description ----------|----------|-------------------------- project | yes | ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    Branches
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

LatestProjectPipeline

Show details about latest project pipeline.

LatestProjectPipeline

parameters

key | type | required | default | description --------------------|-------------|----------|---------|------------- project | {string} | yes | | ID or NAMESPACE/PROJECT_NAME of a project gitRef | {string} | no | | Get latest pipeline for a specific ref (branch, tag…) hideCommitMessage | {boolean} | no | false | Hide pipeline commit info

usage

- extension:         gitlab
  widget:            LatestProjectPipeline
  project:           gitlab-org/gitlab-runner
  gitRef:            master
  hideCommitMessage: false
  columns:           2
  rows:              1
  x:                 0
  y:                 0

GitLab Job Histogram

Show GitLab project job histogram.

Gitlab project job histogram

parameters

key | required | description ----------|----------|-------------------------- project | yes | ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    JobHistogram
  project:   gitlab-org/gitlab-ce
  columns:   2
  rows:      1
  x:         0
  y:         0

GitLab Job History

Show GitLab project job history.

Gitlab project job history

parameters

key | required | description ----------|----------|-------------------------- project | yes | ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    JobHistory
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab Project Contributors

Show GitLab project contributors.

Gitlab project contributors

parameters

key | required | description ----------|----------|-------------------------- project | yes | ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    ProjectContributors
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab labels bubble chart

Show GitLab project's labels stats using a bubble chart.

Gitlab labels bubble chart

parameters

key | required | default | description ----------|----------|-----------------------|---------------- project | yes | n/a | ID or NAMESPACE/PROJECT_NAME of a project countBy | yes | 'open_issues_count' | Defines which count to use, must be one of: 'open_issues_count', 'closed_issues_count', 'open_merge_requests_count' title | no | n/a | Overrides widget title

usage

- extension: gitlab
  widget:    LabelsBubble
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab labels pie

Show GitLab project's labels stats using a pie chart.

Gitlab labels pie

parameters

key | required | default | description ----------|----------|-----------------------|---------------- project | yes | n/a | ID or NAMESPACE/PROJECT_NAME of a project countBy | yes | 'open_issues_count' | Defines which count to use, must be one of: 'open_issues_count', 'closed_issues_count', 'open_merge_requests_count' title | no | n/a | Overrides widget title

usage

- extension: gitlab
  widget:    LabelsPie
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab labels tree map

Show GitLab project's labels stats using a tree map chart.

Gitlab labels tree map

parameters

key | required | default | description ----------|----------|-----------------------|---------------- project | yes | n/a | ID or NAMESPACE/PROJECT_NAME of a project countBy | yes | 'open_issues_count' | Defines which count to use, must be one of: 'open_issues_count', 'closed_issues_count', 'open_merge_requests_count' title | no | n/a | Overrides widget title

usage

- extension: gitlab
  widget:    LabelsTreemap
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0