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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sumanjitsg/redistil

v0.1.4

Published

A minimalist Redis implementation in Elm, bringing the power of functional programming to Redis interactions.

Downloads

7

Readme

Redistil

A minimalist Redis re-implementation in Elm, bringing the power of functional programming to Redis interactions.

Why Redistil with Elm?

  • Functional Purity: Elm's guarantees of immutable data and no side effects promote predictable code, making it easier to reason about Redis interactions and maintain the database's state.
  • Type Safety: Elm's robust type system helps catch potential Redis protocol errors at compile time, preventing a range of runtime issues.
  • Elegant Command Handling: Elm functions naturally model Redis commands, enhancing code readability and composability.
  • Learning Experience: This project offers a unique way to understand the synergy between functional programming and database design principles.

Features

  • RESP Parsing: Accurate decoding and encoding of the Redis Serialization Protocol.
  • Command Processing: Handles Redis commands, currently supporting PING with more to come.
  • Error Handling: Handles RESP protocol errors returned by Redis (e.g., responses for unknown commands or invalid arguments).
  • Concurrent Connections: Supports managing multiple Redis connections simultaneously.

Quick Start

Prerequisites

  • Linux based environment
  • Node.js v20 or later
  • Redis CLI (sudo apt install redis-tools)

Install and Run

Install from npm:

npm install @sumanjitsg/redistil

Run server:

redistil-server

Connect to the server from another terminal and run supported commands (currently PING):

redis-cli -p 5379
127.0.0.1:5379> ping
PONG
127.0.0.1:5379> png hello
(error) ERR unknown command 'png', with args beginning with: 'hello'
127.0.0.1:5379> ping hello
"hello"
127.0.0.1:5379> ping hello redistil
(error) ERR wrong number of arguments for 'ping' command
127.0.0.1:5379> ping 'hello redistil'
"hello redistil"