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

@team-falkor/plugin-sdk

v1.0.0

Published

A TypeScript SDK for building Falkor plugins with Elysia framework integration

Readme

Falkor Plugin SDK

The Falkor Plugin SDK is a TypeScript toolkit for building and managing plugins within the Falkor ecosystem (Falkor GitHub). It uses Elysia as the web framework and is optimized for the Bun runtime.

🚀 Key Features

  • Streamlined Plugin API – Build plugins easily with a clean and intuitive interface for the Falkor ecosystem.
  • Built-in Handlers – Includes default setup for search and return routes.
  • TypeScript Support – Full typings and type safety throughout the SDK.
  • CORS Integration – Out-of-the-box support via @elysiajs/cors.
  • Debug Logging – Optional debug mode with color-coded console output for easier development.

📦 Installation

Install via your favorite package manager:

npm install @team-falkor/plugin-sdk
yarn add @team-falkor/plugin-sdk
pnpm add @team-falkor/plugin-sdk
bun add @team-falkor/plugin-sdk

⚡ Quick Start

Here's an example of how to create a plugin for Falkor using the SDK:

import { createPlugin } from "falkor-plugin-sdk";

createPlugin({
  setup: {
    id: "my.awesome.plugin",
    version: "1.0.0",
    multiple_choice: false,
    name: "my-plugin",
    description: "My awesome Falkor plugin",
    logo: "https://yourdomain.com/logo.png",
    banner: "https://yourdomain.com/banner.png", // Optional
    api_url: "htpps://yourdomain.com",
    setup_url: `/setup.json?search=["config-option-1", "config-option-2"]`, // used for auto updating the plugin
  },
  port: 3000,
  handleSearch: async (query) => {
    // Your search logic here
    return { results: [{}] };
  },
  handleReturn: async (data) => {
    // Handle return data here
    // You have to return an array of links but you can send as many links as you want
    return ["link1", "link2"];
  },
  options: {
    debug: true, // Enable debug mode for verbose logs
  },
});

📚 API Reference

createPlugin(options)

Creates and starts a new plugin server for Falkor.

Parameters

  • setup (object) – Plugin metadata and configuration:

    • id: Unique identifier for the plugin.
    • version: Version number for compatibility checks.
    • multiple_choice: If true, the plugin requires additional requests to fetch sources.
    • name: Display name of the plugin.
    • description: Short description of the plugin functionality.
    • logo: URL to the plugin's logo (square image).
    • banner: URL to the plugin's banner (optional).
    • api_url: Optional base URL for your plugin API.
    • author: Optional information about the plugin author.
    • setup_path: Path to access the setup data, default is /setup.json.
  • port (number) – The port on which the plugin server will run.

  • handleSearch (function) – Async function to handle search requests.

  • handleReturn (function) – Async function to handle return data.

  • options (object) – Additional configuration:

    • debug (boolean): Enable debug mode for detailed logging.

🛠 Development

To run the development server with hot reload, use:

bun run dev

Ensure you have bun installed globally.

🤝 Contributing

We welcome contributions! If you have suggestions or improvements, feel free to open issues or submit pull requests.

📄 License

This project is licensed under the MIT License.