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

@azysinovacao/todoist-client

v0.1.0

Published

Cliente JS da API v1 unificada do Todoist (cobertura ~100% REST + Sync; zero deps; dual CJS/ESM). Gotchas embutidos.

Readme

@azysinovacao/todoist-client

Cliente JS da API v1 unificada do Todoist. Cobertura ~100% do REST (102 ops) + Sync API + compostos. Zero dependências (usa fetch/FormData/Blob nativos do Node 18+), dual CJS/ESM. Gotchas embutidos (D1–D10).

Status: desenvolvida e testada de ponta a ponta contra a API real (2026-06-07): bateria completa 74/74 métodos PASS, ambiente descartável limpo (ver 2026-06-07_testes_todoist-api.md §BATERIA 6). Endereça a lacuna da Piece oficial do Activepieces (parcial) e da camada do MCP oficial (curada). NÃO publicada no npm nesta rodada — ver "Publicar" abaixo.

Uso

const { createTodoist } = require("@azysinovacao/todoist-client"); // ou: import { createTodoist } from "@azysinovacao/todoist-client"
const td = createTodoist(process.env.TODOIST_TOKEN);

await td.getUser();
const p = await td.addProject({ name: "Trabalho", color: "blue" });
const t = await td.addTask({ content: "Comprar pão", project_id: p.id, priority: 4, due_string: "amanhã 9h" });
await td.updateTask(t.id, { description: "integral" });   // patch parcial seguro (D8)
await td.commentWithFile({ task_id: t.id }, "nota fiscal", { name: "nf.pdf", mimeType: "application/pdf", base64: "<...>" });

Gotchas embutidos

  • priority é INVERTIDO (D3): na API 4 = mais alta, 1 = mais baixa. Helpers td.uiPriority(api) e td.apiPriority(ui) convertem (UI P1 = API 4).
  • IDs são string (D4) — Label/Filter são strings numéricas; demais são alfanuméricos. A lib trata tudo como string.
  • update* é patch parcial seguro (D8): envie só o que muda; o resto é preservado (sem GET-merge).
  • color aceita nome (berry_redtaupe) ou inteiro (30–49) (D7).
  • completedByCompletionDate/ByDueDate retornam a chave items (D5).
  • Paginação: métodos getAll* seguem next_cursor; ou use td.paginate(method, path, params, listKey).
  • 429: auto-retry com backoff (respeita Retry-After).
  • commentWithFile(target, content, file) = upload + comentário com anexo numa chamada (target = {task_id} ou {project_id}).
  • Filtros salvos só via Sync: td.addFilter({name,query,color}) / td.deleteFilter(id).
  • Escotilha: td.raw(method, path, { params, json, form }) para qualquer endpoint.

Métodos (cobertura ~100%)

  • Tasks: addTask, getTasks, getAllTasks, getTask, updateTask, deleteTask, moveTask, closeTask, reopenTask, quickAdd, getTasksByFilter, completedByCompletionDate, completedByDueDate
  • Projects: addProject, getProjects, getAllProjects, getProject, updateProject, deleteProject, archiveProject, unarchiveProject, joinProject, getProjectCollaborators, getArchivedProjects, searchProjects, getProjectPermissions
  • Sections: addSection, getSections, getSection, updateSection, deleteSection, archiveSection, unarchiveSection, searchSections
  • Labels: addLabel, getLabels, getLabel, updateLabel, deleteLabel, searchLabels, getSharedLabels, renameSharedLabel, removeSharedLabel
  • Comments: addComment, getComments, getComment, updateComment, deleteComment · composto commentWithFile
  • Reminders: addReminder, getReminders, getReminder, updateReminder, deleteReminder
  • Location reminders: addLocationReminder, getLocationReminders, getLocationReminder, updateLocationReminder, deleteLocationReminder
  • Folders: addFolder, getFolders, getFolder, updateFolder, deleteFolder
  • Uploads: uploadFile, deleteUpload
  • Templates: exportTemplateUrl, exportTemplateFile, createProjectFromFile, importIntoProjectFromFile, importFromTemplateId
  • User/Activity/Backups: getUser, getProductivityStats, updateNotificationSetting, getActivities, getBackups, downloadBackup
  • Emails/Ids: getOrCreateEmail, disableEmail, getIdMappings
  • Workspaces: createWorkspace, getWorkspaces, getWorkspace, updateWorkspace, deleteWorkspace, getWorkspaceUsers, inviteWorkspaceUsers, updateWorkspaceUser, removeWorkspaceUser, getWorkspaceActiveProjects, getWorkspaceArchivedProjects, getPlanDetails, joinWorkspace, updateWorkspaceLogo, getInvitations, getAllInvitations, deleteInvitation, acceptInvitation, rejectInvitation
  • Auth (destrutivo): migratePersonalToken, revokeAccessToken, revokeToken
  • Billing: getSubscriptionInfo, reactivatePlan, cancelPlan
  • Sync: sync, syncCommand, addFilter, deleteFilter
  • Utilidades: raw, paginate, uiPriority, apiPriority, getGotchas

Publicar (npm)

@azysinovacao exige a org no npm. Publicar com token Granular Read/Write ou Classic Automation (Publish dá 403 por 2FA), via .npmrc temporário fora do vault: npm publish --access public. 1º publish de escopo novo pode levar minutos para propagar. Ver guia §6a.