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

@neoworks-dev/otter-sdk

v0.1.0

Published

Shared TypeScript library for building Otter plugins. Provides all media types, the stdin/stdout JSON protocol handler (`runPlugin`), and HTTP utilities with browser-compatible headers.

Readme

@neoworks-dev/otter-sdk

Shared TypeScript library for building Otter plugins. Provides all media types, the stdin/stdout JSON protocol handler (runPlugin), and HTTP utilities with browser-compatible headers.


Overview

All Otter plugins communicate with the Go backend over a stdin/stdout JSON protocol. This SDK handles that protocol so plugin authors only need to implement their capability logic. It also exports all shared media types and a set of HTTP helpers with browser-compatible headers.

Exports

| Export | Description | | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | runPlugin(handlers) | Reads one JSON invocation from stdin, dispatches to the correct handler, writes the result to stdout, and exits | | Types (Movie, Series, Episode, ScrapeResult, etc.) | All media types mirrored from internal/plugins/types.go in the Go backend | | fetchHtml(url, headers?) | fetch wrapper with browser UA and Accept headers | | followRedirect(url) | Follows redirects and returns the final URL | | resolveUrl(base, path) | Resolves a relative or protocol-relative path against a base URL | | domainOf(url) | Extracts the hostname without www. prefix |

Protocol

Otter invokes a plugin by running bun run <main> and writing a single JSON object to stdin:

{ "capability": "scrape", "args": { "url": "https://example.com/movie/123" } }

runPlugin dispatches to the registered handler and writes the result to stdout:

{ "result": { ... } }

On error:

{ "error": "message" }

Scrape is the exception — it emits one ScrapeResult per line (NDJSON), root item first, then children (seasons → episodes):

{"type":"series","series":{...}}
{"type":"season","season":{...}}
{"type":"episode","episode":{...}}

Usage

import { runPlugin } from "@shutterly/sdk";

runPlugin({
  meta: {
    name: "my-plugin",
    version: "0.1.0",
    capabilities: ["scrape"],
  },
  scrape: async (url) => {
    // return ScrapeResult[]
  },
});

Media type hierarchy

MediaBase
├── Movie          — year, duration_minutes, trailer_urls
├── Series         — year, status
│   └── Season     — series_external_id, number
│       └── Episode — season_number, number, duration_minutes, air_date
├── Gallery        — year
├── AdultMovie     — acts, series_name, series_number
├── Scene          — number, acts
├── AdultGallery   — acts
└── AdultPerson    — full performer profile

Installation

This package is a local dependency — installed by referencing the path:

{ "@shutterly/sdk": "file:../sdk" }
bun install

License

MIT