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 🙏

© 2025 – Pkg Stats / Ryan Hefner

langpong

v1.0.8

Published

langcode api server version

Readme

langpong

langcode api server version

Langpong CLI

Langpong is a command-line interface tool designed to launch and configure the Langcode API Server. It supports flexible runtime configurations through CLI flags and external config files, making it easy to tailor deployments for various environments.


🚀 Getting Started

Installation

npm install -g langpong

Usage

langpong [options]

⚙️ CLI Options

| Option | Alias | Description | Default | |-------------------------------------|-------|--------------------------------------------------------------|----------------------| | --config <path> | -c | Path to a JSON/YAML config file | null | | --port <number> | -p | Port number for the API server | process.env.PORT | | --host <string> | -H | Host/IP address | process.env.HOST | | --maxConcurrentRunsPerManager | | Max parallel runs per plugin manager | 3 | | --maxConcurrentRunsGlobal | | Max parallel runs globally across all managers | 10 | | --logLevel <level> | | Logging level (info, debug, error) | info |


📄 Configuration File

You can optionally provide a configuration file using --config. It should be in JSON format and match the structure below:

{
  "manager": {
    "maxConcurrentRunsPerManager": 3,
    "maxConcurrentRunsGlobal": 10,
    "maxIdleTimeMs": 600000,
    "maxLifeTimeMs": 3600000,
    "cleanupIntervalMs": 60000,
    "logsDir": "./logs",
    "logLevel": "info"
  },
  "server": {
    "port": 3000,
    "host": "127.0.0.1"
  },
  "pluginsDefault": []
}

Any CLI arguments will override the values provided in the configuration file.


🧠 Architecture Overview

  • ManagerStore: Handles plugin concurrency, lifecycle, and logging.
  • Langpong: Responsible for starting the HTTP server with specified host and port, and delegating tasks to the ManagerStore.
  • Deep Merge Strategy: Default config is extended first with the config file (if any), then finally overridden by CLI options.

Run using:

langpong -c ./config.json

🧪 Example

langpong -p 8080 -H 0.0.0.0 --maxConcurrentRunsPerManager 5 --logLevel debug

This command starts the server on port 8080, accessible on all interfaces, with concurrency and logging settings customized.

🐳 Docker Support

Pull from Docker Hub

docker pull yourdockerhubusername/langpong:latest

Run Manually

docker run -p 3000:3000 yourdockerhubusername/langpong:latest \
  --config /app/config.json

To mount a config file:

docker run -p 3000:3000 \
  -v $(pwd)/config.json:/app/config.json \
  yourdockerhubusername/langpong:latest \
  --config /app/config.json

🧱 Docker Compose Example

Create a docker-compose.yml file like this:

version: '3.8'

services:
  langpong:
    image: yourdockerhubusername/langpong:latest
    container_name: langpong-server
    ports:
      - "3000:3000"
    volumes:
      - ./config.json:/app/config.json:ro
    command: ["--config", "/app/config.json"]
    restart: unless-stopped
    environment:
      - LOG_LEVEL=debug

📦 Version

Current Version: 1.0.3


📧 Support

For bug reports, suggestions, or feature requests, please open an issue on the GitHub repository.


📝 License

MIT License. See LICENSE file for details.