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

@promethean-os/trello

v0.1.0

Published

Trello integration for Promethean kanban board synchronization

Readme

Trello Integration for Promethean

Seamlessly sync kanban tasks from the internal Promethean kanban system to Trello boards with full automation.

🚀 Quick Start

Prerequisites

  1. Trello API Key & Token:

    # Add to your .env file
    TRELLO_API_KEY=your_trello_api_key_here
    TRELLO_API_TOKEN=your_trello_api_token_here

    Get your API key: https://trello.com/app-key

    Generate a token: https://trello.com/1/authorize?expiration=never&scope=read,write&response_type=token&name=Promethean%20Sync&key=YOUR_API_KEY

Installation

# Install dependencies
pnpm install

# Build the package
pnpm run build

Usage

Test Connection

# Test your API credentials
pnpm run test:trello

# Or run directly
node packages/trello/src/test-trello-connection.ts

Sync Kanban to Trello

# Basic sync (creates board if needed)
pnpm run sync:trello

# Sync to specific board
pnpm run sync:trello -- --board "My Kanban Board"

# Dry run to see what would happen
pnpm run sync:trello -- --dry-run

# Sync only 10 tasks
pnpm run sync:trello -- --max-tasks 10

# Development mode (no build needed)
pnpm run sync:trello:dev

Manual CLI Usage

# Full sync with options
node packages/trello/dist/cli/sync-kanban-to-trello.js --board "generated" --max-tasks 20

# Show help
node packages/trello/dist/cli/sync-kanban-to-trello.js --help

📋 What It Does

Full Automation

  1. Board Management:

    • Automatically creates Trello boards
    • Configurable board names (default: "generated")
    • Supports existing boards
    • Optional archive of existing lists
  2. Column Setup:

    • Creates standard kanban columns:
      • Icebox, Incoming, Accepted, Breakdown, Blocked
      • Ready, Todo, In Progress, Review, Document, Done, Rejected
    • Customizable column mapping
  3. Card Creation:

    • Extracts tasks from internal kanban system
    • Creates detailed Trello cards with full metadata
    • Preserves UUIDs for tracking
    • Adds priority labels (P1=red, P2=orange, P3=green)
  4. Smart Organization:

    • Automatically places cards in correct columns
    • Priority-based color coding
    • Maintains status consistency
    • Full task descriptions with sync metadata

🎯 Target Tasks

The sync searches for kanban-related tasks:

  • Exact matches: Tasks with "kanban" in title or labels
  • Similar matches: Related development tasks
  • Priority sorting: P1 → P2 → P3 ordering

🔧 Configuration

Environment Variables

# Required
TRELLO_API_KEY=your_trello_api_key
TRELLO_API_TOKEN=your_trello_api_token

# Optional
BOARD_NAME=custom_board_name
MAX_TASKS=20
DRY_RUN=false

CLI Options

Options:
  -b, --board <name>     Board name (default: "generated")
  -m, --max-tasks <num>  Maximum number of tasks to sync (default: 20)
  -d, --dry-run         Show what would be done without making changes
  --archive             Archive existing lists before creating new ones
  --no-create           Don't create board if it doesn't exist
  -h, --help            Show help message

📁 Package Structure

packages/trello/
├── src/
│   ├── lib/
│   │   ├── types.ts              # TypeScript definitions
│   │   ├── trello-client.ts      # Trello API client
│   │   └── kanban-to-trello-sync.ts # Core sync functionality
│   ├── cli/
│   │   └── sync-kanban-to-trello.ts # CLI interface
│   ├── test-trello-connection.ts  # Connection tester
│   └── index.ts                   # Main exports
├── dist/                         # Compiled JavaScript
├── package.json
├── tsconfig.json
└── README.md

🎨 Example Usage

import { KanbanToTrelloSync } from '@promethean-os/trello';

const sync = new KanbanToTrelloSync(
  {
    apiKey: 'your_api_key',
    apiToken: 'your_token'
  },
  {
    boardName: 'My Kanban Board',
    maxTasks: 15,
    dryRun: false
  }
);

const result = await sync.sync();
await sync.printSummary(result);

📊 Example Output

🚀 Starting kanban to Trello sync
📋 Board: My Kanban Board
🔄 Mode: LIVE SYNC

📋 Searching for kanban tasks...
✅ Found 24 exact kanban matches
✅ Found 15 similar kanban matches

🔍 Looking for Trello board: "My Kanban Board"
✅ Found existing board: https://trello.com/b/abc123/my-kanban-board

📝 Setting up kanban columns...
   ✅ Created list: Icebox
   ✅ Created list: Todo
   ✅ Created list: In Progress
   ✅ Created list: Done

🏷️  Setting up priority labels...
   ✅ Created label: P1 (red)
   ✅ Created label: P2 (orange)
   ✅ Created label: P3 (green)

🔄 Syncing 15 tasks to Trello cards...

[1/15] Implement kanban dev command with real-time sync
   UUID: 6397a3b3-5365-4893-a0e2-8f2f7ac678cc
   Status: todo → Todo
   Priority: P1
   🃏 Creating card: "Implement kanban dev command..."
   ✅ Created: https://trello.com/c/def456

======================================================================
✅ Kanban to Trello sync completed!
======================================================================
📋 Board: My Kanban Board
🔗 URL: https://trello.com/b/abc123/my-kanban-board

📊 Summary:
   📝 Total tasks: 39
   🃏 Synced cards: 15
   ❌ Failed cards: 0
   📝 Created lists: 4
   🏷️  Created labels: 3

🎉 Your Trello board is ready!
🔗 View it at: https://trello.com/b/abc123/my-kanban-board

🔍 Troubleshooting

"Missing required environment variables"

  • Cause: TRELLO_API_KEY or TRELLO_API_TOKEN not set
  • Fix: Add both variables to your .env file

"Connection failed"

  • Cause: Invalid API key or token
  • Fix: Verify your credentials and regenerate token if needed

"Board not found"

  • Cause: Board doesn't exist and --no-create flag used
  • Fix: Remove --no-create flag or create board manually first

"No kanban tasks found"

  • Cause: Kanban board is empty or not accessible
  • Fix: Run pnpm kanban count to verify board has tasks

🚀 Features vs GitHub Projects

| Feature | Trello | GitHub Projects | |---------|--------|-----------------| | ✅ Full API automation | ✅ | ❌ Limited | | ✅ Easy board creation | ✅ | ⚠️ Complex | | ✅ Drag & drop organization | ✅ | ✅ | | ✅ Rich card metadata | ✅ | ✅ | | ✅ Priority labels | ✅ | ✅ | | ✅ Custom workflows | ✅ | ⚠️ Limited | | ✅ Real-time sync | ✅ | ❌ Manual | | ✅ Webhooks support | ✅ | ✅ | | ✅ Mobile app | ✅ | ✅ |

🎯 Why Trello?

Unlike GitHub Projects v2, Trello provides:

  • Full API access for complete automation
  • No manual organization required - cards go to right columns automatically
  • Rich customization with labels, checklists, and attachments
  • Reliable sync with proven API stability
  • Team collaboration features built-in

🔮 Future Enhancements

  • [ ] Bidirectional sync (Trello → Internal kanban)
  • [ ] Real-time webhook updates
  • [ ] Multiple board support
  • [ ] Custom field mapping
  • [ ] Checklist synchronization
  • [ ] Attachment handling
  • [ ] Label color customization