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

ipc-explorer

v1.0.0

Published

IPC/CPC国际专利分类号查询、解释与层级浏览工具

Readme

ipc-explorer

IPC/CPC 国际专利分类号查询、解释与层级浏览工具。

支持中英文双语,覆盖 IPC 全部 8 个部(A-H)及其大类。

功能

  • 分类号解析 — 输入任意 IPC 号(如 G06F 3/06),返回部、大类、小类、大组、小组各层级含义
  • 关键词搜索 — 按中文或英文关键词查找匹配的 IPC 分类
  • 层级浏览 — 列出所有部,或浏览某个部下的全部大类
  • 批量查询 — 一次解析多个 IPC 分类号
  • CLI 工具 — 命令行直接使用

安装

npm install ipc-explorer

快速使用

作为模块引用

import { IPCExplorer } from 'ipc-explorer';

const explorer = new IPCExplorer();

// 解析 IPC 分类号
const result = explorer.lookup('G06F 3/06');
console.log(result.section);  // { code: 'G', zh: '物理', en: 'Physics' }
console.log(result.class);    // { code: 'G06', zh: '计算;推算;计数', en: 'Computing; Calculating; Counting' }
console.log(result.hierarchy);
// [
//   'G - 物理',
//   'G06 - 计算;推算;计数',
//   'G06F',
//   'G06F 3',
//   'G06F 3/06'
// ]

// 搜索关键词
const hits = explorer.search('半导体');
// [{ code: 'H10', level: 'class', zh: '半导体器件...', en: 'Semiconductor Devices' }]

// 列出所有部
const sections = explorer.listSections();

// 列出某部下的所有大类
const gClasses = explorer.listClasses('G');

// 批量查询
const batch = explorer.batchLookup(['G06F', 'H01L', 'A61K']);

CLI 命令行

# 解析分类号
npx ipc-explorer lookup G06F
npx ipc-explorer lookup "G06F 3/06"

# 搜索关键词
npx ipc-explorer search 半导体
npx ipc-explorer search computing

# 列出所有部
npx ipc-explorer list

# 列出 G 部下的大类
npx ipc-explorer list G

# 批量查询
npx ipc-explorer batch G06F,H01L,A61K

IPC 分类体系

IPC(International Patent Classification)是世界知识产权组织(WIPO)制定的国际专利分类体系,由 8 个部组成:

| 代码 | 中文名称 | English | |------|----------|---------| | A | 人类生活必需 | Human Necessities | | B | 作业;运输 | Performing Operations; Transporting | | C | 化学;冶金 | Chemistry; Metallurgy | | D | 纺织;造纸 | Textiles; Paper | | E | 固定建筑物 | Fixed Constructions | | F | 机械工程;照明;加热;武器;爆破 | Mechanical Engineering; Lighting; Heating; Weapons; Blasting | | G | 物理 | Physics | | H | 电学 | Electricity |

分类号层级结构:部(Section)大类(Class)小类(Subclass)大组(Main Group)小组(Sub Group)

例如 G06F 3/06:G(物理) → G06(计算) → G06F → 3(输入/输出) → 3/06(数字输入)

API

new IPCExplorer(dataPath?)

创建实例。可选传入自定义数据文件路径。

explorer.lookup(ipcCode: string): IPCResult

解析 IPC 分类号,返回各层级信息。

explorer.search(keyword: string): SearchResult[]

按关键词搜索匹配的 IPC 分类(支持中英文)。

explorer.listSections(): SearchResult[]

列出全部 8 个部。

explorer.listClasses(sectionCode: string): SearchResult[]

列出指定部下的所有大类。

explorer.batchLookup(codes: string[]): IPCResult[]

批量解析多个 IPC 号。

数据来源

分类数据基于 WIPO IPC 官方发布,覆盖所有部和主要大类。

相关项目

关于 CNIPA.AI

CNIPA.AI 是 AI 驱动的专利智能服务平台,提供专利撰写、检索、分析等一站式服务。

License

MIT © CNIPA.AI