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

@inner-dj/server

v0.1.8

Published

server component of inner-dj

Readme

@inner-dj/server

NPM

This is the web server component for inner-dj.

Requirements

  • yt-dlp

Deployment

The inner-dj server is available via Docker Hub and npm.

Docker

docker run -v "${PWD}/config:/usr/src/app/config/:ro" corysanin/inner-dj

npm

npx @inner-dj/server

pnpm

pnpm dlx --allow-build=better-sqlite3 --allow-build=bufferutil --allow-build=utf-8-validate @inner-dj/server

Configuration

By default, inner-dj server will attempt to load a configuration file at config/config.yaml (relative to the current working directory). To use a custom config path, set environment variable CONFIG.

Config Root

| YAML key | Environment Var | Type | Description | Default | |---------------|-----------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------| | port | PORT | number | Port to run the web server on | 8080 | | trustProxy | TRUSTPROXY | boolean|number|string | Whether or not the server is behind a proxy and to trust proxy headers. See express behind proxies | false | | secure | SECURE | boolean | Whether or not to set the Set-Cookie header to Secure, requiring https traffic for cookies | true | | public | PUBLIC | boolean | False requires a TOTP code to request songs. Navigate to /?override=1 to log in as admin. | false | | sessionSecret | SESSIONSECRET | string | The session secret. Do not share. | REQUIRED | | userOtp | USEROTP | string | TOTP token for user access. Unused if server is public. If blank, one is generated at start up. Check logs. | RANDOM | | adminOtp | ADMINOTP | string | TOTP token for admin access. If blank, one is generated at start up. Check logs. | RANDOM | | cookieTTL | COOKIETTL | number | Cookie max age in ms | 2592000000 (30d) | | jwtSecret | JWTSECRET | string | Secret for communications between client and server. Only share with client. | REQUIRED | | limiter | - | LimiterOptions | Rate limiter settings for authentication endpoint | see setDefaultLimits() | | cookies | COOKIES | string | Optional path to Netscape-formatted file to read cookies from. See how do I pass cookies to yt-dlp? | null | | db | | DBConfig | | | | discord | | DiscordReceiverConfig | | | | twilio | | TwilioReceiverConfig | | |

DBConfig

| YAML key | Environment Var | Type | Description | Default | |----------|-----------------|--------|------------------------------------|---------------------------------| | path | DBPATH | string | Path to SQLite DB for session data | sessions.db next to config file |

DiscordReceiverConfig

| YAML key | Environment Var | Type | Description | Default | |----------|-----------------|-----------------|-----------------------------------------------------------------------------------------------------------------|----------| | enabled | DISCORDENABLED | boolean | Whether or not to use Discord for receiving song requests. | false | | token | DISCORDTOKEN | string | Discord bot token. Required if Discord integration is enabled. | REQUIRED | | route | DISCORDROUTE | string | If set, creates a redirect to the Discord application's authentication URL | null | | activity | | ActivityOptions | See interface ActivityOptions | null |

TwilioReceiverConfig

| YAML key | Environment Var | Type | Description | Default | |---------------|---------------------|---------|--------------------------------------------------------------------------------------------------|-----------------| | enabled | TWILIOENABLED | boolean | Whether or not to use Twilio for receiving song requests via SMS. | false | | authToken | TWILIOAUTHTOKEN | string | Twilio auth token. Required if Twilio integration is enabled. | REQUIRED | | route | TWILIOROUTE | string | Webhook endpoint route | /webhook/twilio | | url | TWILIOURL | string | Full URL to webhook endpoint. By default, inner-dj will guess this based on the request headers. | | | response | TWILIORESPONSE | string | SMS response to send in reply to received requests. Empty string results in no reply. | EMPTY STRING | | errorResponse | TWILIOERRORRESPONSE | string | SMS response to send if something went wrong . Empty string results in no reply. | EMPTY STRING | | phone | TWILIOPHONE | string | Human-readable phone number to display in the user instructions. | REQUIRED |

Usage

Important pages:

  • /landing: The page for users to request songs
  • /admin: Kiosk-like page with instructions for guests
  • /admin/controls: Admin control panel for skipping the current song

Load the /admin page on a device or screen that guests can see. The page has instructions that guests can follow. Skip tracks with /admin/controls when necessary.