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

donutsmp-afk-bot

v1.0.0

Published

A lightweight AFK bot for DonutSMP that stays online with minimal resource usage

Readme

🍩 DonutFlayer - DonutSMP AFK Bot

A lightweight AFK bot for DonutSMP that stays online with minimal resource usage, perfect for running on Raspberry Pi or any low-resource environment.

⚠️ IMPORTANT: Microsoft Authentication Required

DonutSMP requires Microsoft authentication. You must have a legitimate Microsoft account to connect to the server. Offline mode will not work.

✨ Features

  • Ultra-lightweight: Minimal resource usage, perfect for Raspberry Pi
  • AFK Mode: No movement, no actions, just stays connected
  • Auto-reconnect: Automatically reconnects if disconnected (10-second intervals)
  • Cross-platform: Works on Windows, Linux, and macOS
  • GUI & CLI: Both graphical and command-line interfaces available
  • Microsoft Auth: Full support for Microsoft authentication
  • Real-time logging: Console output for all events

🚀 Quick Start

Prerequisites

Installation

# Clone or download this repository
cd DonutFlayer

# Install dependencies
npm install

# Run the bot (Microsoft auth required for DonutSMP)
node bot.js YourUsername microsoft

📋 Usage

Command Line

# Basic usage (Microsoft auth required for DonutSMP)
node bot.js YourUsername microsoft

# The bot will connect to donutsmp.net:25565

🔧 Configuration

The bot connects to:

  • Server: donutsmp.net
  • Port: 25565
  • Version: 1.20.4 (adjustable in code if needed)

🔐 Microsoft Authentication Setup

IMPORTANT: DonutSMP requires Microsoft authentication. Read the Microsoft Authentication Guide for detailed setup instructions.

Quick Auth Steps:

  1. Run: node bot.js YourUsername microsoft
  2. Browser will open for Microsoft login
  3. Authorize the bot to access your Minecraft account
  4. Bot connects automatically after authentication

📝 What the Bot Does

Does:

  • Connects to DonutSMP using Microsoft authentication
  • Stays connected 24/7
  • Responds to keep-alive packets automatically
  • Logs connection status and errors
  • Auto-reconnects on disconnect
  • Uses minimal system resources

Does NOT:

  • Move or rotate camera
  • Perform any actions
  • Chat or interact
  • Use pathfinding
  • Have anti-AFK features (not needed, just stays connected)

📊 System Requirements

  • RAM: ~50MB
  • CPU: Minimal (any modern processor)
  • Storage: ~100MB
  • Network: Stable internet connection

Perfect for:

  • Raspberry Pi (any model)
  • VPS servers
  • Home servers
  • Old computers
  • Always-on devices

🔒 Security Notes

  • Never share your Microsoft account credentials
  • Use application-specific passwords if available
  • Keep your Node.js installation updated
  • Run in a secure environment, do not expose to any open orts.

🐛 Troubleshooting

Connection Issues

  • Verify your Microsoft account has Minecraft access
  • Check firewall settings
  • Ensure port 25565 is open
  • Verify server status at donutsmp.net

Authentication Issues

  • Make sure you're using Microsoft authentication (not offline)
  • Check your Microsoft account credentials
  • Try logging into Minecraft launcher first

Performance Issues

  • Close unnecessary applications
  • Check system resources with top or Task Manager

📄 License

MIT License - Feel free to use and modify as needed.

⚠️ Disclaimer

This bot is designed for legitimate AFK farming on DonutSMP. Use responsibly and follow server rules. The creators are not responsible for any server bans or issues resulting from bot usage.

🤝 Contributing

Feel free to submit issues, feature requests, or pull requests to improve the bot!


To donate in game:

/pay dreamyfx

Happy AFK farming! 🍩