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

plugfn

v0.0.1

Published

Self-hosted integration platform for developers - Connect your apps to the world

Readme

PlugFn TypeScript SDK

Self-hosted integration platform for TypeScript/JavaScript applications

Full-featured TypeScript SDK for building integrations with 75+ APIs.

Installation

npm install @superfunctions/plugfn @superfunctions/db @superfunctions/http

# Install framework adapter (choose one)
npm install @superfunctions/http-express
npm install @superfunctions/http-hono
npm install @superfunctions/http-fastify
npm install @superfunctions/http-next

Quick Start

1. Initialize PlugFn

import { plugFn } from '@superfunctions/plugfn';
import { drizzleAdapter } from '@superfunctions/db/adapters';
import { githubProvider } from '@superfunctions/plugfn/providers';

const plug = plugFn({
  database: adapter,
  auth: authProvider,
  baseUrl: 'https://myapp.com',
  encryptionKey: process.env.ENCRYPTION_KEY,
  integrations: {
    github: {
      clientId: process.env.GITHUB_CLIENT_ID,
      clientSecret: process.env.GITHUB_CLIENT_SECRET,
      scopes: ['repo', 'issues', 'user']
    }
  }
});

plug.providers.register(githubProvider);

2. Execute Actions

// Execute an action
const issue = await plug.github['issues.create']({
  userId: 'user-123',
  params: {
    owner: 'myorg',
    repo: 'myrepo',
    title: 'Bug report',
    body: 'Something is broken'
  }
});

3. Mount HTTP Endpoints

With Express

import express from 'express';
import { createPlugFnRouter } from '@superfunctions/plugfn/router';
import { toExpress } from '@superfunctions/http-express';

const app = express();
app.use(express.json());

const router = createPlugFnRouter(plug);
app.use('/api/plugfn', toExpress(router));

app.listen(3000);

With Hono

import { Hono } from 'hono';
import { createPlugFnRouter } from '@superfunctions/plugfn/router';
import { toHono } from '@superfunctions/http-hono';

const app = new Hono();

const router = createPlugFnRouter(plug);
app.route('/api/plugfn', toHono(router));

export default app;

With Fastify

import Fastify from 'fastify';
import { createPlugFnRouter } from '@superfunctions/plugfn/router';
import { toFastify } from '@superfunctions/http-fastify';

const fastify = Fastify();

const router = createPlugFnRouter(plug);
fastify.register(toFastify(router), { prefix: '/api/plugfn' });

await fastify.listen({ port: 3000 });

Features

  • Type-safe: Full TypeScript with auto-complete
  • OAuth built-in: Complete OAuth 2.0 flow
  • Webhooks: Real-time event handling
  • Workflows: Chain actions together
  • 5 providers: GitHub, Slack, Discord, Linear, Stripe
  • Framework-agnostic: Works with Express, Hono, Fastify, Next.js, SvelteKit
  • Testing utilities: Mock providers and workflows

HTTP Endpoints

Once mounted, the following endpoints are available:

  • GET /callback - OAuth callback handler
  • POST /webhooks/:provider/:event - Webhook receiver
  • GET /providers - List available providers
  • GET /connections - List user connections
  • POST /connections/auth - Get OAuth authorization URL
  • POST /connections/disconnect - Disconnect a connection
  • GET /workflows - List workflows
  • GET /metrics - Get execution metrics

Documentation

Examples

See the examples/ directory for:

  • Basic usage
  • Complete workflows
  • Express server integration
  • Testing examples

Development

# Install dependencies
npm install

# Build
npm run build

# Test
npm test

# Development mode
npm run dev

License

Apache-2.0