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

@fastkit/plugboy

v0.3.0

Published

🌐 English | [日本語](https://github.com/dadajam4/fastkit/blob/main/packages/plugboy/README-ja.md)

Downloads

204

Readme

@fastkit/plugboy

🌐 English | 日本語

A monorepo-compatible module bundler and project management tool. Provides a high-speed build system based on esbuild, tsup, and other tools.

Features

  • High-Speed Build: Ultra-fast bundling based on esbuild and tsup
  • Monorepo Support: Integrated management of multi-package projects
  • Full TypeScript Support: Automatic type definition generation and optimization
  • Plugin System: Extensible architecture
  • CSS Integration: Sass, Vanilla Extract, and CSS optimization support
  • Development Efficiency: Fast development cycle with stub functionality
  • Automation: Automatic generation of package.json and exports

Installation

npm install @fastkit/plugboy
# or
pnpm add @fastkit/plugboy

Basic Usage

CLI Commands

# Build entire project
plugboy build

# Generate development stub (fast development)
plugboy stub

# Sync package.json settings
plugboy json

# Delete distribution
plugboy clean

# Generate new workspace
plugboy generate [workspaceName]
# or
plugboy gen [workspaceName]

Workspace Configuration

plugboy.workspace.ts:

import { defineWorkspaceConfig } from '@fastkit/plugboy';

export default defineWorkspaceConfig({
  entries: {
    '.': './src/index.ts',
    './utils': './src/utils.ts'
  },
  plugins: [
    // Plugin configuration
  ],
  dts: {
    // TypeScript type definition configuration
  },
  optimizeCSS: true
});

Project Configuration

plugboy.project.ts:

import { defineProjectConfig } from '@fastkit/plugboy';

export default defineProjectConfig({
  workspacesDir: 'packages',
  peerDependencies: {
    'vue': '^3.4.0'
  },
  scripts: [
    {
      name: 'TypeScript',
      scripts: {
        build: 'plugboy build',
        stub: 'plugboy stub',
        typecheck: 'tsc --noEmit'
      }
    }
  ]
});

API

defineWorkspaceConfig

Entry Point Configuration

export default defineWorkspaceConfig({
  entries: {
    '.': './src/index.ts',              // Main entry
    './components': './src/components.ts', // Sub entry
    './styles': {                        // Entry with CSS
      src: './src/styles.ts',
      css: true
    }
  }
});

Plugin Configuration

import { createSassPlugin } from '@fastkit/plugboy-sass-plugin';
import { createVueJSXPlugin } from '@fastkit/plugboy-vue-jsx-plugin';

export default defineWorkspaceConfig({
  plugins: [
    createSassPlugin(),
    createVueJSXPlugin()
  ]
});

TypeScript Type Definition Configuration

export default defineWorkspaceConfig({
  dts: {
    preserveType: [
      // Custom type preservation configuration
    ],
    normalizers: [
      // Type definition normalization functions
      (dts) => dts.replace(/unwanted-pattern/g, '')
    ]
  }
});

defineProjectConfig

Workspace Management

export default defineProjectConfig({
  workspacesDir: 'packages',
  peerDependencies: {
    'react': '^18.0.0',
    'vue': '^3.4.0'
  }
});

Script Templates

export default defineProjectConfig({
  scripts: [
    {
      name: 'TypeScript',
      scripts: {
        build: 'plugboy build',
        clean: 'rm -rf dist',
        typecheck: 'tsc --noEmit'
      }
    },
    {
      name: 'TypeScript with CSS',
      scripts: {
        build: 'plugboy build',
        lint: 'eslint . && stylelint "**/*.css"'
      }
    }
  ]
});

Plugin System

Built-in Plugins

  • @fastkit/plugboy-sass-plugin: Sass/SCSS support
  • @fastkit/plugboy-vanilla-extract-plugin: Vanilla Extract support
  • @fastkit/plugboy-vue-jsx-plugin: Vue JSX support

Custom Plugins

import type { Plugin } from '@fastkit/plugboy';

const customPlugin = (): Plugin => ({
  name: 'custom-plugin',
  setup(workspace) {
    // Plugin initialization
    workspace.hooks.buildStart?.tap('custom-plugin', () => {
      console.log('Build started');
    });
  }
});

export default defineWorkspaceConfig({
  plugins: [customPlugin()]
});

Development Workflow

Fast Development Cycle

# 1. Initial build
pnpm build

# 2. Development mode (fast)
pnpm stub

# 3. Start development server
pnpm dev

Monorepo Management

# Create new package
plugboy gen my-new-package

# Build entire project
plugboy build

# Specific package only
cd packages/my-package
plugboy build

Configuration Examples

CSS Integration Project

// plugboy.workspace.ts
import { defineWorkspaceConfig } from '@fastkit/plugboy';
import { createSassPlugin } from '@fastkit/plugboy-sass-plugin';

export default defineWorkspaceConfig({
  entries: {
    '.': {
      src: './src/index.ts',
      css: true
    }
  },
  plugins: [
    createSassPlugin()
  ],
  optimizeCSS: {
    combineRules: {
      rules: [':root']
    }
  }
});

Vue.js Project

// plugboy.workspace.ts
import { defineWorkspaceConfig } from '@fastkit/plugboy';
import { createVueJSXPlugin } from '@fastkit/plugboy-vue-jsx-plugin';
import { createSassPlugin } from '@fastkit/plugboy-sass-plugin';

export default defineWorkspaceConfig({
  entries: {
    '.': './src/index.ts'
  },
  plugins: [
    createVueJSXPlugin(),
    createSassPlugin()
  ],
  external: ['vue']
});

Hook System

Build Hooks

export default defineWorkspaceConfig({
  hooks: {
    buildStart: () => {
      console.log('Build starting...');
    },
    buildEnd: (result) => {
      console.log('Build completed:', result);
    },
    buildError: (error) => {
      console.error('Build failed:', error);
    }
  }
});

Type Definition Management

Automatic Type Definition Generation

export default defineWorkspaceConfig({
  dts: {
    preserveType: [
      // Preserve external package types
      'external-package-types'
    ],
    normalizers: [
      // Normalization and optimization of type definitions
      (dts) => dts
        .replace(/unnecessary-types/g, '')
        .replace(/import\("complex-path"\)/g, 'SimpleType')
    ]
  }
});

Performance Optimization

Build Optimization

  • Parallel Processing: Simultaneous building of multiple entries
  • Incremental: Rebuild only changed parts
  • Cache: Utilize cached build results
  • Tree Shaking: Remove unused code

Development Optimization

  • Stub Mode: Symbolic links to actual files
  • Hot Reload: Immediate reflection of file changes
  • TypeScript: Fast type checking

Dependencies

Main Dependencies

  • esbuild: High-speed JavaScript builder
  • tsup: TypeScript build tool
  • cac: CLI creation library
  • glob: File matching
  • cssnano: CSS optimization

License

MIT