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

v0.24.0

Published

Rawdash connector for Intercom — syncs conversations, contacts, teams, and admins from the Intercom REST API into the six-shape storage model

Readme

@rawdash/connector-intercom

npm version license

Sync conversations, contacts, teams, and admins from Intercom for support volume, response latency, and queue-depth analytics.

Install

npm install @rawdash/connector-intercom

Authentication

An Intercom access token (personal or app) with read access to conversations, contacts, teams, and admins.

  1. Open Intercom → Settings → Developers → Developer Hub and create or select an app.
  2. On the app's Authentication tab, copy the access token.
  3. Ensure the token has read access for the resources you intend to sync.
  4. Store the token as a secret and reference it from config as accessToken: secret("INTERCOM_ACCESS_TOKEN").

Configuration

| Field | Type | Required | Description | | ------------- | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | accessToken | secret | Yes | Intercom access token (personal or app) with read access to conversations, contacts, teams, and admins. Generate one at Settings → Developers → Developer Hub → Authentication. | | apiVersion | string | No | Value sent in the Intercom-Version header. Defaults to 2.11; pin a specific version here when upgrading deliberately. | | region | us | eu | au | No | Intercom region of your workspace. Selects the API host: us → api.intercom.io, eu → api.eu.intercom.io, au → api.au.intercom.io. | | resources | array | No | Which Intercom resources to sync. Omit to sync all of them. The access token only needs read scopes for the resources listed here. |

Resources

  • intercom_admin (entity) - Intercom teammates (admins) with seat and away state.
    • Endpoint: GET /admins
    • name: Admin display name.
    • email: Admin email address.
    • jobTitle: Admin job title.
    • awayMode: Whether away mode is enabled.
    • hasInboxSeat: Whether the admin has an inbox seat.
  • intercom_team (entity) - Inbox teams and their admin membership counts.
    • Endpoint: GET /teams
    • name: Team name.
    • adminCount: Number of admins on the team.
  • intercom_contact (entity) - Contacts (users and leads) with role and last-seen time.
    • Endpoint: POST /contacts/search
    • role: Contact role (user or lead).
    • email: Contact email address.
    • externalId: Your external identifier for the contact.
    • createdAt: When the contact was created (Unix ms).
    • lastSeenAt: When the contact was last seen (Unix ms).
  • intercom_conversation (entity) - Conversations with state, priority, assignment, reply-time statistics, and tags.
    • Endpoint: POST /conversations/search
    • state: Conversation state (open, snoozed, closed).
    • priority: Conversation priority.
    • adminAssigneeId: Assigned admin id (null if unassigned).
    • teamAssigneeId: Assigned team id (null if unassigned).
    • createdAt: When the conversation was created (Unix ms).
    • firstContactReplyAt: First contact reply time (Unix ms).
    • firstAdminReplyAt: First admin reply time (Unix ms).
    • snoozedUntil: Snooze expiry time (Unix ms), if snoozed.
    • countAssignments: Number of assignments.
    • countReopens: Number of reopens.
    • countConversationParts: Number of conversation parts.
    • tags: Flat list of tag names on the conversation.
  • intercom_conversation_state_change (event) - State-change events (created / assigned / closed / snoozed) derived from each conversation.
    • Endpoint: POST /conversations/search
    • Derived from each conversation’s statistics block; the scope is cleared and rewritten on every sync.
    • conversationId: The conversation the event belongs to.
    • transition: created, assigned, closed, or snoozed.
    • state: Conversation state at sync time.
    • priority: Conversation priority at sync time.
    • adminAssigneeId: Assigned admin id (null if unassigned).
    • teamAssigneeId: Assigned team id (null if unassigned).

Example

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

const intercom = {
  name: 'intercom',
  connectorId: 'intercom',
  config: {
    accessToken: secret('INTERCOM_ACCESS_TOKEN'),
    region: 'us',
    apiVersion: '2.11',
  },
};

export default defineConfig({
  connectors: [intercom],
  dashboards: {
    support: defineDashboard({
      widgets: {
        open_conversations: {
          kind: 'stat',
          title: 'Open conversations',
          metric: defineMetric({
            connector: intercom,
            shape: 'entity',
            entityType: 'intercom_conversation',
            fn: 'count',
            filter: [{ field: 'state', op: 'eq', value: 'open' }],
          }),
        },
      },
    }),
  },
});

Rate limits

Intercom enforces per-app and per-workspace limits (default ~1000 requests/minute) and signals quota state via the X-RateLimit-* response headers; the shared HTTP client backs off on 429, preferring X-RateLimit-Reset.

Limitations

  • Conversation message bodies and per-part transcripts are not synced.
  • Help Center articles and outbound campaigns are out of scope.
  • Full per-part state-transition history is not synced; state-change events are derived from each conversation’s statistics block.

Links

License

Apache-2.0