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

aimind-cli

v1.0.1

Published

A powerful CLI tool for scaffolding code templates from compressed archives

Readme

AiMind CLI

A powerful CLI tool for scaffolding code templates from compressed archives. Extract templates, initialize git repositories, and install dependencies automatically.

Installation

Local Development

npm install
npm link

Global Installation (after publishing to npm)

npm install -g aimind-cli

Usage

List Available Templates

aimind list

Generate a New Project

# Interactive template selection
aimind generate

# Generate to specific directory
aimind generate --directory ./my-awesome-project

Template Structure

Templates are organized in folders within the templates/ directory. Each template folder contains:

templates/
├── my-template/
│   ├── metadata.json          # Template metadata and configuration
│   └── template.tar.gz        # Compressed project archive
└── another-template/
    ├── metadata.json
    └── template.tar.gz

metadata.json Format

{
  "name": "My Awesome Template",
  "description": "A modern Next.js template with TypeScript and Tailwind CSS",
  "author": "AiMind Team",
  "version": "1.0.0",
  "tags": ["nextjs", "typescript", "tailwindcss"]
}

Creating Templates

1. Create Your Project Structure

mkdir my-template-project
cd my-template-project
# Add your project files (package.json, src/, etc.)

2. Compress the Template

# From parent directory
tar -czf template.tar.gz my-template-project/

3. Create Template Folder Structure

mkdir -p templates/my-template
mv template.tar.gz templates/my-template/

4. Add Metadata

Create templates/my-template/metadata.json:

{
  "name": "My Template",
  "description": "Description of what this template provides",
  "author": "Your Name",
  "version": "1.0.0"
}

Features

  • 📦 Template Discovery: Automatically scans template folders and loads metadata
  • 🎯 Interactive Selection: Choose templates from a user-friendly list
  • 📁 Smart Extraction: Extracts complete project structures from tar.gz archives
  • 🔧 Git Initialization: Automatically initializes git repository
  • 📦 Dependency Installation: Runs npm install if package.json exists
  • ⚠️ Safety Checks: Confirms before overwriting existing directories
  • 🎨 Beautiful Output: Colorful, informative console output with progress indicators

Commands

| Command | Description | |---------|-------------| | aimind list | List all available templates with metadata | | aimind generate | Generate a new project from template (interactive) | | aimind generate --directory <dir> | Generate project to specific directory | | aimind --help | Show help information | | aimind --version | Show version information |

Example Workflow

# List available templates
$ aimind list

Available templates:

📦 AiMind Next.js Template
   A modern Next.js template with TypeScript, Tailwind CSS, and best practices
   Author: AiMind Team
   Version: 1.0.0
   Size: 150.56 KB

# Generate a new project
$ aimind generate
? Choose a template: AiMind Next.js Template - A modern Next.js template with TypeScript, Tailwind CSS, and best practices
? Enter the project directory: my-nextjs-app

✔ Template extracted successfully!

✨ Template "aimind-nt" extracted successfully!
📁 Location: D:\path\to\my-nextjs-app

🔧 Initializing git repository...
✅ Git repository initialized
📦 Installing dependencies...
✅ Dependencies installed

📖 Check the README.md file for setup instructions.

🚀 Project ready! You can now start developing.

Publishing to npm

Manual Publishing

  1. Prepare for publishing:

    npm run prepare-publish
  2. Publish:

    # Dry run first
    npm publish --dry-run
    
    # Publish for real
    npm publish

Automated Publishing with GitHub Actions

This project includes GitHub Actions for automatic publishing:

  1. Create npm token:

    • Go to npmjs.com → Account Settings → Access Tokens
    • Generate a new Automation token
    • Copy the token
  2. Add to GitHub Secrets:

    • Go to your GitHub repository → Settings → Secrets and variables → Actions
    • Add new repository secret: NPM_TOKEN
    • Paste your npm automation token
  3. Trigger Publishing:

    • Create and push a version tag: git tag v1.0.0 && git push origin v1.0.0
    • Or use manual workflow dispatch from Actions tab
  4. Workflow Features:

    • Runs on version tags (v*)
    • Manual trigger available
    • Runs tests before publishing
    • Creates release notes automatically

Install Globally

After publishing, users can install globally:

npm install -g aimind-cli

Or for development:

npm install
npm link

CI/CD

This project uses GitHub Actions for automated publishing:

  • Trigger: Version tags (v*) or manual workflow dispatch
  • Tests: Runs npm test before publishing
  • Publishing: Automatically publishes to npm registry
  • Release Notes: Creates GitHub release notes with version info

Setting up CI/CD

  1. Repository Setup:

    • Push this code to a GitHub repository
    • Update repository URLs in package.json
  2. npm Token:

    • Generate automation token from npm
    • Add NPM_TOKEN secret to GitHub repository
  3. Publishing:

    • Create and push version tags: git tag v1.0.0 && git push origin v1.0.0
    • Or manually trigger from Actions tab

The workflow file is located at .github/workflows/publish.yml.

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Add tests and documentation
  4. Submit a pull request

License

ISC