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

@cs2dak/maps

v1.0.0

Published

English | 简体中文

Readme

@cs2dak/maps

English | 简体中文

Map calibration, world-to-radar transforms, compact nav topology, zone geometry, callout name mappings, default positions, and site-entry semantics. Route assets are retained as legacy spatial helpers; Coach semantics should prefer demo-derived facts plus site-entry-chokes.

Contents

| Directory / file | Purpose | |---|---| | src/routes.ts | Legacy MapRoute schema + routeIndex / furthestRouteIndex helpers | | src/route-assets.ts | Public active-duty route asset registry + getMapRoutes(mapName) for legacy spatial consumers | | src/geometry-assets.ts | Public active-duty compact nav registry + getMapNav(mapName) / getMapGeometry(mapName) | | src/zones.ts | MapZone polygon geometry + pointInPolygon / zoneAt | | src/callout-names.ts | CS2 callout → 中文名 mapping (171 entries, 7 maps) | | src/default-positions.ts | T/CT 开局长期驻留默认位;与 callout 倾向共同构成唯二人工战术地图资产 | | src/site-entry-chokes.ts | 人工核实的包点物理入口与 route-family 判定节点 | | src/index.ts | Public exports + MAP_CALIBRATIONS + worldToRadar | | map-routes/*.json | Legacy confirmed attack routes per map; do not expand as Coach truth source | | map-nav/*.nav.json | Compact AWPy-derived nav graph per active-duty map | | scripts/generate-routes.py | Refresh callout-review.md + viz/ radar images | | viz/ | Callout and route overlay radar images (generated, ignored) |

Refresh viz

uv run --with matplotlib --with pillow python packages/maps/scripts/generate-routes.py

地图标定、世界坐标到 radar 像素坐标转换、进攻动线、zone 几何与 callout 中文映射。第一版只放常用竞技地图,后续根据 fixtures 和实际 demo 校准。

战术空间语义

人工维护层是 callout-names.ts 的基础 A/B/Mid 倾向、callout-grid 的坐标近似、 default-positions.ts 的双方默认站位,以及 site-entry-chokes.ts 的包点入口语义。 classifyTacticalLocation() 只组合 callout 倾向与默认站位;争夺、推进、终点、转点 与回合阶段均由 @cs2dak/core 根据真实时间序列推导,maps 不维护静态 contested/advanced/terminal 角色。