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

@hedra/create-hedra-avatar

v1.0.0

Published

Scaffolding for a LiveKit + Hedra Realtime Avatar app with a Python backend and React frontend

Readme

Hedra Realtime Avatar

Get up and running with Hedra Realtime Avatars in minutes. This tool creates a complete customizable application with both frontend and backend components for building interactive avatar experiences.

Prerequisites

Before you begin, you'll need to set up API keys for the following services. Let's create a .env file to store all of environment variables.

 touch .env

1. Livekit Project Setup

  1. Create a Livekit account
  2. Create a project through your Livekit dashboard
  3. Navigate to Settings → API Keys and copy your project credentials
  4. Save them into the .env file you created earlier:
   LIVEKIT_URL=wss://<project_name>.livekit.cloud
   LIVEKIT_API_KEY=<livekit_api_key>
   LIVEKIT_API_SECRET=<livekit_api_secret>

2. Hedra API Access

  1. Create a Hedra account
  2. Subscribe to a paid plan to gain API access
  3. Navigate to your API profile page to generate an API key
  4. Copy and paste it into the same .env file:
   HEDRA_API_KEY=<your_hedra_api_key>

3. OpenAI API Access

  1. Go to OpenAI and follow instructions for generating an API key (must be linked to a paid account)
  2. Paste your key into the same .env file:
   OPENAI_API_KEY=<your_openai_api_key>

You .env file should now have all these values:

   LIVEKIT_URL=wss://<project_name>.livekit.cloud
   LIVEKIT_API_KEY=<livekit_api_key>
   LIVEKIT_API_SECRET=<livekit_api_secret>
   HEDRA_API_KEY=<your_hedra_api_key>
   OPENAI_API_KEY=<your_openai_api_key>

4. System Requirements

  • Node.js: Install Node.js (recommended via Homebrew: brew install node)
  • pnpm: Install pnpm package manager:
    # Homebrew
    brew install pnpm
    # or
    npm install -g pnpm
  • Python: Version >3.10 required for backend dependencies

    Important: If you change your Python version after creating a virtual environment, delete the venv directory and recreate it with the correct Python version.

Installation

  1. Create your application (replace <app-name> with your desired name). If you get any errors or missing dependencies look at steps 2 and 3 below:

    npm install
    npx create-hedra-avatar <app-name>
  2. You might need to set up Python virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    If you encounter missing Python dependencies, install them with pip:

    # Example
    pip install dotenv

Configuration

  1. After successfully creating your application navigate to your application directory

    cd <app-name>
  2. Create .env.local in the frontend directory:

    LIVEKIT_URL="wss://<project_name>.livekit.cloud"
    LIVEKIT_API_KEY="<livekit_api_key>"
    LIVEKIT_API_SECRET="<livekit_api_secret>"
    HEDRA_API_KEY="<hedra_api_key>"
    OPENAI_API_KEY="<openai_api_key>"
  3. Create .env.local in the backend directory with the same content:

    LIVEKIT_URL="wss://<project_name>.livekit.cloud"
    LIVEKIT_API_KEY="<livekit_api_key>"
    LIVEKIT_API_SECRET="<livekit_api_secret>"
    HEDRA_API_KEY="<hedra_api_key>"
    OPENAI_API_KEY="<openai_api_key>"

    Tip: Use the .env you created earlier to copy into both directories:

    cp ~/<path-to-file>/.env ./frontend/.env.local
    cp ~/<path-to-file>/.env ./backend/.env.local

Running the Application

  1. Start the agent (in your first terminal):

    npm run start-agent
  2. Start the frontend application (in a new terminal):

    npm run start-app

Your application should now be running and ready to use!

Customization

Changing Avatars

You can customize the avatar by:

  1. Adding your image assets to the backend/assets directory
  2. Updating backend/agent_worker.py to point to your desired image file

The system supports direct image file paths, so you can easily swap between different avatar appearances.

Troubleshooting

  • Missing dependencies: Install any missing packages with npm install or pip install <package-name>
  • API key errors: Double-check that all API keys are correctly set in both .env.local files
  • Virtual environment issues: If you encounter Python-related errors, try recreating your virtual environment