0.1.33 • Published 1 year ago
ai-magnet v0.1.33
Getting Started
- Clone this repo locally
- Set API keys in
.env.localfor:OPENAI_API_KEYANTHROPIC_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 devto start the NextJS server that receives errors, and is visible atlocalhost:8888
Magnet Monitor
- The
/monitorsfolder 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
stdoutandstderrfor any issues, and then sends the erros to the localhost:8888 - Run
npx magnet-monitor YOUR_PROCESSto start processes, e.g. you might change your scripts inpackage.jsonto benpx magnet-monitor pnpm run dev