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

deckboard-kit-cli

v1.1.3

Published

Deckboard Kit extension cli

Downloads

22

Readme

deckboard-kit-cli

Command-line interface for creating and building Deckboard extensions.

Features

  • 🎨 Create new extension projects with complete boilerplate
  • 📦 Build extensions with optimized .asar packaging

Installation

npm install -g deckboard-kit-cli

Commands

Create a New Extension

deckboard-kit --create <extension-name>

Creates a new extension project with:

  • Pre-configured package.json
  • Extension metadata (extension.yml)
  • Template code with examples
  • Development documentation
  • Git ignore rules

Interactive prompts for:

  • Extension name
  • Package name
  • Description
  • Author name

Build an Extension

deckboard-kit --build

Run from within an extension project folder. Creates an optimized .asar package in the dist/ folder.

Build optimizations:

  • Removes all devDependencies
  • Excludes test files and specs
  • Removes documentation (except README.md)
  • Strips IDE and Git files
  • Eliminates cache directories
  • Minimizes final bundle size

Build and Install

deckboard-kit --install

Builds the extension and copies it directly to your Deckboard extensions folder.

Project Structure

Generated projects include:

your-extension/
├── index.js               # Main extension code
├── extension.yml          # Metadata (name, version, etc.)
├── package.json           # Node.js configuration
├── README.md              # Project documentation
├── EXTENSION_GUIDE.md     # Development guide
├── .eslintrc.js          # ESLint configuration
├── .prettierrc.json      # Prettier configuration
├── .editorconfig         # Editor configuration
└── .gitignore            # Git ignore rules

Generated Scripts

Every extension project includes:

npm run build      # Build the extension to .asar
npm run install    # Build and install to Deckboard
npm run lint       # Run ESLint
npm run format     # Format code with Prettier

Extension Metadata (extension.yml)

name: Extension Display Name
package: extension-package-name
version: 1.0.0
description: What your extension does
author: Your Name
license: MIT
repository: "https://github.com/username/repo"

Build Process

The build process:

  1. ✅ Validates extension.yml
  2. 📁 Copies project to temporary folder
  3. 🗑️ Removes devDependencies
  4. 🧹 Cleans unnecessary files:
    • Test files (.test.js, .spec.js)
    • Documentation (except README.md)
    • IDE folders (.vscode, .idea)
    • Git files and history
    • Cache directories
    • Configuration files for development
  5. 📦 Creates optimized .asar package
  6. 🚀 Outputs to dist/ folder

Development Workflow

# 1. Create a new extension
deckboard-kit --create my-extension
cd my-extension
npm install

# 2. Develop your extension
# Edit index.js with your logic

# 3. Lint and format
npm run lint
npm run format

# 4. Build
npm run build

# 5. Test
# Copy dist/my-extension.asar to:
#   Windows: %USERPROFILE%\deckboard\extensions\
#   macOS: ~/deckboard/extensions/
#   Linux: ~/deckboard/extensions/
# Restart Deckboard

# Or use the install command:
npm run install

Requirements

  • Node.js 12 or higher
  • npm or yarn

Dependencies

  • asar - Archive creation
  • chalk - Terminal styling
  • fs-extra - Enhanced file operations
  • galactus - Dependency cleanup
  • inquirer - Interactive prompts
  • listr - Task runner with progress
  • yaml - YAML parsing

API

JavaScript API

const { buildExtension } = require('deckboard-kit-cli/build');
const { createProject } = require('deckboard-kit-cli/create');

// Build extension
await buildExtension(install = false);

// Create project
await createProject({
	extName: 'My Extension',
	packageName: 'my-extension',
	description: 'Extension description',
	author: 'Author Name'
});

Troubleshooting

Build fails with "extension.yml not found"

  • Ensure you're in an extension project directory
  • Check that extension.yml exists

Large bundle sizes

  • The CLI automatically optimizes builds
  • Check your dependencies - avoid large packages
  • Use asar list dist/your-extension.asar to inspect contents

Extension not loading in Deckboard

  • Verify the .asar file is in the correct directory
  • Check Deckboard logs for errors
  • Ensure extension.yml format is correct

Contributing

Contributions welcome! Submit issues and PRs to the GitHub repository.

License

MIT

Links