Package Information
Downloads: 194 weekly / 194 monthly
Latest Version: 0.1.1
Documentation
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:
- Session Token (recommended for automations)
- 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
- Add a Sunsama node
- Resource:
Task - Operation:
Get Tasks By Day - Day:
={{$now.toFormat("yyyy-LL-dd")}} - Execute node
This returns one output item per task.
Compatibility
- Node.js
>=18.17 - n8n versions compatible with
n8n-workflowv1 APIs
Development Scripts
npm run build- Compile TypeScript and copy static assetsnpm run dev- TypeScript watch modenpm run lint- Lint source filesnpm run lint:fix- Auto-fix lint issuesnpm run format- Format source files
Publishing Checklist
Before publishing:
- Update
package.jsonrepository/homepage/bugs URLs - Bump version
- Build and lint
- Test in a local n8n instance
- 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