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

poffice-admin

v1.0.0

Published

Administration and automation skill for the Poffice suite (Mailcow, Seafile, Paperless-ngx, SOGo).

Readme

Poffice Admin Skill

Administration and automation suite for the Poffice ecosystem (Mailcow, Seafile, Paperless-ngx, SOGo).

🚀 Overview

The poffice-admin skill provides a comprehensive set of Python scripts and documentation to manage a self-hosted office stack. It enables automation of user provisioning, mail management, document generation, and calendar orchestration.


🛠 Features & Functions

1. Mail & User Management (poffice_mail.py)

  • List Domains: Retrieve all domains managed by the Mailcow instance.
  • Create Mailbox: Provision new email accounts with specific quotas and settings.
  • Send Email: Send plain text emails via SMTP with TLS support.

2. Cloud Storage Management (poffice_docs.py)

  • User Provisioning: Create, list, and delete Seafile users.
  • Library Management: Create and list Seafile libraries (repositories).
  • File Operations: Programmatic upload and download of files to/from the cloud.

3. Document Archiving (poffice_paperless.py)

  • List Documents: Query the Paperless-ngx archive for stored documents.
  • Upload Document: Direct ingestion of files into the Paperless-ngx processing pipeline.

4. Calendar Orchestration (poffice_calendar.py)

  • CRUD Operations: Add, List, Update, and Delete events via CalDAV.
  • Meeting Invites: Generate and send official .ics meeting invitations to participants.
  • SOGo Integration: Fully compatible with the SOGo groupware suite.

5. Document Generation (poffice_gen.py)

  • Word (.docx): Create and update Word documents with headings and paragraphs.
  • Excel (.xlsx): Generate spreadsheets from python data structures.
  • PDF: Create professional PDF reports programmatically.

6. Email Interaction (poffice_imap.py)

  • Read Mail: List and fetch recent emails from any IMAP folder (e.g., INBOX).
  • Header Parsing: Extracts Subject, From, and Date for automation triggers.

7. Master Admin Sync (poffice_master_admin.py)

  • Neon Integration: Interfaces with Neon PostgreSQL to check "Master Admin" status.
  • Cross-App Sync: Automatically provisions a user across Mail and Seafile once they are verified as an admin in the central Neon database.

📂 Repository Structure

poffice-admin/
├── SKILL.md             # Core skill description and triggers
├── scripts/             # Python automation scripts
│   ├── poffice_mail.py
│   ├── poffice_docs.py
│   ├── poffice_calendar.py
│   └── ...
└── references/          # API references and credential templates

📋 Usage

Most scripts can be run directly via CLI:

# Example: Create a mailbox
python3 scripts/poffice_mail.py create-mailbox example.com user "John Doe" "password123"

# Example: Create a PDF report
python3 scripts/poffice_gen.py create-pdf report.pdf "Monthly Summary" "All systems operational."

🔐 Configuration

Credentials should be managed via environment variables or the references/credentials.md template.

  • MAILCOW_API_KEY
  • SEAFILE_ADMIN_EMAIL / SEAFILE_ADMIN_PASSWORD
  • PAPERLESS_TOKEN
  • DATABASE_URL (Neon PostgreSQL)