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

v1.0.0

Published

Deckboard app extention starter

Downloads

26

Readme

deckboard-kit

Build Status

🚀 Deckboard app extension starter kit

Features

Modern Development Experience

  • ESLint integration for code quality
  • Prettier for consistent code formatting
  • EditorConfig for cross-editor consistency
  • Pre-configured .gitignore

📦 Optimized Build Process

  • Minimal .asar file size
  • Automatic exclusion of dev dependencies
  • Removal of unnecessary build artifacts
  • Smart file filtering

📚 Comprehensive Documentation

  • Detailed extension development guide
  • Well-documented template with examples
  • Inline code comments and examples
  • Best practices and common patterns

Install

npm install -g deckboard-kit

Quick Start

Create Extension Project

Create a new extension in the Deckboard extensions folder (%USERPROFILE%\deckboard\extensions\):

deckboard-kit --create my-awesome-extension
cd my-awesome-extension
npm install

Development

Your new project includes:

  • index.js - Main extension code with examples
  • extension.yml - Extension metadata
  • EXTENSION_GUIDE.md - Comprehensive development documentation
  • Configuration files - ESLint, Prettier, EditorConfig

Development Commands

# Lint your code
npm run lint

# Format your code
npm run format

# Build the extension
npm run build

# Build and install directly to Deckboard
npm run install

Package Extension

When ready to share your extension:

deckboard-kit --build

This generates an optimized .asar file in the dist/ folder with:

  • Minimal file size
  • No dev dependencies
  • No test files or documentation
  • No build artifacts

Build Optimizations

The build process automatically excludes:

  • Development dependencies
  • Test files (.test.js, .spec.js)
  • Documentation files (except README.md)
  • IDE configuration folders
  • Git files and history
  • Cache directories
  • Source maps and build artifacts

Result: Significantly smaller extension packages for faster loading!

Extension Structure

your-extension/
├── extension.yml          # Extension metadata
├── index.js               # Main extension code
├── package.json           # Dependencies and scripts
├── README.md              # Project documentation
├── EXTENSION_GUIDE.md     # Development guide
├── .eslintrc.js           # Linting rules
├── .prettierrc.json       # Code formatting
├── .editorconfig          # Editor settings
└── .gitignore             # Git ignore rules

Extension Configuration (extension.yml)

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

Basic Extension Example

const { Extension, InputTypes, Platforms, Icons, log } = require('deckboard-kit');

class MyExtension extends Extension {
	constructor() {
		super();
		this.name = 'My Extension';
		this.platforms = [Platforms.windows, Platforms.mac, Platforms.linux];
		
		this.inputs = [
			{
				label: 'My Action',
				value: 'my-action',
				icon: 'rocket',
				fontIcon: Icons.Ionicons,
				color: '#8E44AD',
				input: [
					{
						label: 'Parameter',
						ref: 'param1',
						type: InputTypes.text
					}
				]
			}
		];
	}

	initExtension() {
		log.info('Extension initialized');
	}

	execute(action, args) {
		if (action === 'my-action') {
			log.info('Action executed with:', args.param1);
			// Your logic here
		}
	}
}

module.exports = new MyExtension();

Available APIs

Platforms

  • Platforms.windows - Windows OS
  • Platforms.mac - macOS
  • Platforms.linux - Linux

Input Methods

  • InputTypes.text - Text input field
  • InputTypes.select - Dropdown selection
  • InputTypes.number - Number input
  • InputTypes.file - File picker dialog
  • InputTypes.folder - Folder picker dialog

Icons

  • Icons.ionicons - Ionicons (default)
  • Icons.fontAwesomeSolid - Font Awesome Solid (prefix: 'fas')
  • Icons.fontAwesomeBrand - Font Awesome Brand (prefix: 'fab')

Logging

log.info('Info message');
log.warn('Warning message');
log.error('Error message');
log.debug('Debug message');

Documentation

Each created extension includes a comprehensive EXTENSION_GUIDE.md covering:

  • Extension structure and configuration
  • Input types and patterns
  • Async operations
  • Error handling
  • Platform-specific code
  • Common patterns
  • Troubleshooting

Submit Extension

To add your extension to the official extension list, follow the instructions here.

Example Extensions

Learn by example:

  • Power Control - System power operations
  • Steam Launcher - Launch Steam games
  • UWP Launcher - Launch Windows Store apps (included in this repo)

Best Practices

DO:

  • Use ESLint and Prettier for code quality
  • Include error handling in all actions
  • Use async/await for asynchronous operations
  • Log important events and errors
  • Test on all target platforms

DON'T:

  • Include unnecessary dependencies
  • Commit node_modules or dist folders
  • Use synchronous file operations for large files
  • Ignore platform differences

Troubleshooting

Extension not loading?

  • Check extension.yml format
  • Verify package.json main field points to index.js
  • Check Deckboard logs for errors

Large bundle size?

  • Run npm run build instead of manually packaging
  • Remove unused dependencies
  • Check .asar contents with asar extract

Actions not appearing?

  • Ensure this.inputs is properly configured
  • Verify platform compatibility
  • Check for JavaScript syntax errors

Requirements

  • Node.js 12 or higher
  • Deckboard app installed

Development

Setup

git clone https://github.com/rivafarabi/deckboard-kit.git
cd deckboard-kit
npm install

Scripts

npm run build          # Build TypeScript to JavaScript
npm run type-check     # Type check without building
npm run lint           # Check code quality
npm run lint:fix       # Fix linting issues
npm run format         # Format code with Prettier
npm run format:check   # Check formatting
npm run test           # Run tests
npm run test:watch     # Run tests in watch mode
npm run test:coverage  # Generate coverage report
npm run validate       # Run all checks (type-check, lint, format, test)

Code Quality

This project uses:

  • TypeScript for type safety
  • ESLint for code quality
  • Prettier for code formatting
  • EditorConfig for editor consistency
  • Jest for testing

All contributions are automatically checked via GitHub Actions CI.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Before submitting a PR:

  1. Run npm run validate to ensure all checks pass
  2. Add tests for new features
  3. Update documentation as needed

License

MIT

Author

Riva Farabi