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

n8n-nodes-sunsama

v0.1.1

Published

n8n community node for Sunsama task, stream, subtask, and calendar workflows

Readme

n8n-nodes-sunsama

Community node for n8n that wraps the sunsama-api TypeScript client.

It provides a clean n8n-native interface for Sunsama:

  • Tasks (query, create, update, delete, reorder)
  • Subtasks (add, create, update title, complete/uncomplete)
  • Streams (list)
  • User profile/timezone
  • Calendar events (create/update)
  • Utilities (task ID generation)

Features

  • Supports session token auth and email/password auth
  • Uses the official community wrapper package sunsama-api
  • Includes dynamic stream dropdowns loaded from your account
  • Designed for self-hosted n8n + community node workflows
  • TypeScript codebase with lint/build scripts for maintainers

Installation

In your n8n custom nodes environment

npm install n8n-nodes-sunsama

Then restart n8n.

Local development

git clone https://github.com/gabepaez/n8n-nodes-sunsama.git
cd n8n-nodes-sunsama
npm install
npm run build

Credentials

Create credentials of type Sunsama API and choose one method:

  1. Session Token (recommended for automations)
  2. Email + Password

Node Resources and Operations

Task

  • Get Tasks By Day
  • Get Backlog Tasks
  • Get Archived Tasks
  • Get Task By ID
  • Create Task
  • Delete Task
  • Complete Task / Uncomplete Task
  • Update Task Text
  • Update Task Snooze Date
  • Update Task Planned Time
  • Update Task Due Date
  • Update Task Stream
  • Update Task Notes (HTML/Markdown)
  • Reorder Task

Subtask

  • Add Subtask
  • Create Subtasks
  • Update Subtask Title
  • Complete Subtask
  • Uncomplete Subtask

User

  • Get Current User
  • Get User Timezone

Stream

  • Get All Streams

Calendar Event

  • Create Calendar Event
  • Update Calendar Event (full JSON payload)

Utility

  • Generate Task ID

Example: Get Today’s Tasks

  1. Add a Sunsama node
  2. Resource: Task
  3. Operation: Get Tasks By Day
  4. Day: ={{$now.toFormat("yyyy-LL-dd")}}
  5. Execute node

This returns one output item per task.

Compatibility

  • Node.js >=18.17
  • n8n versions compatible with n8n-workflow v1 APIs

Development Scripts

  • npm run build - Compile TypeScript and copy static assets
  • npm run dev - TypeScript watch mode
  • npm run lint - Lint source files
  • npm run lint:fix - Auto-fix lint issues
  • npm run format - Format source files

Publishing Checklist

Before publishing:

  1. Update package.json repository/homepage/bugs URLs
  2. Bump version
  3. Build and lint
  4. Test in a local n8n instance
  5. Publish:
npm publish

Security Notes

  • Never commit real Sunsama credentials or session tokens
  • Prefer n8n credential storage over hardcoded values

Credits

  • Built on top of sunsama-api
  • n8n community node pattern and APIs from the n8n ecosystem

License

MIT