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

power-putty-server

v1.0.0

Published

Power Putty Express Server Layer

Downloads

2

Readme

power-putty-server

Power Putty component to power a robust and extensible express server with sane defaults.

Express.js is an incredibly powerful and light framework for the web. However, it can be difficult to remember all the little things that need to go into a powerful and rich server application. That's where this component enters -- bundled with all the best middlewares to get your server out the door fast.

Features

  • Sane defaults for an Express.js application that will be powering a modern web application
  • Setup cookies and sessions breezily with express-session, cookie-parser
  • Expose server state to the client in a standard way (for SSR) with express-state
  • Serve favicon and other static files with serve-favicon, serve-static
  • Sane defaults for parsing incoming requests with body-parser
  • Flash messages with connect-flash
  • Secure headers with helmet
  • Does not handle 404s, just pop your own middleware in the end ;)
  • TODO Support for common patterns of responding to requests?

Usage

import { getExpressApplication } from 'power-putty-server';

Config

Server can be configured programmatically, but also offers configuration via Node Config.

Most options are namespaced under power-putty-server, with the exception of standardized settings like port.

| Config Key | Description | | --- | --- | | port | Port to listen on | | power-putty-server.is_local | Whether we are running locally and need to account for that. Assumes Macs are always local. | | power-putty-server.cookies.secret | Secret token for cookies | | power-putty-server.sessions.prefix | Prefix to use for session keys (both in browser and persistence). Supports {NODE_ENV} macro | | power-putty-server.sessions.secret | Secret token for sessions | | power-putty-server.sessions.redis.host | Host of Redis server | | power-putty-server.sessions.redis.port | Port of Redis server | | power-putty-server.serving | File serving related config. Don't supply values to handle yourself | | power-putty-server.serving.favicon | Absolute path to favicon | | power-putty-server.serving.static | Absolute path to static folder. Serves at /static |