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

@axon-ai/backend

v1.0.3

Published

Backend for Axon with SQLite

Readme

Axon Backend

npm version License: MIT

The @axon-ai/backend package serves as the core data processing and storage component for the Axon developer tool. It receives real-time tracing data from your LangChain applications (via @axon-ai/langchain-tracer), stores it in a local SQLite database, and serves this data to the @axon-ai/dashboard for visualization.

This backend is designed to run locally alongside your development environment, providing a private and efficient way to monitor and debug your AI agents and chains without sending sensitive data to external services.

✨ Features

  • Real-time Data Ingestion: Receives trace events from LangChain applications instantly.
  • Local SQLite Storage: Persists tracing data locally for historical analysis and quick retrieval.
  • WebSocket API: Communicates with the Axon Dashboard via WebSockets for live updates.
  • REST API: Provides endpoints for the dashboard to fetch historical trace data.
  • Seamless CLI Integration: Automatically managed by the @axon-ai/cli for an effortless developer experience.

🚀 Getting Started (via Axon CLI)

The Axon Backend is an integral part of the Axon developer tool and is typically managed by the @axon-ai/cli. You usually won't need to interact with this package directly.

1. Install the Axon CLI

If you haven't already, install the Axon CLI globally:

npm install -g @axon-ai/cli

2. Initialize Your Project

Navigate to your LangChain project directory and initialize Axon:

axon-ai init --project my-langchain-app

This command sets up the necessary configuration files and automatically initializes the database for the backend.

3. Start the Axon Services (Backend & Dashboard)

From your project directory, start both the Axon backend and dashboard:

axon-ai start

This command will launch the backend server (usually on http://localhost:3000) and the dashboard, connecting them automatically.

🛠️ Direct Usage (for Development/Debugging)

If you need to run the backend independently for development or debugging purposes:

  1. Clone the Axon repository:

    git clone https://github.com/your-axon-repo/Axon.git
    cd Axon/backend
  2. Install dependencies:

    npm install
  3. Initialize the database schema:

    npm run db:init
  4. Start the backend in development mode (with auto-reloading):

    npm run dev
  5. Start the backend in production mode:

    npm run build
    npm start

⚙️ Configuration

The backend's port and host can be configured via the .axon-ai/config.json file in your project root (created by axon-ai init) or by passing options to the axon-ai start command.

Example config.json snippet:

{
  "backend": {
    "port": 3000,
    "host": "localhost"
  }
}

🗄️ Database

The backend uses SQLite for local data persistence.

  • Schema Initialization: The npm run db:init script creates the necessary tables. This is automatically handled by axon-ai init.
  • Data Storage: All trace events, including LLM calls, tool usage, and chain executions, are stored in this local database.

🐛 Troubleshooting

If you encounter issues with the backend:

  • Check CLI Status: Use axon-ai status to see if the backend server is running.
  • Port Conflicts: If the backend fails to start, another process might be using port 3000. You can specify a different port using axon-ai start -p <new-port>.
  • Logs: Check the console output where the backend is running for any error messages.

🤝 Contributing

Contributions are welcome! If you're interested in improving the Axon Backend, please see the main Axon repository for contribution guidelines.

📄 License

This project is licensed under the MIT License.