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

chinakit-cli

v1.0.0

Published

Official CLI & MCP client for ChinaKit (chinakit.io): work permit points, customs medication checker, expat IIT calculator, 240h TWOV transit, Hague Apostille & CAAC powerbank limits.

Readme

chinakit-cli

Official zero-dependency terminal CLI and Model Context Protocol (MCP) client for ChinaKit (chinakit.io). Connects directly to the stateless production MCP server (https://chinakit.io/api/mcp) covering China work-permit points, border medication legality, expatriate IIT taxation, 240h TWOV transit rules, Hague Apostille workflows, CAAC powerbank compliance, and 331 verified city/attraction guides.

Quick CLI Commands

# List all 8 read-only MCP tools
npx -y [email protected] tools

# Run a live CAAC cabin watt-hour & Alipay ¥200 split simulation
npx -y [email protected] demo

# Invoke any tool with JSON arguments
npx -y [email protected] call check_china_customs_medication_legality '{"medicationQuery":"Adderall"}'

Available MCP Tools (8 Read-Only)

| Tool Name | Purpose & Deterministic Engine | Key Parameters | Safety | | :--- | :--- | :--- | :---: | | calculate_china_work_permit_points | Score an applicant under the China SAFIEA work permit rubric (Category A >=85, Category B >=60, Category C <60), detect 6x local average wage or | age, education, topUniversityGrad, workExperienceYears* (+9 more) | readOnly | | check_china_customs_medication_legality | Screen personal prescription drugs and over-the-counter remedies by English brand, generic ingredient, or Chinese alias against China Customs Cla | medicationQuery, categoryFilter | readOnly | | calculate_china_expat_iit_and_bonus | Simulate annual expatriate individual income tax liability in Mainland China comparing Seven Tax-Exempt Allowances (housing, schooling, home leav | monthlyGrossSalary, annualBonusRMB, bonusTaxTreatment, citySocialSecurityScheme (+8 more) | readOnly | | validate_china_transit_and_visa_free_entry | Inspect unilateral 15/30-day visa-waiver eligibility or 54-nation Transit Without Visa (TWOV) admissibility, verify A-B-C third-region flight com | nationality, originCountry, transitPortCode, destinationCountry* (+5 more) | readOnly | | query_china_document_apostille_steps | Retrieve country-specific legalization workflows for background checks, diplomas, TEFL, and marriage certificates used in China visa filings, fla | countryIso, docTypeId | readOnly | | recommend_china_essential_apps_and_payment | Search curated step-by-step setup guides for Alipay, WeChat Pay, Didi, 12306 rail booking, Amap navigation, and eSIM apps using foreign passports | appSlugOrQuery, category | readOnly | | lookup_china_destination_foreigner_guide | Query verified attraction entry requirements across China cities (Beijing, Shanghai, Chengdu, Macau, etc.), returning turnstile passport scanning | cityOrAttraction, limit | readOnly | | calculate_caac_powerbank_and_alipay_split | Compute lithium battery watt-hours (mAh * V / 1000) against Civil Aviation Administration of China 100Wh/160Wh carry-on prohibitions AND split an | capacityMah, voltageV, paymentAmountRmb | readOnly |

Live Production Sample Output

{
  "powerbank": {
    "capacityMah": 20000,
    "voltageV": 3.7,
    "wattHours": 74,
    "caacStatus": "ALLOWED_UNRESTRICTED",
    "maxAllowedUnits": 2,
    "checkedBaggageAllowed": false,
    "caacRule": "Carry-on cabin luggage allowed without airline pre-approval (≤ 100Wh). Checked baggage is strictly forbidden; mAh/Wh label must remain clearly legible.",
    "toolUrl": "https://chinakit.io/tools/powerbank-calculator"
  },
  "alipayFeeOptimizer": {
    "totalAmountRmb": 480,
    "feeExemptionThresholdRmb": 200,
    "singleTransaction3PctFeeRmb": 14.4,
    "recommendedSplitTransactionsRmb": [
      200,
      200,
      80
    ],
    "splitTransactionFeeRmb": 0,
    "netFeeSavedRmb": 14.4,
    "toolUrl": "https://chinakit.io/tools/fee-splitter"
  }
}

Connect in Claude Desktop / Cursor / Windsurf

{
  "mcpServers": {
    "chinakit": {
      "type": "streamable-http",
      "url": "https://chinakit.io/api/mcp"
    }
  }
}

Statutory Reference Specifications

Work Permit Category A/B/C City Wage Benchmarks (SAFIEA Matrix)

| City Tier | Representative Cities | Monthly Avg Wage (RMB) | 6x Direct Category A Annual Threshold (RMB) | | :--- | :--- | :---: | :---: | | Tier 1 Mega (tier1_super) | Beijing, Shanghai | ¥12,183 | ¥877,200 / yr (¥73,100 / mo) | | Tier 1 (tier1) | Shenzhen, Guangzhou, Hangzhou, Suzhou | ¥11,000 | ¥792,000 / yr (¥66,000 / mo) | | Tier 2 (tier2) | Chengdu, Wuhan, Xi'an, Qingdao | ¥8,500 | ¥612,000 / yr (¥51,000 / mo) | | Other Regions (other) | Haikou, Kunming, Dalian, Ningbo | ¥6,500 | ¥468,000 / yr (¥39,000 / mo) |

CAAC Aviation Lithium Battery & Alipay Foreign Card Thresholds

| Compliance Rule | Statutory Formula / Threshold | Operational Rule for Travelers | | :--- | :---: | :--- | | CAAC Unrestricted Carry-On | Wh = (mAh * V) / 1000 <= 100 Wh | Permitted in cabin baggage without pre-approval; checked luggage strictly prohibited | | CAAC Airline-Approved Carry-On | 100 Wh < Wh <= 160 Wh | Requires airline check-in approval; maximum 2 spare power banks per passenger | | CAAC Cabin & Train Ban | > 160 Wh or unmarked capacity | Confiscated at airport security; strictly banned from aircraft cabin and cargo | | Alipay / WeChat Foreign Card | <= ¥200 RMB per transaction | 0% international surcharge (3% fee applies automatically above ¥200 single swipe) |

Controlled Medication & Hague Apostille Quick Reference

| Subject | Critical Compliance Threshold | Source Engine / Statutory Trap | | :--- | :--- | :--- | | Class I Psychotropic (Adderall / Ritalin) | Maximum 7-day personal supply | Must declare at Customs Red Channel with stamped English medical diagnosis | | Class II Psychotropic (Xanax / Zolpidem) | Maximum 7-day personal supply | Original pharmacy bottle with matching passport name required | | US FBI Identity History Summary | Federal Apostille (~25 days) | Trap: State-level Apostille is rejected by Chinese PSB; requires U.S. Dept. of State | | Unilateral 15/30d vs 240h TWOV | FRA / DEU / KOR / AUS vs USA / GBR | Unilateral waiver nations bypass A-B-C transit checks; TWOV strictly requires A != C |

Official Web Tools & Deep Links

Source & License

  • GitHub MCP Repository: https://github.com/AbigailDavised/chinakit-mcp
  • License: MIT © ChinaKit