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

geofilter

v0.1.3

Published

Simple Geospatial filter language designed for readable urls

Readme

GeoFilter

Geofilter is a simple geospatial filter language that is designed to work well with web applications. It's primary purpose is to help with creating readable, cacheable urls for geospatial searches but also uses an internal JSON representation that can be easily translated to other spatial filter types (e.g. OGC Filter Format).

General Syntax

The general syntax of a geofilter is a forward-slash (/) delimited filter string. The use of the forward slash means that you get readable urls for free.

For the most part, geofilter expressions are defined across two sections, with the first section specifying the type of filter to invoke and the second being comma-delimited arguments that will be passed to the filter:

http://testgeo.org/search/FILTERTYPE/FILTERARGS

When multiple filters are provided, these filters are combined only the intersection of two filters is returned with the results. For instance, the following request would return the results of filter TYPE1(ARGS1) AND TYPE2(ARGS2).

http://testgeo.org/search/TYPE1/ARGS1/TYPE2/ARGS2

At this stage, no provision for an OR operator is being considered.

Filter Types

The following filter types are being investigated / implemented for the initial release of the GeoFilter library. While some of the filter types do not include a /P:PROPNAME specifier (geospatial queries usually), others will usually require this syntax.

The geofilter initialization step, does include provision for configuring the default properties that will be targeted for both spatial and also a non-spatial filter operation. The defaults used are the_geom for a spatial operation, and name for a non-spatial operation.

In all of the filter operations specified below, you can specify a leading /P:PROPNAME url segment to override the default targeted fields.

BBOX

A bounding box filter.

/BBOX/MINLAT,MINLON,MAXLAT,MAXLON

The four arguments are all numeric floating point values, and correspond to the latitude and longitude of the bounding box sw-corner and the latitude and longitude of the bounding box ne-corner respectively.

DWITHIN

A distance within filter. The distance within filter returns all items that fall within the specified geometry. The BUFFERDIST arg is used to specify the buffer that should be applied to the geometry search. A 0 buffer indicates the exact geometry will be used, a positive buffer indicates the geometry will be expanded, and a negative buffer indicates the buffer will be shrunk (where possible).

/DWITHIN/GEOMTYPE,BUFFERDIST,GEOMETRY

EQ - Equals

/EQ/VALUE

GT - Greater Than

/GT/VALUE

GTE - Greater Than or Equal To

/GTE/VALUE

LT - Less Than

/LT/VALUE

LTE - Less Than or Equal To

/LTE/VALUE

Limitations

The Geofilter format is not designed to provide constructs for describing complicated filter operations, and has not provision for providing OR rule (all filters are combined with an AND condition).