npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vanmoose/truncus-cli

v1.2.0

Published

Truncus email API — command-line interface

Readme

@vanmoose/truncus-cli

The command-line interface for Truncus — transactional email infrastructure.

Send emails, manage domains, and check delivery status from your terminal.

Install

npm install -g @vanmoose/truncus-cli

Or use with npx:

npx @vanmoose/truncus-cli send --to [email protected] --subject "Hello" --text "Sent from the terminal"

Quick Start

# Set up your API key
truncus init

# Send an email
truncus send --to [email protected] --from [email protected] --subject "Hello" --text "Sent from the terminal"

# Check delivery status
truncus status

# View event logs for a message
truncus logs --email-id <message_id>

Commands

| Command | Description | |---------|-------------| | truncus send | Send an email | | truncus domains list | List configured sending domains | | truncus domains add | Add a sending domain (coming soon) | | truncus domains verify | Verify domain DNS records (coming soon) | | truncus domains remove | Remove a sending domain (coming soon) | | truncus status | Account overview and health check | | truncus status <id> | Check a specific message's delivery status | | truncus logs | View email event logs | | truncus init | Interactive project setup | | truncus whoami | Show current account info |

truncus send

# Basic send
truncus send --to [email protected] --from [email protected] --subject "Hello" --text "Body text"

# HTML email
truncus send --to [email protected] --from [email protected] --subject "Hello" --html "<h1>Hi</h1>"

# From a file
truncus send --to [email protected] --from [email protected] --subject "Newsletter" --html-file ./email.html

# Multiple recipients
truncus send --to [email protected],[email protected] --from [email protected] --subject "Team update" --text "Hi team"

# With reply-to
truncus send --to [email protected] --from [email protected] --reply-to [email protected] --subject "Hello" --text "Body"

truncus status

# Account overview
truncus status

# Specific message
truncus status msg_abc123def456

# Change stats window
truncus status --days 7

truncus logs

# Events for a specific email
truncus logs --email-id <message_id>

# Filter by event type
truncus logs --email-id <message_id> --type delivered

truncus domains

# List all domains
truncus domains list

Authentication

API key resolution order:

  1. --api-key flag on any command
  2. TRUNCUS_API_KEY environment variable
  3. .truncusrc file in current directory
  4. ~/.truncusrc file in home directory

.truncusrc

Created by truncus init:

{
  "apiKey": "tr_live_xxxxxxxxxxxx",
  "defaultFrom": "[email protected]",
  "region": "eu-west-1"
}

Important: Add .truncusrc to your .gitignore to avoid committing your API key.

API Endpoints Used

The CLI calls the following Truncus API endpoints:

| Endpoint | CLI Command | Status | |----------|-------------|--------| | POST /api/v1/emails/send | truncus send | Live | | GET /api/v1/emails/:id | truncus status <id> | Live | | GET /api/v1/domains | truncus domains list | Live | | GET /api/v1/events | truncus logs | Live | | GET /api/v1/stats | truncus status | Live | | GET /api/health | truncus status | Live | | POST /api/v1/domains | truncus domains add | Coming soon | | POST /api/v1/domains/:id/verify | truncus domains verify | Coming soon | | DELETE /api/v1/domains/:id | truncus domains remove | Coming soon |

Links

  • Website: https://truncus.co
  • Dashboard: https://truncus.co/dashboard
  • npm: https://npmjs.com/package/@vanmoose/truncus-cli
  • Node.js SDK: https://npmjs.com/package/@truncus/email
  • GitHub: https://github.com/codevanmoose/truncus-cli

Built by Van Moose BV in Amsterdam.