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 🙏

© 2025 – Pkg Stats / Ryan Hefner

spredis

v0.2.7

Published

JSON Document based search engine, built on redis. (pre-alpha)

Readme

Spredis (alpha)

source: https://github.com/salsorrentino/spredis

What is Spredis? Spredis is Redis based document index fetauring:

  1. Multi-threaded searching
  2. Real-time indexing
  3. Optimized multi-column sorting
  4. Geospatial indexing
  5. Reverse geo searches
  6. JSON queries
  7. Localized text indexing (including stop-words and stemming)
  8. Prefix/suffix searching
  9. JSON document store
  10. Date and Number indexing
  11. Literal (text) and Date/Number range facet support
  12. Embedded (Node), HTTP or TCP server modes
  13. Compound index support (pre-intersected literal and boolean fields)
  14. JSON document store (what you put in is what you get out)
  15. Document expiration
  16. Derived text fields (built from list of literal fields)
  17. Derived boolean fields

What Spredis isn't Spredis is not a relational/document database, and is not intended as replacement for one. Spredis works best when coupled with your current database engine (relational or document).

Why Spredis? Spredis was designed as an open-source alternative to products like Amazon's CloudSearch service and to overcome some of their drawbacks. Spredis indexing is real-time. Documents are available for searching immediately after the indexing request. Also, since spredis stores your raw JSON document, there is no need for heavy document transformation when you get the document back. You can store as many un-indexed fields as like, Spredis will just ignore them.

What do I need to run Spredis? Spredis installations consist of 2 components:

  1. A Spredis enabled Redis server (v4.x)
  2. A Node application running the Spredis module.

The heart of Spredis is a Redis module written in C. It's responsible for taking in documents an indexing them according to a namespace configuration (JSON). Sitting in front of the Redis server is a Node application responsible for parsing queries and translating requests into Redis/Spredis commands. This allows you to scale components independently and ensure maximum throughput. Documentation on setup coming soon.

How fast is it?

Really fast. I need to work on some benchmarking, but in my current project I am frequently running into sub-millisecond response times (excluding network latency between client and server)

Example configs and queries coming soon.

What's being worked on now

Here's the list of items that need to be completed to get out of alpha phase

  • [x] Prefix/Suffix searching for text and literal fields
  • [x] Smarter indexing of documents (only indexing fields that have changed)
  • [ ] Automatic re-indexing after namespace config change
  • [x] Implmentation of facets for non-literal (rank based) fields
  • [ ] Thorough examples and documentation
  • [x] Finish TCP client (spredis-client)
  • [x] Finish HTTP client
  • [x] Finish HTTP server mode
  • [x] Multi-clause queries ('or clause' support)
  • [ ] Support for Redis Sentinel