Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ai-magnet

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-magnet

- 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:

  • 0.1.33
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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

FAQs

Package last updated on 08 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc