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

hotln-proxy

v0.2.2

Published

Proxy server for filing bug reports to Linear and GitHub Issues

Downloads

79

Readme

hotln-proxy

npm

A proxy server that forwards bug report requests to Linear and GitHub Issues. Holds API credentials server-side so distributed clients never need direct access to your issue tracker.

Works on Cloudflare Workers, Deno, Bun, or any platform with standard Request/Response APIs.

Usage

// Cloudflare Workers / Bun
export { default } from "hotln-proxy";

// Deno
import hotline from "hotln-proxy";
Deno.serve(hotline.fetch);

Set environment variables however your platform does it. The handler reads them from the passed env parameter (Cloudflare) or process.env (everywhere else).

Routes

| Route | Description | |-------|-------------| | POST /linear | Create a Linear issue | | POST /github | Create a GitHub issue |

Any other path returns 404.

Environment variables

Only configure the backends you want to enable. Requests to an unconfigured backend return 500.

GitHub

Two auth modes. If both are configured, the GitHub App is used.

GitHub App (recommended):

| Variable | Description | |----------|-------------| | GITHUB_APP_ID | GitHub App numeric ID | | GITHUB_APP_PRIVATE_KEY | GitHub App private key (PKCS#8 PEM) | | GITHUB_INSTALLATION_ID | Installation ID from installing the app on your repo | | GITHUB_REPO | Repo in owner/repo format |

GitHub generates PKCS#1 keys by default. Convert to PKCS#8 first:

openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in private-key.pem -out private-key-pkcs8.pem

Personal access token:

| Variable | Description | |----------|-------------| | GITHUB_TOKEN | GitHub personal access token | | GITHUB_REPO | Repo in owner/repo format |

Linear

| Variable | Description | |----------|-------------| | LINEAR_API_KEY | Linear API key | | LINEAR_TEAM_ID | Linear team ID | | LINEAR_PROJECT_ID | Linear project ID |

Shared

| Variable | Description | |----------|-------------| | HOTLINE_PROXY_TOKEN | When set, requires Authorization: Bearer <token> on all requests | | RATE_LIMIT_MAX | Max requests per window per IP (default: 5) | | RATE_LIMIT_WINDOW_MS | Rate limit window in milliseconds (default: 60000) | | CORS_ORIGIN | Access-Control-Allow-Origin value (default: *) |

Custom routing

The hotln SDKs (Rust, TypeScript) expect the POST /linear and POST /github routes provided by the default export. If you use the individual handlers, make sure your router matches these paths:

import { handleLinear, handleGitHub } from "hotln-proxy";

Rate limiting

Requests are rate limited per IP (based on cf-connecting-ip or x-forwarded-for). Defaults to 5 requests per minute. Configure with RATE_LIMIT_MAX and RATE_LIMIT_WINDOW_MS.