Sign In

@atomicmail/agentic-core

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomicmail/agentic-core

Atomic Mail agentic core — PoW auth, JMAP, presets, and help for integration hosts.

latest
Source
npmnpm
Version
0.3.26
Version published
Weekly downloads
156
178.57%
Maintainers
3
Weekly downloads
 
Created
Source

@atomicmail/agentic-core

Shared Atomic Mail runtime for integrations — PoW auth, JMAP batch execution, presets, and help topics.

Use this package when building connectors (Activepieces, custom hosts) instead of shelling out to MCP or AgentSkill.

Install

npm install @atomicmail/agentic-core

Quick start

import {
  createAgentSessionFromKeyValue,
  runJmapRequest,
  getHelp,
} from "@atomicmail/agentic-core";

const session = await createAgentSessionFromKeyValue({
  storage: myHostKeyValueStore,
  accountId: "default",
  apiKey: process.env.ATOMIC_MAIL_API_KEY,
});

const result = await session.register("myagent01");
// result.apiKey — present on first signup

const jmap = await runJmapRequest({
  session,
  opsJson: await Deno.readTextFile("presets/list_inbox.json"),
  defaultUsing: ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail"],
  sourceLabel: "list_inbox.json",
});

const help = await getHelp("presets");

Key exports

  • AgentSession — register, JWT refresh, JMAP session cache
  • runJmapRequest — preset/ops execution with $VAR substitution and attachments
  • getHelp, HELP_TOPIC_LIST — runtime help topics
  • KeyValueCredentialStore — persist credentials in host storage (Activepieces Store, etc.)
  • createAgentSession, createAgentSessionFromKeyValue — integration session factory

Bundled assets: shared/ presets and help topics, presets/ JMAP JSON files.

PoW / timeout guidance for integration hosts

  • Run PoW in flow actions (register, jmap_request), not in connection validate().
  • Cache session JWTs in host storage; PoW re-runs only when JWT expires (~1h).
  • Do not use sync webhooks for register or other PoW-heavy steps.

See the Atomic Mail Agentic repo for full integration guidelines.

Keywords

atomic-mail

FAQs

Package last updated on 07 Aug 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