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

mailbak

v0.2.2

Published

Universal email backup and migration CLI tool for Gmail, SpaceMail, and IMAP servers - Built with Bun!

Downloads

308

Readme

📧 mailbak

Universal email backup and migration tool with an interactive cyberpunk TUI

npm version License: MIT

Fast and secure email backup tool supporting Gmail, JMAP (Fastmail), IMAP servers, and multiple export formats. Features both CLI and an interactive cyberpunk-themed TUI.

📸 Screenshots

✨ Features

  • 🎨 Interactive TUI - Cyberpunk-themed terminal interface with neon colors
  • 📦 Multiple Formats - Export to MBOX, EML, and JSON
  • 🔐 Secure - OAuth2 for Gmail, encrypted credential storage
  • 🚀 Fast - Built with Bun for maximum performance
  • 🔗 JMAP Support - Modern email protocol for Fastmail and compatible servers
  • 📁 Flexible - Backup to local storage, home directory, or custom paths
  • 🔄 Migration - Transfer emails between different accounts
  • 💾 Zero Dependencies - Uses Bun's built-in features

🚀 Installation

# Using npm
npm install -g mailbak

# Using bun (recommended)
bun install -g mailbak

# From source
git clone https://github.com/codingstark-dev/backupmail
cd backupmail
bun install

📖 Usage

Interactive TUI (Default)

Simply run mailbak to launch the cyberpunk TUI:

mailbak

Navigate with arrow keys and enjoy the cyberpunk interface!

CLI Mode

Use with arguments to enter CLI mode:

# Show help
mailbak --help

# Show version
mailbak --version

# Add account
mailbak auth add

# List accounts
mailbak auth list

# Backup emails
mailbak backup <accountId> --format mbox --output ./backups

# Migrate between accounts
mailbak migrate <fromAccountId> <toAccountId>

🎮 TUI Features

  • ASCII art logo with neon glow effects
  • Real-time backup progress tracking
  • Multiple export location options (current dir, home dir, custom path)
  • Format selection wizard (MBOX, EML, JSON)
  • Cyberpunk color scheme (neon cyan, magenta, green)

Navigation

  • ↑/↓ - Navigate menus
  • Enter - Select option
  • Esc - Go back
  • q - Quit

📦 Supported Formats

MBOX

Standard Unix mailbox format

  • Compatible with: Thunderbird, Apple Mail, Gmail import

EML

Individual email files

  • Compatible with: Outlook, Windows Mail

JSON

Structured metadata

  • Use case: Data analysis, custom processing

🔧 Configuration

Config stored in ~/.mailbak/:

~/.mailbak/
├── config.json
└── credentials/

🌟 Supported Providers

  • ✅ Gmail (OAuth2)
  • ✅ JMAP (Fastmail and any JMAP-compliant server)
  • ✅ Generic IMAP
  • ✅ SpaceMail
  • ✅ Any IMAP-compatible service

JMAP Support

JMAP is the modern, open standard for email access (RFC 8620, RFC 8621). It's faster and more efficient than IMAP, especially for mobile and web applications.

Supported JMAP providers:

  • Fastmail (pre-configured)
  • Any JMAP-compliant server (custom URL)
# Add a JMAP account via CLI
mailbak auth add
# Select "JMAP (Fastmail, etc.)"

# Or use the TUI
mailbak
# Navigate to "Add Account" → "JMAP (Fastmail, etc.)"

💻 Development

# Install dependencies
bun install

# Run in TUI mode (default)
bun run dev

# Run with CLI arguments
bun run dev -- --help
bun run dev -- auth list

# Build
bun run build

# Test
bun test

🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create feature branch
  3. Add tests
  4. Submit pull request

📄 License

MIT © codingstark-dev

🔗 Links


Made with ❤️ using Bun and OpenTUI