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

@finogeek/openskills

v0.5.0

Published

OpenSkill Runtime TypeScript bindings (napi-rs)

Readme

OpenSkills TypeScript Bindings

TypeScript/Node.js bindings for OpenSkills Runtime - Claude Skills compatible runtime with WASM sandbox.

Installation

npm install @finogeek/openskills

Usage

Basic Runtime API

import { OpenSkillRuntime } from '@finogeek/openskills';

// Create runtime (discovers from standard locations)
const runtime = new OpenSkillRuntime();

// Or specify project root
const runtime = OpenSkillRuntime.withProjectRoot('/path/to/project');

// Or load from specific directory
const runtime = OpenSkillRuntime.fromDirectory('/path/to/skills');

// Discover skills from standard locations
const skills = runtime.discoverSkills();
console.log(`Found ${skills.length} skills`);

// List skills (progressive disclosure)
for (const skill of runtime.listSkills()) {
  console.log(`${skill.id}: ${skill.description}`);
}

// Activate a skill (load full content)
const loaded = runtime.activateSkill('my-skill');
console.log(loaded.instructions);

// Execute WASM module
const result = runtime.executeSkill('my-skill', {
  timeoutMs: 5000,
  input: JSON.stringify({ query: 'hello' })
});

console.log(result.output_json);
console.log(result.audit);

// Check tool permissions
const canRead = runtime.isToolAllowed('my-skill', 'Read');

⭐ Pre-built Tools (Recommended)

For agent integration, use pre-built tools that eliminate boilerplate:

import { OpenSkillRuntime } from '@finogeek/openskills';
import { createSkillTools, getAgentSystemPrompt } from '@finogeek/openskills/tools';
import { generateText } from 'ai';

// Initialize runtime
const runtime = OpenSkillRuntime.fromDirectory('./skills');
runtime.discoverSkills();

// Create pre-built tools (~200 lines less code)
const tools = createSkillTools(runtime, {
  workspaceDir: './output'  // Optional: sandboxed workspace
});

// Get skill-agnostic system prompt
const systemPrompt = getAgentSystemPrompt(runtime);

// Use with Vercel AI SDK
const result = await generateText({
  model: yourModel,
  system: systemPrompt,
  prompt: userQuery,
  tools,
});

Available Tools:

  • list_skills - List available skills
  • activate_skill - Load full SKILL.md instructions
  • read_skill_file - Read helper files from skills
  • list_skill_files - List files in skill directories
  • run_skill_script - Execute sandboxed scripts or WASM modules
  • run_sandboxed_bash - Run sandboxed bash commands
  • write_file - Write to workspace (with security validation)
  • read_file - Read from workspace (with security validation)
  • list_workspace_files - List files in workspace
  • get_file_info - Get file metadata

Benefits:

  • ~200 lines less code: No manual tool definitions
  • Security built-in: Path validation, workspace isolation
  • Workspace management: Automatic sandboxed file I/O
  • Skill-agnostic: Works with any skill without code changes

See examples/agents/simple for a complete example.

API

See index.d.ts for full TypeScript definitions. See tools.d.ts for pre-built tools API.