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

feasible

v4.0.0

Published

A question-answer based, configurable and automated development environment setup wizard that helps automate and standardize development environments across teams.

Downloads

941

Readme

Feasible

A question-answer based, configurable and automated development environment setup wizard that helps automate and standardize development environments across teams.

Node.js Version NPM version MIT License

Features

  • 🚀 Question-answer based configuration interface
  • ⚙️ Configure via JSON, JSON5, or YAML
  • 🌐 Remote configuration support
  • 🔄 Git hooks integration
  • 🎯 Conditional file generation
  • 📝 Variable processing and templating
  • 🔧 Customizable hooks system
  • 🔒 Isolated VM variable evaluation
  • 💾 State tracking with lock files
  • ⚡ Bash command output integration
  • 🔑 Base64, random value and command output support
  • 🔍 JSON query support

Installation

Global Installation

npm install -g feasible
# or
yarn global add feasible

Project Installation

npm install feasible --save-dev
# or
yarn add feasible --dev

You can also use it directly without installation:

npx feasible

Usage

Quick Start

  1. Add Feasible to your project:

    npm install feasible --save-dev
  2. Add a script to your package.json:

    {
      "scripts": {
        "env": "feasible"
      }
    }
  3. Create a configuration file (feasible.yml, feasible.json, or feasible.json5)

  4. Set up Git hooks for automation (using husky as an example):

    # Run on merge
    npx husky add .husky/post-merge "npm run env"
    
    # Run on checkout
    npx husky add .husky/post-checkout "npm run env"

Life Cycle

  1. Download config file from remote (if --url option is used)
  2. Prompt questions
  3. Resolve default variables
  4. Execute initial hooks (first setup/no lock file)
  5. Execute pre-hooks
  6. Clean up earlier produced files
  7. Render and save files
  8. Execute post-hooks
  9. Update lock file state

Command Line Options

Usage: feasible [options]

Options:
  -V, --version                output the version number
  -c, --config <FilePath>      Configuration file (default: "feasible.{json,json5,yml,yaml}")
  -u, --url <FileUrl>         Configuration file URL
  -f, --force                 Overwrite current setup and start over (default: false)
  -o, --overwrite <Variable>  Overwrite specific variables. This option can be used multiple times
  -a, --actions <Action>      Choose desired actions to execute (choices: "none", "initial", "pre", "post", "all", default: "all")
  -n, --noClean              Prevent cleaning up old output files (default: false)
  -i, --noInteraction        Execute in non-interactive mode. Lock file must exist (default: false)
  -q, --quiet                Execute in silent mode (default: false)
  -s, --separator <Separator> Specify the default separator for variables and values (default: "=")
  -h, --help                  display help for command

Examples

# Use a custom config file
feasible -c custom.json

# Use a remote config file
feasible -u https://example.com/config.yml

# Force reset environment
feasible --force

# Run specific actions only
feasible -a pre

# Overwrite specific variables
feasible -o "DB_HOST=localhost" -o "PORT=3000"

# Non-interactive mode
feasible --noInteraction

# Silent execution
feasible --quiet

Variable Processing Features

  • Base64 encoding support (type: "base64")
  • Random value generation (type: "random" or initial: "random()")
  • Bash command output parsing
  • JSON output parsing with query support
  • Isolated VM variable evaluation

File Processing Features

  • JSON, YAML and ENV file format support
  • Conditional file content generation
  • Automatic cleanup of previously generated files
  • Checksum validation for file integrity

Lock File Management

  • Automatic state tracking
  • Variable and file list backup
  • Automatic recovery on failure
  • Version controlled configuration

Requirements

  • Node.js >= 20

License

MIT