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

@embed-earth/cli-test

v0.1.11

Published

The EmbedEarth command-line interface for search, routing, spatial analysis, and local data.

Readme

@embed-earth/cli-test

The earth CLI is EmbedEarth from the terminal: search physical-world data, run spatial analysis, build routes, prepare maps, and work with local data.

npm install -g @embed-earth/cli-test

Modes

| Mode | Purpose | | --- | --- | | auto | Use verified local Stratum data first, then Cloud. | | offline | Use verified local Stratum data only. | | cloud | Use EmbedEarth Cloud; requires an API key. |

Pass a mode with --mode. It applies to Search, Compute, and Stratum query.

API key

Get a key at embed.earth, then set E2_API_KEY. Cloud mode and Street View image URLs require it.

$env:E2_API_KEY = "your_api_key"

Search

Search returns a GeoJSON FeatureCollection.

earth search restaurant --area "New York" --mode auto --limit 25 --json
earth search restaurant hospital --area-id 4915 --mode cloud --limit 100 --json

Compute

| Primitive | Purpose | | --- | --- | | nearest | Find closest selected features. | | distance | Measure distances between features. | | within | Find features inside a relation distance. | | count | Count features that meet a relation. | | density | Measure feature concentration. | | coverage | Measure reached area. | | gaps | Find uncovered places. | | cluster | Group nearby features. |

earth compute count restaurant --area-id 4915 --near park --distance 500 --mode cloud --json

Routing

Set ROUTE_URL only when you want a custom compatible routing service.

$env:ROUTE_URL = "https://your-router.example"
earth route to-feature restaurant --from "40.74,-73.99" --mode walking --json

to-feature resolves the coordinate to its area, narrows feature candidates through H3, and routes to the directly closest result. route run, matrix, isochrone, map-match, and request cover the other routing operations.

Maps

earth map sources restaurant hospital --json

This returns MapLibre-ready source descriptors; it does not render a terminal map.

Stratum

Stratum includes geographic lookup as well as local and server-backed data.

| Command | Purpose | | --- | --- | | earth stratum cache set/list/delete/clear | Manage verified local data. | | earth stratum features list/search/info | Look up built-in geographical features. | | earth stratum areas list/search/info | Look up built-in geographical areas. | | earth stratum data list/info | Inspect available published data. | | earth stratum download | Pull a stratum to cache or a file. | | earth stratum query | Query Cloud or verified local data. | | earth stratum upload | Add GeoJSON, CSV, or Parquet locally. |

earth stratum areas search "New York" --json
earth stratum download restaurant --area-id 4915 --out ./restaurants.parquet
earth stratum upload ./stores.geojson --db ./stores.db --feature stores --namespace my-app --json

The local upload above creates local:my-app:stores, which cannot collide with the built-in feature namespace.

Geographical Features

View geographical features.

Geographical Areas

View geographical areas.

Other EmbedEarth interfaces