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 🙏

© 2024 – Pkg Stats / Ryan Hefner

toodoo

v1.0.1

Published

Toodoo is a CLI tool that syncs TODO and FIXME comments from your code with Trello.

Downloads

5

Readme

Features

  • all @TODO and @FIXME comments will be synced with trello
  • when the comment is removed from code, it's associate card will be moved to your done list
  • @username mentions will be linked to trello board menbers (feautre needs fixing)

🚀 Getting Started

1. intall toodoo in your project

npm i toodoo

or

yarn add toodoo

2. setup trello

you will need to create a private powerup and authorize it to access your workspace.

Please follow these stepts:

  • go to https://trello.com/power-ups/admin
  • create a new powerup, and name it toodoo
  • select your workspace
  • please ignore the ifrae connector url
  • once created, generate a new API key
  • copy your api key (you will need it later)
  • next to your API key, in the interface you will see instructions about how to generate a token manually
  • generate and copy your token

3. add your api key and token to your config

using the CLI:

Run the cli config helper, and when asked, add the key and token

toodoo setup

Once toodoo is connected to Trello, you will be asked to select a board, and 3 lists:

  • pending list: list that hold your backlog
  • in progress list: list that holds your tickets that are being worked on
  • done list: list that holds your completed tickets

At the end of the run, a config file named toodoo.config.json will be created at the root of your project.

!!! PLEASE ADD THIS TO YOUR .gitignore !!!

via .env

Add these values to your .env file or your CI's evironmental variables:

TOODOO_PM_TOOL=trello
TOODOO_CI=false
TOODOO_TRELLO_KEY=xxxx
TOODOO_TRELLO_TOKEN=xxxxxx
TOODOO_TRELLO_PENDING_LIST_ID=123456
TOODOO_TRELLO_INPROGRESS_LIST_ID=123456
TOODOO_TRELLO_DONE_LIST_ID=123456

💻 Running locally

run this in your project's terminal:

toodoo

this will locate all the @TODO and @FIXME comments and convert them to trello cards.

You can specify a glob expression to filter:

toodoo '{,!(node_modules)/**/}*.{js,ts,jsx,tsx,css}'

you can add this to your package.json:

  scripts: {
    ...
    "toodoo": "toodoo '{,!(node_modules)/**/}*.{js,ts,jsx,tsx,css}'"
    ...
  }

☁️ Running in CI environments

toodoo can be run in CI environments such as Gitlab CI and Github Actions. As you are using your private apikey and tokens, it is adivable not to have the commitd to your git repo, so you will need to use the environmental variables for config:

TOODOO_PM_TOOL=trello
TOODOO_CI=true
TOODOO_TRELLO_KEY=xxxx
TOODOO_TRELLO_TOKEN=xxxxxx
TOODOO_TRELLO_PENDING_LIST_ID=123456
TOODOO_TRELLO_INPROGRESS_LIST_ID=123456
TOODOO_TRELLO_DONE_LIST_ID=123456

⚙️ Other commands

Get config as env

toodoo config env

List all todos:

toodoo list

Interract with trello:

toodoo trello

Display Trello info:

toodoo trello info

Dev roadmap:

  • check and ask to add the config file to .gitignore if preset
  • add option to run only when a specifc git branch is active (eg: only run on development)
  • investigate if integration from trello to git bould be possible & advisable (this would cover scenarios such as: auto-removal of commit is advisable when card is moved to done list, or changing the @username mentions when a members of a card are changed in trello)
  • Add a public Trello board with examples from toodoo code
  • Add support for other PM tools

Credits

  • this was inspired by ves's work on the todo npm package, which is partially using. Thanks :) 🍺
  • the logo was generated by using DALL-E 🤯