magnet-ai-server
v0.0.11
Published
- Clone this repo locally - Set API keys in `.env.local` for: - `OPENAI_API_KEY` - `ANTHROPIC_API_KEY` - Use Prisma to generate the Sqlite DB that will store error and event data:
Downloads
23
Readme
Getting Started
- Clone this repo locally
- Set API keys in
.env.local
for:OPENAI_API_KEY
ANTHROPIC_API_KEY
- Use Prisma to generate the Sqlite DB that will store error and event data:
npx prisma generate
npx prisma migrate dev --name init
- Call
pnpm run dev
to start the NextJS server that receives errors, and is visible atlocalhost:8888
Magnet Monitor
- The
/monitors
folder has an npm package that is published asmagnet-monitor
- It's a simple shell utility that wraps another process you want to run and watches
stdout
andstderr
for any issues, and then sends the erros to the localhost:8888 - Run
npx magnet-monitor YOUR_PROCESS
to start processes, e.g. you might change your scripts inpackage.json
to benpx magnet-monitor pnpm run dev