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

magicspace

v0.4.2

Published

[![MIT License](https://img.shields.io/badge/license-MIT-999999?style=flat-square)](./LICENSE) [![Discord](https://img.shields.io/badge/chat-discord-5662f6?style=flat-square)](https://discord.gg/vanVrDwSkS)

Readme

MIT License Discord

Magicspace

Toolkit for living boilerplate.

Features

  • Composable boilerplate mechanism.
  • Git-powered conflict resolution for boilerplate update.
  • Wrap common template tools (like create-vite) as living boilerplates with @magicspace/boilerplate-command.

Quick Start with Scaffolding Tools like Vite

  1. Install magicspace and the boilerplate-command package globally:

    npm install --global magicspace @magicspace/boilerplate-command
  2. Initialize a Git repository and create a magicspace configuration:

    git init my-vite-app && cd my-vite-app
    
    magicspace create @magicspace/boilerplate-command

    Select an example and update the generated .magicspace/boilerplate.json if needed. When the boilerplate exports typed options, magicspace also generates .magicspace/boilerplate.schema.json and wires $schema automatically. For vite, the config would look like this:

    {
      "$schema": "boilerplate.schema.json",
      "boilerplate": "@magicspace/boilerplate-command",
      "options": {
        "commands": ["npx create-vite ."]
      }
    }
  3. Initialize magicspace:

    magicspace init
  4. Review generated changes and commit to complete the merge.

Now whenever Vite releases a template update, simply run magicspace update to get a clean, conflict-aware diff merged into your project.

magicspace update

Installation

npm install --global magicspace

Usage

Initialize

  1. Initialize Git repository.

  2. Create magicspace configuration file:

    magicspace create <boilerplate>

    If the boilerplate exports typed options, magicspace generates .magicspace/boilerplate.schema.json by default and adds $schema to .magicspace/boilerplate.json.

    For example, with a custom boilerplate package:

    npm install --global @mufan/code-boilerplates
    magicspace create @mufan/code-boilerplates/typescript

    Or with @magicspace/boilerplate-command to wrap any scaffolding CLI:

    npm install --global @magicspace/boilerplate-command
    magicspace create @magicspace/boilerplate-command

    Review the generated .magicspace/boilerplate.json file and make relevant changes.

  3. Initialize magicspace:

    magicspace init

    Magicspace will generate an initial patch and merge it into the current branch without committing changes.

  4. Review generated changes, resolve conflicts if any (probably none as we are initializing an empty project).

  5. Commit changes to complete the merge process initiated by magicspace; otherwise use git merge --abort to abort the initialization.

    You would probably want to abort the merge process and initialize magicspace again if you need to make other changes to the configuration file during this process.

Update

  1. After updating the boilerplate package or making changes to the magicspace configuration file:

    magicspace update

    Magicspace will generate an update patch and merge it into the current branch without committing changes.

  2. Review generated changes and resolve conflicts if any.

  3. Commit changes to complete the merge process initiated by magicspace; otherwise use git merge --abort to abort the update.

Update Schema

If the boilerplate package changes its option shape or you want to refresh .magicspace/boilerplate.schema.json, run:

magicspace update-schema [projectDir]

This updates the generated JSON schema for single-boilerplate configs without changing project files.

Boilerplate authoring

Examples

License

MIT License.