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

@factory/droid-sdk

v0.9.1

Published

TypeScript SDK for the Factory Droid CLI

Readme

@factory/droid-sdk

The Factory TypeScript SDK lets applications run Droid, continue conversations, stream work, control tools, and connect to a running Droid daemon.

Installation

npm install @factory/droid-sdk

The SDK requires Node.js 18 or later.

Entrypoints

| Import | Runtime | Purpose | | ------------------------- | --------------- | ----------------------------------------------------------------------------------------- | | @factory/droid-sdk/node | Node | Start Droid subprocesses, run prompts, manage local sessions, and define SDK MCP tools | | @factory/droid-sdk | Browser or Node | Connect to an existing Droid daemon and use browser-safe schemas, types, and REST helpers |

By default, Node session APIs start the droid CLI from PATH and read FACTORY_API_KEY. A custom executable, API key, or transport can be supplied through session options.

Quick start

import { run } from '@factory/droid-sdk/node';

const result = await run('Summarize this repository.');

if (!result.success) {
  throw new Error(result.error?.message ?? 'The run did not complete.');
}

console.log(result.text);

Use createSession() for multi-turn Node conversations. Use connectToDaemon() from the root entrypoint to manage sessions through an existing daemon.

Documentation

The TypeScript SDK documentation is the canonical user-facing guide to:

  • Node and daemon runtimes
  • Runs, sessions, streaming, attachments, and structured output
  • Permissions, AskUser, tools, skills, MCP, and hooks
  • Session replacement and cleanup behavior
  • Browser and daemon integration
  • Observability, REST helpers, advanced resources, and the public API

Runnable examples are available under examples/node and examples/browser.

Browser security

The daemon client currently authenticates with a Factory API key. Browser integration is intended for trusted local tools. Do not ship a Factory API key in a public website, commit it to source control, or put it in a URL.

License

Apache 2.0