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

@minimact/swig

v1.0.1

Published

CLI tool for Minimact development - Create, transpile, and run Minimact applications

Readme

@minimact/swig

CLI tool for Minimact development - Create, transpile, and run Minimact applications.

Installation

npm install -g @minimact/swig
# or use npx
npx @minimact/swig <command>

Commands

swig install

Install Minimact Swig GUI to AppData.

swig install           # Install Swig GUI
swig install --force   # Force reinstall

The GUI is installed to:

  • Windows: %APPDATA%\minimact-swig
  • macOS: ~/Library/Application Support/minimact-swig
  • Linux: ~/.local/share/minimact-swig

swig launch

Launch the Minimact Swig GUI.

swig launch

swig new

Create a new Minimact project.

swig new <template> <name>

# Examples
swig new counter MyCounterApp
swig new mvc MyMvcApp --tailwind
swig new dashboard MyDashboard --hooks useState,useEffect

Templates:

  • counter - Simple counter app
  • todolist - Todo list app
  • dashboard - Dashboard with charts
  • mvc - MVC Bridge pattern
  • mvc-dashboard - MVC + Dashboard

Options:

  • --tailwind - Enable Tailwind CSS
  • --no-solution - Skip creating .sln file
  • --hooks <hooks> - Comma-separated list of hook examples

swig transpile

Transpile TSX files to C#.

swig transpile                         # Transpile entire project
swig transpile Pages/CounterPage.tsx   # Transpile specific file
swig transpile Pages/**/*.tsx          # Transpile multiple files

Options:

  • -p, --project <path> - Project root directory (default: current directory)

swig run

Run the ASP.NET Core application.

swig run              # Build and run
swig run --no-build   # Run without building
swig run --port 3000  # Run on custom port

Options:

  • --port <port> - Port number (default: 5000)
  • --no-build - Skip dotnet build

swig watch

Watch for TSX changes and auto-transpile.

swig watch

Options:

  • -p, --project <path> - Project root directory (default: current directory)

Workflow Examples

Quick Start

# Create new project
npx @minimact/swig new counter MyApp

# Navigate to project
cd MyApp

# Watch for changes and run
npx @minimact/swig watch   # Terminal 1
npx @minimact/swig run     # Terminal 2

Using the GUI

# Install Swig GUI (one-time)
npx @minimact/swig install

# Launch GUI
npx @minimact/swig launch

CI/CD

# In your CI/CD pipeline
npx @minimact/swig transpile  # Transpile TSX to C#
dotnet build                   # Build the project
dotnet test                    # Run tests

Architecture

@minimact/swig is a lightweight CLI wrapper around @minimact/swig-shared, which contains the core services:

  • ProjectManager - Create and manage projects
  • TranspilerService - Transpile TSX to C# using babel-plugin-minimact
  • FileWatcher - Watch files and trigger auto-transpilation

The same services power both the CLI and the Swig Electron GUI.

Requirements

  • Node.js 18+
  • .NET 9.0 SDK
  • Git (for swig install)

License

MIT