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

kraken-savings-plan

v1.0.0

Published

A simple Node.js CLI tool to automate recurring purchases of Bitcoin (BTC) and Solana (SOL) via the Kraken Pro API with minimal fees and full control.

Downloads

7

Readme

🪙 Kraken Savings Plan CLI

A simple Node.js CLI tool to automate recurring purchases of Bitcoin (BTC) and Solana (SOL) via the Kraken Pro API – with minimal fees, full control, and a simple interface.

Designed for efficient Dollar/Euro-Cost Averaging, this tool helps you accumulate crypto over time while avoiding the higher fees of standard Kraken DCA.


✨ Features

  • Low-fee crypto purchases via Kraken Pro API
  • 🪄 Interactive CLI interface
  • 💰 Supports buying BTC and SOL (more coming soon)
  • 🧠 Smart order sizing and price checks

🚀 Getting Started

0. Not on Kraken yet?

If you use my referral code or link to try it, we'll both earn 50 EUR when you trade 200 EUR of crypto in the app!

Code: g49jh2ps
Link: https://proinvite.kraken.com/9f1e/nb2p0buh

1. Clone the repo

git clone [email protected]:davidgruebl/kraken-savings-plan.git
cd kraken-savings-plan

2. Install dependencies

npm install

3. Set up your Kraken API key

  • Go to Kraken API Management
  • Create a new API key with the following permissions:
    • Query Funds
    • Query Open/Closed Orders & Trades
    • Create & Modify Orders
  • Do NOT enable withdrawal permissions for security.
  • Copy your API Key and API Secret.

4. Create a .env file

In the project root, create a file named .env:

KRAKEN_API_KEY=your_api_key_here
KRAKEN_API_SECRET=your_api_secret_here
# Optional: Set your default Dollar-Cost Averaging amounts (default: 0)
BTC_AMOUNT_EUR=250
SOL_AMOUNT_EUR=250

5. Run the CLI

node index.js

🖥️ Usage

  • The CLI will show you current BTC and SOL prices (USD & EUR) and your portfolio value.
  • You'll be asked if you want to run your savings plan.
  • Enter the EUR amount to buy for BTC and/or SOL (press Enter for default, or 0 to skip either).
  • Confirm your purchase.
  • If you have enough EUR, the order(s) will be placed and your updated portfolio will be shown.
  • Enjoy the fun, positive, and sometimes cheeky CLI experience! 🚀🌝

🛡️ Security

  • Your API key and secret are loaded from .env and never logged or shared.
  • Do not share your .env file or commit it to version control.
  • For extra safety, restrict your API key to only the necessary permissions and consider IP whitelisting.

📝 Customization

  • You can easily add more coins or change the default Dollar-Cost Averaging amounts by setting BTC_AMOUNT_EUR and SOL_AMOUNT_EUR in your .env file.
  • The CLI is designed to be fun and interactive – feel free to tweak the messages or add your own!

❓ FAQ

Q: Can I use this for other coins?
A: Currently, only BTC and SOL are supported, but you can add more by editing the code.

Q: Does this work with Kraken's testnet?
A: No, this is for the live Kraken Pro API.

Q: Is this safe?
A: As safe as your API key! Never enable withdrawal permissions and keep your .env file secure.


📄 License

MIT