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

intercom-help-sync

v0.5.0

Published

CLI tool to sync Intercom Help Center articles with local markdown files

Downloads

385

Readme

intercom-help-sync

CLI tool to sync Intercom Help Center articles with local markdown files, enabling AI-powered documentation management and i18n workflows.

Features

  • 📥 Pull articles from Intercom to local markdown files
  • 📤 Push local changes back to Intercom
  • 🌍 i18n support with translations management
  • 🤖 AI-friendly markdown format with front matter metadata
  • 🔄 Bidirectional sync between Intercom and local files

Installation

npm install -D intercom-help-sync

Quick Start

1. Set your Intercom access token

export INTERCOM_ACCESS_TOKEN=your_access_token_here

2. Sync articles

Pull all articles from Intercom:

npx intercom-help-sync pull

Push a file to Intercom:

npx intercom-help-sync push help-docs/ja/getting-started/quick-start.md

Usage

Pull Commands

Pull all articles:

npx intercom-help-sync pull

Pull specific article:

npx intercom-help-sync pull --article-id 123456

Use custom config:

npx intercom-help-sync pull --config path/to/config.json

Push Commands

Push a single file:

npx intercom-help-sync push help-docs/ja/getting-started/quick-start.md

Push multiple files:

npx intercom-help-sync push help-docs/ja/file1.md help-docs/ja/file2.md

Dry run (show diff without pushing):

npx intercom-help-sync push help-docs/ja/quick-start.md --dry-run

Article Format

Articles are stored as markdown files with YAML front matter:

---
intercom_id: "123456"
intercom_collection_id: "getting-started"
locale: "ja"
translations:
  en: "en/getting-started/quick-start.md"
updated_at: "2024-11-19T10:00:00Z"
status: "published"
title: "クイックスタート"
author_id: 12345
---

# クイックスタート

本文はここに書きます...

Front Matter Fields

  • intercom_id: Intercom article ID (auto-generated on first push)
  • intercom_collection_id: Collection/category ID
  • locale: Language code (ja, en, etc.)
  • translations: Map of locale to file path for translations
  • updated_at: Last update timestamp
  • status: published or draft
  • title: Article title
  • author_id: Intercom author ID

Workflow Examples

CS Team Workflow

  1. CS team updates articles in Intercom UI
  2. Run npx intercom-help-sync pull to sync changes locally
  3. Commit to git for version control

AI-Powered Updates

  1. AI reads local markdown files
  2. AI modifies content based on code changes
  3. Run npx intercom-help-sync push <path> to update Intercom

i18n Workflow

  1. Create article in default locale (ja)
  2. Add translation in another locale (en)
  3. Link via translations field in front matter
  4. Push both files - they'll be synced as one article with translations

Configuration (Optional)

Configuration file is optional. By default, the tool uses:

  • INTERCOM_ACCESS_TOKEN environment variable
  • help-docs as the articles directory
  • Default locale is determined from articles (the one with translations field)
  • All translations are synced

To customize, create help-docs/.intercom-config.json:

{
  "articlesDir": "./custom-articles-path"
}

Available options:

  • intercomAccessToken: Access token (use env:VAR_NAME for environment variables)
  • articlesDir: Relative path to articles directory

Getting Intercom Access Token

  1. Go to Intercom Settings > Developers > Developer Hub
  2. Create a new app or use existing one
  3. Add "Articles" permissions (read & write)
  4. Copy the access token

License

MIT

Author

Naoyoshi Aikawa @ Rimo, LLC.