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

@ledokoz/forgekit

v0.1.1

Published

Lightweight Node.js wrapper for ForgeKit CLI - Build .mox applications for Ledokoz OS

Readme

@ledokoz/forgekit

Node.js wrapper for ForgeKit - A modern Rust framework for building .mox applications for Ledokoz OS.

npm version License: MIT Build Status

🚀 Features

  • Full CLI Compatibility: Complete wrapper for all ForgeKit CLI commands
  • Programmatic API: JavaScript/Node.js API for integrating ForgeKit into your tools
  • Cross-Platform: Works on Windows, macOS, and Linux
  • Easy Installation: Simple npm install with automatic ForgeKit CLI detection
  • TypeScript Support: Full TypeScript definitions included

📦 Installation

First, install the npm package:

npm install @ledokoz/forgekit

You'll also need the ForgeKit CLI installed:

# Install ForgeKit CLI via Cargo
cargo install forgekit

🛠 Usage

CLI Usage

After installation, you can use forgekit commands directly:

# Create a new project
npx forgekit new myapp

# Build a project
npx forgekit build

# Package a project
npx forgekit package

# Add a dependency
npx forgekit add serde --version "1.0"

Programmatic Usage

const ForgeKit = require('@ledokoz/forgekit');

// Create a ForgeKit instance
const forgekit = new ForgeKit();

// Create a new project
await forgekit.new('myapp', { template: 'gui' });

// Build the project
await forgekit.build({ path: './myapp' });

// Add a dependency
await forgekit.add('serde', { version: '1.0', path: './myapp' });

// Search for packages
const packages = await forgekit.search('http');
console.log('Found packages:', packages);

// List available templates
const templates = await forgekit.templates();
console.log('Available templates:', templates);

TypeScript Usage

import ForgeKit from '@ledokoz/forgekit';

const forgekit = new ForgeKit();

// All methods return promises
await forgekit.new('my-typescript-app', { template: 'cli' });

📚 API Reference

Constructor

const forgekit = new ForgeKit({
  cwd: process.cwd(),           // Working directory
  forgekitPath: 'forgekit'      // Path to forgekit binary
});

Methods

All methods return Promise<{ stdout: string, stderr: string, code: number }>:

  • new(name, options) - Create a new project
  • build(options) - Build the project
  • package(options) - Package the project
  • buildPackage(options) - Build and package
  • run(options) - Run the project
  • add(packageName, options) - Add dependency
  • remove(packageName, options) - Remove dependency
  • update(options) - Update dependencies
  • search(query) - Search packages (returns array of strings)
  • templates() - List templates (returns array of strings)

Options

Common options for most methods:

  • path - Project directory path
  • template - Template type (new command)
  • version - Package version (add command)

🎯 Commands

| Command | Description | Example | |---------|-------------|---------| | new <name> | Create new project | forgekit new myapp | | build | Build project | forgekit build | | package | Create .mox package | forgekit package | | build-package | Build and package | forgekit build-package | | run | Run project locally | forgekit run | | add <package> | Add dependency | forgekit add serde | | remove <package> | Remove dependency | forgekit remove serde | | update | Update dependencies | forgekit update | | search <query> | Search packages | forgekit search http | | templates | List templates | forgekit templates |

⚙️ Configuration

Environment Variables

  • FORGEKIT_PATH - Path to the forgekit binary (if not in PATH)
  • FORGEKIT_VERBOSE - Enable verbose output

Custom Binary Path

const forgekit = new ForgeKit({
  forgekitPath: '/custom/path/to/forgekit'
});

🤝 Requirements

  • Node.js >= 14.0.0
  • ForgeKit CLI installed (via cargo install forgekit)
  • Rust toolchain for building projects

📖 Documentation

For detailed documentation about ForgeKit and .mox applications, visit:

🐛 Troubleshooting

"ForgeKit CLI not found" Error

Make sure ForgeKit CLI is installed:

cargo install forgekit

Or set the path manually:

export FORGEKIT_PATH=/path/to/forgekit

Permission Issues

On Unix systems, you might need to make the binary executable:

chmod +x $(which forgekit)

🤝 Contributing

Contributions are welcome! Please see the contributing guidelines.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links