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

@dsh-gis/dsh-gis-purejs

v0.1.0

Published

Pure-JS GIS provider: reads GeoJSON, NDJSON, WKT and shapefile families without GDAL

Readme

@dsh-gis/dsh-gis-purejs

永远可用的那个 GIS provider:不需要任何外部工具,所以没装 GDAL、QGIS 的机器上插件照样有用。 它也是沙箱拒绝执行任何程序时仍然工作的那个 —— 读取全部在进程内完成。

dsh-gis 的一部分:给 DeepSeek Harness 的 GIS 能力插件(读空间数据、画地图卡片、查询、CRS 换算、OGC 服务)。

安装

通常是随 bundle 一起装进来的:

dsh plugin --profile <profile> add @dsh-gis/dsh-gis

然后把 @dsh-gis/dsh-gis 加进 profile 的 dsh.profile.bundles 并重启 dsh。 单独挂这一行(而不是 bundle)时,才需要显式 add 这个包本身。

这一层做什么

  • 注册纯 JS handler(geojson、ndjson、wkt、shapefile)与 opener,不依赖 GDAL 或 QGIS。
  • 按扩展名认数据集:.geojson/.json、.ndjson/.geojsonl/.jsonl、.wkt、.shp;.fgb 与 .pmtiles 只做身份与字节路由,解析由浏览器按它们自带的索引完成。
  • shapefile 家族身份:.shp、.shx、.dbf、.prj、.cpg 每个在场成员的 size 与 mtime 都进 id —— 只改 .dbf 或 .prj 也会得到新 id,不会拿旧 id 读出不同数据。
  • where 只接受扁平的比较表达式加 AND/OR(引号里的关键字属于值本身),其它 SQL 拒绝并说明怎么写,而不是近似出一个错答案。
  • bbox 过滤只在数据集确知是 EPSG:4326 时执行;投影坐标或 CRS 未知时拒绝,避免拿度和米直接比较。
  • 数据集按 (id, encoding) 缓存且容量有界,超出后按 LRU 淘汰最旧一条;一个文件读一次,编辑后 id 变化,因此没有陈旧缓存路径。

许可

MIT(见 LICENSE 与 THIRD_PARTY_NOTICES.md)。