🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@useatlas/email-digest

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useatlas/email-digest

Atlas email digest plugin for scheduled metric summary subscriptions

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

@useatlas/email-digest

Atlas email digest plugin for scheduled metric summary subscriptions.

Users subscribe to metric digests with configurable frequency (daily/weekly). The plugin provides API routes for subscription management and generates formatted HTML digest emails with metric results, trend indicators, and data tables.

Installation

bun add @useatlas/email-digest

Configuration

import { defineConfig } from "@atlas/api/lib/config";
import { emailDigestPlugin } from "@useatlas/email-digest";

export default defineConfig({
  plugins: [
    emailDigestPlugin({
      from: "Atlas <digest@myco.com>",
      transport: "sendgrid",
      apiKey: process.env.SENDGRID_API_KEY!,
      executeMetric: async (metricName) => {
        // Run the metric query via Atlas agent
        return { name: metricName, value: 42 };
      },
    }),
  ],
});

API Routes

MethodPathDescription
GET/digest/subscriptionsList current user's subscriptions
POST/digest/subscriptionsCreate a new subscription
PUT/digest/subscriptions/:idUpdate a subscription
DELETE/digest/subscriptions/:idCancel a subscription

Documentation

See docs.useatlas.dev/plugins/interactions/email-digest for full documentation.

License

MIT

Keywords

atlas

FAQs

Package last updated on 16 Mar 2026

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