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

openporter

v1.1.3

Published

CLI tool to deploy static websites to GitHub Pages using GitHub Actions

Readme

OpenPorter CLI

CLI tool to deploy static websites to GitHub Pages using GitHub Actions.

Installation

# Using npm
npm install -g openporter

# Using yarn
yarn global add openporter

# Using pnpm
pnpm add -g openporter

Quick Start

# Initialize OpenPorter in your project
openporter init

# Deploy to GitHub Pages
openporter deploy

# Detect framework
openporter detect

# View configuration
openporter config

Commands

openporter init

Initialize OpenPorter in your project by generating a GitHub Actions workflow.

openporter init [options]

Options:

  • -y, --yes - Skip prompts and use defaults

Example:

openporter init
# or
openporter init -y

This will:

  1. Detect your framework automatically
  2. Create .github/workflows/openporter-deploy.yml
  3. Create .openporter.json configuration file

openporter deploy

Deploy your project to GitHub Pages.

openporter deploy [options]

Options:

  • -m, --message <message> - Commit message (default: "Deploy to GitHub Pages")
  • --no-build - Skip build step

Example:

openporter deploy
openporter deploy -m "Deploy new features"
openporter deploy --no-build

openporter detect

Detect the framework used in your project.

openporter detect

Example output:

🔍 Detecting framework...

✓ Framework detected!

📋 Detection Results:
  Framework: React + Vite
  Confidence: 95.0%
  Build Command: npm run build
  Output Directory: dist
  Package Manager: npm
  Node Version: 20.x

openporter config

View or update OpenPorter configuration.

# View configuration
openporter config

# Set configuration value
openporter config -s key=value

Example:

openporter config
openporter config -s branch=main
openporter config -s nodeVersion=20

Configuration

OpenPorter uses .openporter.json in your project root:

{
  "repo": "username/repo",
  "branch": "main",
  "framework": "react",
  "nodeVersion": "20",
  "packageManager": "npm"
}

Supported Frameworks

  • React + Vite
  • Vue + Vite
  • Svelte + Vite
  • Astro
  • Next.js Static Export
  • Nuxt Static
  • Angular
  • Hugo
  • Jekyll
  • Docusaurus
  • MkDocs
  • HTML/CSS/JS

How It Works

  1. Initialize: Run openporter init to generate GitHub Actions workflow
  2. Commit: Push the workflow file to your repository
  3. Enable GitHub Pages: Go to repository Settings → Pages → Select "GitHub Actions"
  4. Deploy: Run openporter deploy or just push to your branch
  5. Automatic Deployments: Every push triggers a new deployment

GitHub Actions Workflow

The generated workflow:

  • Triggers on push to your configured branch
  • Sets up Node.js with your specified version
  • Installs dependencies using your package manager
  • Builds your project
  • Deploys to GitHub Pages

Requirements

  • Node.js >= 18.0.0
  • Git
  • GitHub account
  • Repository with GitHub Pages enabled

Publishing to npm

Prerequisites

  1. Create an npm account at https://www.npmjs.com/
  2. Login to npm: npm login

Publishing

# Build the CLI
cd packages/cli
npm run build

# Publish to npm
npm publish

PyPI Publishing

For PyPI, you'll need to create a Python wrapper or use a tool like pypa/build. This is optional and can be done separately.

Development

# Clone the repository
git clone https://github.com/LegedsDaD/openporter.git
cd openporter

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run CLI in development mode
cd packages/cli
pnpm dev

# Or link globally for testing
pnpm link

License

MIT License - see LICENSE file for details.

Support

Contributing

Contributions are welcome! Please read our Contributing Guide for details.