LLM Logger
LLM Logger is a tool that helps you keep track of your AI API calls
Building an AI product is hard. AIs are unreliable, don't always follow output format, and can behave in surprising and unexpected ways, especially with free-form user input.
We help you keep track of how your product is working in the wild and help you improve it.
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js
- Yarn package manager
- PostgreSQL database
Installation
- Clone the repository
- Install dependencies:
Environment Setup
- Copy the
.env.templatefile to.env: - Fill in the required environment variables in the
.envfile:DB_HOST,DB_NAME,DB_USERNAME,DB_PASSWORD: PostgreSQL database connection detailsJWT_SECRET: A random secret for JWT token generation- Other optional variables for Resend and Stripe integration
Running the Project
Development Mode
To run the project in development mode:
This will start the server on http://localhost:3000 (or the port specified in your .env file).
Production Mode
To run the project in production mode:
Update your .env file:
- Build the project:
- Start the server:
Optional Services
Resend (for email invitations)
If you want to enable email invitations, sign up for a Resend account and add your API key to the RESEND_API_KEY variable in the .env file.
Note
Make sure the PostgreSQL database is running and accessible before starting the application.
