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

zypherus-backend

v1.0.0

Published

Zypherus Backend Services - Single Docker Deployment

Readme

Zypherus Backend Services

This directory contains all the backend services for the Zypherus application in a self-contained setup.

📁 Directory Structure

backend/
├── apps/                    # Backend applications
│   ├── dev-server/         # Token server and API
│   ├── stt-worker/         # Speech-to-text worker
│   └── llm-service/        # LLM correction service
├── packages/               # Shared packages
│   ├── shared-types/       # TypeScript types
│   ├── audio-utils/        # Audio processing utilities
│   ├── prompt-kit/         # LLM prompt utilities
│   ├── sdk/               # Client SDK
│   └── ui/                # UI components
├── docker/                # Docker startup scripts
├── .env.local            # Environment configuration
├── docker-compose.yml    # Docker services configuration
├── Dockerfile.backend    # Backend container build file
└── package.json          # Dependencies and scripts

🚀 Quick Start

From React App Root Directory:

Start Backend Services:

./start-backend.sh

Stop Backend Services:

./stop-backend.sh

From Backend Directory:

Start Services:

cd backend
docker-compose up -d

Stop Services:

cd backend
docker-compose down

🔧 Configuration

The backend services use the .env.local file for configuration. Key variables:

# LiveKit Configuration
LIVEKIT_API_KEY=your-api-key
LIVEKIT_API_SECRET=your-api-secret
LIVEKIT_WS_URL=ws://livekit:7880
LIVEKIT_WS_URL_FRONTEND=ws://localhost:7880

# Groq Configuration
GROQ_API_KEY=your-groq-key
GROQ_STT_MODEL=whisper-large-v3-turbo
GROQ_LLM_MODEL=moonshotai/kimi-k2-instruct

# Service Configuration
STT_ROOM_NAME=zypherus-demo
STT_PARTICIPANT_IDENTITY=stt-worker

🌐 Services

  • Dev Server: http://localhost:4000 (Token generation, API)
  • LLM Service: http://localhost:4300 (Text correction service)
  • LiveKit: ws://localhost:7880 (WebRTC signaling)

🧪 Health Checks

# Check dev server
curl http://localhost:4000/health

# Check LLM service
curl http://localhost:4300/health

# Test token generation
curl -X POST http://localhost:4000/livekit/token \
  -H "Content-Type: application/json" \
  -d '{"roomName":"zypherus-demo","autoCreate":true}'

🔄 Development

To rebuild the backend container after code changes:

cd backend
docker-compose build backend
docker-compose up -d

📦 Dependencies

This backend setup is completely self-contained and includes:

  • All source code for backend services
  • All shared packages and utilities
  • Docker configuration and build files
  • Environment configuration
  • Package dependencies (pnpm workspace)

🚀 SDK Release Workflow

Follow this checklist whenever you cut a public release of the SDK:

  1. Authenticate with npm (once per machine)

    npm login --scope=@zypherus
    # or
    npm adduser --scope=@zypherus
    npm whoami  # confirms your session
  2. Build both workspace packages

    pnpm --filter @zypherus/shared-types build
    pnpm --filter @zypherus/sdk build
  3. Run the consumer tests before publishing

    cd ../simple-application
    pnpm install
    pnpm test:run
    cd ../react-app/backend
  4. Pack and publish @zypherus/shared-types first

    pnpm --filter @zypherus/shared-types pack --pack-destination artifacts
    cd packages/shared-types
    npm publish --access public
    cd ../../
  5. Pack and publish @zypherus/sdk

    pnpm --filter @zypherus/sdk pack --pack-destination artifacts
    cd packages/sdk
    npm publish --access public
    cd ../../
  6. Smoke-test the published packages

    cd ../simple-application
    pnpm remove @zypherus/sdk @zypherus/shared-types
    pnpm add @zypherus/shared-types@<version> @zypherus/sdk@<version>
    pnpm test:run
    pnpm dev   # optional manual check

The SDK tarball consumes @zypherus/shared-types, so always release matching versions and publish shared-types first.