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

@caoguo/maplibre-telecom

v0.0.8

Published

草果地图通信网组件包 - 基站覆盖 / 信号热力 / 网络健康 / 盲区识别

Readme

@caoguo/maplibre-telecom

草果地图通信网组件包 — 基站覆盖 / 信号热力 / 网络健康 / 盲区识别

npm version license

安装

npm install @caoguo/maplibre-telecom

Peer:maplibre-gl@^4.7.1

功能模块

| 模块 | 导出 | 说明 | |------|------|------| | 覆盖 | CellCoverage (coverageCore) | 基站覆盖地图 + 盲区识别 + 扇区可视化 | | 健康 | NetworkHealth | 网络健康度(在线率/告警/故障趋势) | | NLPG | telecomNlp | 通信查询意图识别 | | 样式 | telecomTheme / TELECOM_OPERATOR_COLORS / telecomLegend | 运营商/信号热力/品牌主题 | | 数据 | BaseStation / CoverageArea / SignalSample | 数据模型 |

快速开始

基站覆盖 + 盲区识别

import { CellCoverage } from '@caoguo/maplibre-telecom/coverage';

const coverage = new CellCoverage({ dataset });
const result = coverage.analyze();
console.log('总覆盖面积 km²', result.totalAreaKm2);
console.log('盲区数', result.deadZones.length);

网络健康度

import { NetworkHealth } from '@caoguo/maplibre-telecom/health';

const health = new NetworkHealth({ dataset });
const status = health.evaluate({ stationId: 'BS-0142' });
console.log('在线率', status.onlineRate);
console.log('近 7 天告警', status.alertsLast7d);

NLPG 查询意图识别

import { telecomNlp } from '@caoguo/maplibre-telecom/nlpg';

const intent = telecomNlp.recognize('汉口火车站附近 5G 信号怎么样');
console.log(intent.intent, intent.entities);

子入口

@caoguo/maplibre-telecom/coverage
@caoguo/maplibre-telecom/health
@caoguo/maplibre-telecom/nlpg
@caoguo/maplibre-telecom/style
@caoguo/maplibre-telecom/types

设计原则

  1. 算法纯函数:覆盖分析、盲区识别、重叠率均为纯函数。
  2. 可插拔:每个组件独立可用。
  3. 离线友好:所有计算在前端完成。

浏览器 / 环境要求

  • 现代浏览器(Chrome 90+)
  • 核心算法在 Node.js 可测(已含 11 个 vitest 用例)

许可

Apache-2.0