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

terminal-wizard-apache

v1.0.1

Published

Interactive wizard for configuring Apache2 in the terminal

Readme

Terminal Wizard Apache

Version License

terminal-wizard-apache is a simple, interactive command-line tool to manage Apache2 configurations. With a user-friendly menu, it helps you create virtual hosts, toggle modules, and control your Apache server—all from the terminal.


Features

  • Create virtual hosts with custom domains and document roots.
  • Enable or disable virtual hosts with a single selection.
  • Edit or view virtual host files in your preferred editor.
  • Toggle Apache modules (e.g., rewrite, ssl).
  • Reload, restart, or stop the Apache server.
  • Check configuration syntax and list virtual hosts.
  • Set your preferred text editor.

Prerequisites

  • Apache2 installed on a Debian/Ubuntu-based system.
  • Sudo privileges to manage Apache configurations.

Installation

Install globally with npm:

sudo npm install -g terminal-wizard-apache

Note: Requires Node.js and npm. If you don’t have them, download and install from nodejs.org/en/download for your operating system.


Usage

Run the tool:

sudo terminal-wizard-apache

Important: Use sudo to allow changes to Apache files and services. Without it, you'll see a reminder to rerun with sudo.

Menu Options

  • Create new Virtual Host: Set up a new site.
  • Enable/Disable Virtual Host: Toggle sites on/off (enabled sites marked with *).
  • Edit Virtual Host: Edit a site’s config file.
  • Show Virtual Host: View a site’s config.
  • Manage Modules: Turn modules on/off (enabled ones marked with *).
  • Restart/Reload/Stop Apache: Control the server.
  • Check Configuration: Verify syntax and list sites.
  • Configure Text Editor: Pick your editor (saved for future use).
  • Exit: Close the tool.

Examples

Creating a Virtual Host

  1. Choose "Create new Virtual Host".
  2. Enter a domain (e.g., mysite.com).
  3. Add an alias if needed (e.g., www.mysite.com).
  4. Set the document root (e.g., /var/www/mysite).
  5. The tool creates and enables it automatically.

Toggling a Virtual Host

  1. Select "Enable/Disable Virtual Host".
  2. Pick a site (e.g., * mysite.com for enabled, othersite.com for disabled).
  3. Confirm to toggle its status.

Configuration

Your text editor preference (e.g., nano, vim) is saved to ~/.terminal-wizard-apache.json the first time you edit a file or via "Configure Text Editor".


Troubleshooting

  • Command not found? Ensure it’s installed globally (npm link if testing locally).
  • Permission errors? Always run with sudo.

Contributing

Found a bug or have an idea? Open an issue or submit a pull request at GitHub.


License

MIT License. Free to use and modify. See LICENSE for details.


Author