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-github

v0.29.2

Published

Rawdash connector for GitHub

Readme

@rawdash/connector-github

npm version license

Sync pull requests, issues, deployments, releases, CI runs, and contributor activity from a GitHub repository.

Install

npm install @rawdash/connector-github

Authentication

A personal access token is optional for public repositories but required for private repos and to avoid the low unauthenticated rate limit.

  1. Open GitHub → Settings → Developer settings → Personal access tokens.
  2. Generate a token with the repo scope (read access is sufficient).
  3. Store it as a secret and reference it from the connector config as token: secret("GITHUB_TOKEN").

Configuration

| Field | Type | Required | Description | | ------- | ------ | -------- | ------------------------------------- | | owner | string | Yes | GitHub username or organization name. | | repo | string | Yes | Repository name. | | token | secret | No | GitHub PAT with repo scope. |

Resources

  • repo (entity) - Top-level repository stats (stars, forks, and watchers) as a single entity.
    • Endpoint: GET /repos/{owner}/{repo}
  • workflow_run (event) - GitHub Actions CI pipeline executions.
    • Endpoint: GET /repos/{owner}/{repo}/actions/runs
  • pull_request (entity) - Open and closed pull requests, including draft state, author, and review state.
    • Endpoint: GET /repos/{owner}/{repo}/pulls
    • Review state is folded in from GET /repos/{owner}/{repo}/pulls/{number}/reviews per PR.
  • issue (entity) - Open and closed issues with labels, assignees, and author (pull requests excluded).
    • Endpoint: GET /repos/{owner}/{repo}/issues
  • deployment (entity) - Deployments with their latest status, keyed by environment and ref.
    • Endpoint: GET /repos/{owner}/{repo}/deployments
    • The latest status is folded in from GET /repos/{owner}/{repo}/deployments/{id}/statuses.
  • release (entity) - Published, draft, and prerelease GitHub releases.
    • Endpoint: GET /repos/{owner}/{repo}/releases
  • contributor (entity) - Per-author commit counts for the repository.
    • Endpoint: GET /repos/{owner}/{repo}/contributors

Example

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

const github = {
  name: 'github',
  connectorId: 'github-actions',
  config: {
    owner: 'my-org',
    repo: 'my-repo',
    token: secret('GITHUB_TOKEN'),
  },
};

export default defineConfig({
  connectors: [github],
  dashboards: {
    engineering: defineDashboard({
      widgets: {
        open_prs: {
          kind: 'stat',
          title: 'Open PRs',
          metric: defineMetric({
            connector: github,
            shape: 'entity',
            entityType: 'pull_request',
            fn: 'count',
            filter: [{ field: 'state', op: 'eq', value: 'open' }],
          }),
        },
      },
    }),
  },
});

Rate limits

Unauthenticated requests share GitHub’s low 60 requests/hour limit; an authenticated token raises it to 5,000 requests/hour.

Limitations

  • The GitHub REST API can return the same item more than once within a sync (cursor pagination overlapping a mutating collection, retried requests, or an item surfaced via multiple endpoints). Each resource dedupes by stable id before writing, keeping the last copy seen.
  • Public repositories without a token are subject to GitHub’s low unauthenticated rate limit.

Links

License

Apache-2.0