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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rawdash/connector-circleci

v0.29.2

Published

Rawdash connector for CircleCI — pipelines, workflows, jobs, and workflow state-transition events

Readme

@rawdash/connector-circleci

npm version license

Sync CircleCI pipelines, workflows, jobs, and workflow state-transition events so build success rate and duration land on dashboards.

Install

npm install @rawdash/connector-circleci

Authentication

A CircleCI personal API token is required. Tokens authenticate against the v2 REST API and inherit the creating user permissions on the configured projects.

  1. Open CircleCI -> User Settings -> Personal API Tokens (https://app.circleci.com/settings/user/tokens).
  2. Create a token with a descriptive name (e.g. "rawdash sync") and copy the value.
  3. Store it as a secret and reference it from the connector config as apiToken: secret("CIRCLECI_API_TOKEN").
  4. Set projectSlugs to the projects you want to sync, e.g. ['gh/my-org/my-repo'].

Configuration

| Field | Type | Required | Description | | ----------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | apiToken | secret | Yes | CircleCI personal API token (read-only is sufficient). Create one at CircleCI -> User Settings -> Personal API Tokens. | | projectSlugs | array | Yes | CircleCI project slugs to sync, e.g. 'gh/my-org/my-repo' or 'circleci//'. | | branch | string | No | Restrict pipeline sync to a single branch. Omit to sync all branches. | | resources | array | No | Which CircleCI resources to sync. Omit to sync pipelines, workflows, and pipeline_events (jobs are off by default because they add a per-workflow API call). Workflows must be fetched whenever workflows, jobs, or pipeline_events are enabled. | | pipelinesLookbackDays | number | No | How many days back to fetch pipelines on a full sync. Defaults to 30. CircleCI does not expose a server-side since filter, so the connector paginates newest-first and stops once it crosses this window. |

Resources

  • circleci_pipeline (entity) - CircleCI pipelines with state, trigger, git ref, project slug, and created_at. Pipelines are immutable: CircleCI sets updated_at once at creation (always equal to created_at), so the entity carries only created_at.
    • Endpoint: GET /api/v2/project/{project_slug}/pipeline
    • Pipelines are paginated newest-first by created_at; the connector cuts off and watermarks on created_at and stops once it crosses pipelinesLookbackDays. A page is only treated as the last when its oldest (final) item crosses the cutoff, so an out-of-order old pipeline mid-page never halts pagination.
  • circleci_workflow (entity) - Workflows belonging to each pipeline, including status, name, and start/stop timestamps. Fetched per pipeline with one extra API call.
    • Endpoint: GET /api/v2/pipeline/{pipeline_id}/workflow
  • circleci_job (entity) - Jobs belonging to each workflow, including status, type, and start/stop timestamps. Off by default; enable via resources because it adds an API call per workflow.
    • Endpoint: GET /api/v2/workflow/{workflow_id}/job
  • circleci_pipeline_event (event) - Each workflow emitted as a time-bounded event spanning its created_at to stopped_at, carrying the same status, project, and pipeline attributes.
    • Endpoint: GET /api/v2/pipeline/{pipeline_id}/workflow

Example

import {
  defineConfig,
  defineDashboard,
  defineMetric,
  secret,
} from '@rawdash/core';

const circleci = {
  name: 'circleci',
  connectorId: 'circleci',
  config: {
    apiToken: secret('CIRCLECI_API_TOKEN'),
    projectSlugs: ['gh/my-org/my-repo'],
    branch: 'main',
    pipelinesLookbackDays: 30,
  },
};

export default defineConfig({
  connectors: [circleci],
  dashboards: {
    engineering: defineDashboard({
      widgets: {
        builds: {
          kind: 'stat',
          title: 'Pipelines run',
          metric: defineMetric({
            connector: circleci,
            shape: 'event',
            name: 'circleci_pipeline_event',
            fn: 'count',
          }),
        },
      },
    }),
  },
});

Rate limits

CircleCI v2 rate-limits per token at roughly 1,000 requests per minute and surfaces the budget via X-RateLimit-* response headers (and Retry-After on a 429). The shared HTTP layer backs off and retries on 429. The connector paginates pipelines newest-first and fans out one extra request per pipeline for workflows (and one more per workflow for jobs when enabled), so cap projectSlugs and pipelinesLookbackDays accordingly.

Limitations

  • CircleCI v2 has no server-side since filter for pipelines, so the connector paginates newest-first by created_at and stops once it crosses pipelinesLookbackDays (default 30).
  • CircleCI pipelines are immutable once created: updated_at is set at creation and never changes (it always equals created_at), and a re-run surfaces as a new pipeline with a new id and created_at. The connector therefore cuts off and watermarks on created_at; no completed-pipeline updates are lost.
  • The jobs resource is off by default because it adds an extra API call per workflow. Enable it explicitly in resources if you need per-job entities.
  • Insights API (pre-aggregated workflow stats) and the self-hosted CircleCI Server are out of scope for v1.

Links

License

Apache-2.0