0.0.11 • Published 9 months ago

magnet-ai-server v0.0.11

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

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 at localhost:8888

Magnet Monitor

  • The /monitors folder has an npm package that is published as magnet-monitor
  • It's a simple shell utility that wraps another process you want to run and watches stdout and stderr 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 in package.json to be npx magnet-monitor pnpm run dev