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

@nowcapital/n8n-nodes-nowcapital

v1.0.7

Published

n8n node for NowCapital.ca Canadian Retirement Planning API

Readme

n8n-nodes-nowcapital

This is an n8n community node for integrating with the NowCapital.ca Canadian Retirement Planning API. It allows you to automate retirement simulations, calculate sustainable spending, and perform risk analysis using Canadian tax laws.

NowCapital is a specialized retirement planning tool designed for Canadians, handling RRSPs, TFSAs, CPP/OAS, and income splitting.

Features

  • Calculate Sustainable Spend: Find the maximum monthly amount you can safely spend throughout retirement.
  • Detailed Projections: Get a year-by-year breakdown of account balances and cash flows.
  • Scenario Modeling: Model specific spending targets to see how long your money will last.
  • Monte Carlo Simulations: ⭐ Premium: Perform risk analysis to see the probability of success for your retirement plan.
  • Localized Tax Logic: Specifically built for Canadian provinces and territories.

Installation

Follow the installation guide in the n8n community nodes documentation.

npm install @nowcapital/n8n-nodes-nowcapital

Credentials

You will need an API Key from NowCapital.ca:

  1. Log in to your NowCapital.ca account.
  2. Navigate to the API Access section.
  3. Generate a new API Key.
  4. (Optional) A Premium API Key is required for Monte Carlo simulations and advanced event modeling.

Operations & Usage

📈 Calculate Sustainable Spend

Optimizes for the highest possible monthly spend (inflation-adjusted) that results in a $0 balance at the end of the planning horizon.

📊 Get Detailed Projections

Provides the same calculation as above but returns a full array of yearly data, useful for creating charts or CSV records.

🎯 Calculate Specific Spend

Models how your portfolio behaves with a fixed spending goal. Useful for "What if I spend $5,000/month?" scenarios.

🎲 Run Monte Carlo Simulation (Premium)

Starts a background risk simulation based on thousands of market scenarios. This is an asynchronous operation.


🔁 Handling Asynchronous Monte Carlo Simulations

Monte Carlo simulations are computationally intensive and take between 5 to 30 seconds to complete. To use this feature in n8n, you must implement a Polling Loop.

Step-by-Step Polling Pattern

  1. Run Monte Carlo Simulation: Use this node to start the task. It will return a task_id and a status of PENDING.
  2. Wait Node: Connect a Wait node set to 5 seconds.
  3. Get Simulation Status: Connect a second NowCapital node. Use the task_id from the first node.
  4. IF Node: Check if the status is equal to SUCCESS.
    • Falsepath: Route this back to the Wait Node (Step 2) to loop.
    • Truepath: Route this to the final node.
  5. Get Simulation Result: Use a final NowCapital node with the same task_id to retrieve the completed math and success probability.

Smart ID Handover

The NowCapital node includes built-in "Smart Handover" logic. If the backend switches task IDs during processing (from Orchestrator to Worker), the node will automatically detect this and follow the correct ID. You only ever need to pass the original task_id through your loop.


Technical Support

For issues, visit NowCapital.ca Support. For bugs specifically related to this n8n node, please open an issue on GitHub.

License

MIT