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

@chasten/strait-alpha

v0.1.1

Published

> Part of [Chasten](https://chasten.gitlab.io).

Downloads

6

Readme

strait-alpha

Part of Chasten.

strait-alpha is currently in alpha and makes no promises about API stability. It will eventually be superceded by strait (without the alpha), which will be a new project, a new NPMJS package, and a new git repository.

Installing / Getting started

To use strait-alpha you'll need the latest Node.js LTS version or newer and a Node.js package manager of your choosing. The examples all assume npm, but the alternatives work just as well.

Here's a snippet you can copy/paste into Bash to get a working example. You can safely run this in any empty directory.

npm init -y
npm install @chasten/strait-alpha

cat <<'EOF' >> example.js
const http = require('http');
const { requestListener } = require('@chasten/strait-alpha');
const handler = request => ({
  "body": JSON.stringify(request),
  "headers": { "content-type": "application/json" },
  "status": 200,
});
http.createServer(requestListener(handler)).listen(3000);
EOF

node example.js&
curl http://localhost:3000

You'll now have a new file called example.js, you'll have a running node process listening on port 3000, and you'll have sent a cURL request to see what your web service responds.

Developing

If you'd like to develop strait-alpha on your local machine you can get started pretty easily:

git clone https://gitlab.com/chasten/strait-alpha.git
cd strait-alpha/
npm ci

This will clone the repository from gitlab, change directory, and install the required development dependencies.

Deploying / Publishing

In order to publish new versions of strait-alpha you'll need public permissions for the organization on NPMJS and you'll need to be logged in with npm when you run the following command:

npm publish

This publishes a version (specified in the version field in package.json) to NPMJS.com.

Features

strait-alpha provides simple utility functions that allow you to develop Node.js web services using functional programming.

strait-alpha is:

  • intended to work with the somewhat low level Node.js functions such as http.createServer rather than to replace them
  • surprisingly heavy on concepts given its short code length - see https://chasten.gitlab.io
  • probably a departure from the Node.js web frameworks you know
  • designed so that you wire a bunch of simple parts together to create a functioning whole

strait-alpha is not:

  • concerned with routing (see chasten/whither for that)
  • concerned with effects and coeffects (see chasten/prithee for that)
  • a full-blown web framework (we have plenty already)
  • an out-of-the-box anything; you'll need to some work

Contributing

strait-alpha happily accepts contributions. Contributing to the project has a few requirements:

  • The rules outlined in CONTRIBUTING.md must be followed.
  • The ESLint style guide (@chasten/eslint-config) must be followed.

The latter should be set up in your editor/IDE of choice

Links

  • Project homepage: https://chasten.gitlab.io
  • Repository: https://gitlab.com/chasten/strait-alpha
  • Issue tracker: https://gitlab.com/chasten/strait-alpha/issues
    • In case of sensitive bugs like security vulnerabilities, please create a confidential issue on GitLab. We value your effort to improve the security and privacy of this project!
  • Related projects:

Licensing

The code in this project is licensed under MIT license.