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

create-fp-ts-lib

v2.1.0

Published

[![Test](https://github.com/no-day/create-fp-ts-lib/actions/workflows/build.yml/badge.svg)](https://github.com/no-day/create-fp-ts-lib/actions/workflows/build.yml) [![David](https://img.shields.io/david/no-day/create-fp-ts-lib) ](https://david-dm.org/no-d

Downloads

9

Readme

create-fp-ts-lib

Test David npm

Bootstrap libraries that follow common fp-ts coding, documentation and testing patterns.

Table of Contents

Introduction

fp-ts brings typed functional programming to TypeScript. The advantage over functional languages that compile to JavaScript is that it's much closer to an already existing and typed ecosystem.

This provides a nice out of the box compatibility. However, fp-ts is most powerful and composable if special purpose libraries follow some conventions. The fp-ts ecosystem is still relatively small. create-fp-ts-lib helps you to bootstrap libraries that follow common fp-ts coding, documentation and testing patterns.

This is the main goal of this project. However it may be useful to create any other TypeScript library as well. Currently nothing inherently fp-ts specific is generated, except from a peer dependency. But this may change in the future.

Getting started

Yarn

yarn global add create-fp-ts-lib
create-fp-ts-lib

If you want don't want to go through the questions, you can run create-fp-ts-lib -q -n my-lib to just specify a name and use the defaults for any other options.

You can also use this shortcut to always invoke an up to date version:

yarn create fp-ts-lib

NPM

npm install -g create-fp-ts-lib
create-fp-ts-lib

If you want don't want to go through the questions, you can run create-fp-ts-lib -q -n my-lib to just specify a name and use the defaults for any other options.

You can also use this shortcut to always invoke an up to date version:

npm init fp-ts-lib

Features

Code Quality

Testing

Documentation

Building

  • tsconfig.json settings that emits distributable .d.ts and .js files

Continuos Integration

Dev tasks

  • All task scripts postfixed with :watch run as vscode tasks
  • Note: You need to Ctrl+shift+P and Tasks: Manage Automatic Tasks in Folder and choose "Allow Automatic Tasks in folder"

Recipes

Commands

| Command | Action | | ------------ | ------------------------------------ | | yarn build | Build distribution files | | yarn test | Run test suite | | yarn docs | Generate Documentation | | yarn lint | Run linter | | yarn md | Enhance README with auto generations | | yarn spell | Run the code spell checker |

You can use npm as well. Check the generated package.json for available watch tasks.

Serve docs on GitHub pages

  • Push to your remote repo at GitHub (triggers CI)
  • In the GitHub UI of your repo, go to "Settings" > "GitHub Pages"
  • Select gh-pages branch as source, keep the "root" directory and "Save"

Publish to NPM

  • Only once:

    • In the GitHub UI add NPM_TOKEN from you NPM account as a secret ("Settings" / "Secrets")
  • On every release:

    • Increase the version in the package.json e.g. to "1.0.1"
    • Commit as v1.0.1
    • In the GitHub UI, go to the "releases" section of your repo.
    • Select "Create a new release"
    • Use v1.0.1 as "Tag version" and "Release title"
    • Click "Publish release"
    • Check the "Actions" tab to see if CI runs properly

Update existing repository

Currently the tool is optimized for creating new projects from scratch. However, we provide an --inPlace option, which is not very smart yet. It will just generate files as usual and possibly override existing files. You'll need to sort out changes manually. The CLI will make sure your git working directory is clean.

CLI Options

Run create-fp-ts-lib --help to see all options.

Note: Unless you provide the --noQuest flag, every CLI option will still appear in the user questionnaire. However equipped with the provided CLI options as default answers.

Future features

The following features are planned

  • Check dependencies with depcheck
  • Precommit hooks
  • Run CI locally in isolated environment
  • Readme badges (npm version, build status, dependencies)
  • Watch task for linting using eslint-watch
  • Maybe you have an idea... File an issue