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

candalena-claw

v4.0.1

Published

Candalena Claw — Standalone LMS Reminder Engine. CLI wizard & background daemon with multi-DB support (MySQL/PostgreSQL/MongoDB), AI-powered analysis (Gemini/OpenAI), and 24/7 Telegram deadline reminders. No OpenClaw required.

Readme

🦞 Candalena Claw v4.0.0

Universal LMS Reminder Engine — Standalone Background Daemon for Multi-Database & Telegram Integration.

Version Node Docker License


✨ Features

  • 100% Standalone & Lightweight: No external AI provider (OpenAI/Gemini) required! It runs natively on Node.js using an efficient background scheduler.
  • Multi-Database Support: Connects seamlessly to PostgreSQL (Supabase, Neon), MySQL, and MongoDB.
  • Real-time & Scheduled Monitoring:
    • Phase 1 (Every minute): Scans for newly created assignments/tasks and instantly notifies the class.
    • Phase 2 (Daily 07:00): Scans for approaching deadlines and sends H-3, H-1, and H-0 reminders.
  • Smart Telegram Routing: Automatically routes reminders to specific Telegram groups based on the class (e.g., TI-01 gets TI-01 reminders).
  • VPS & Docker Ready: Designed to run seamlessly alongside your existing backend infrastructure without any port conflicts.

🏗 Architecture

Candalena Claw operates in two phases:

  1. Interactive Setup Wizard: Run candalena-claw setup (or install-ai) to easily map your database structure and configure your Telegram bot credentials. It automatically creates an .env file.
  2. Background Daemon: Run candalena-claw start (or deploy via Docker). The daemon operates completely in the background without exposing any network ports.

🚀 Step-by-Step Installation & Setup

1. Install Globally (Local/VPS)

Make sure you have Node.js installed.

npm install -g candalena-claw

2. Configure Telegram Bot

  1. Open Telegram and search for @BotFather.
  2. Send /newbot, name your bot, and get your Bot Token.
  3. Create Telegram groups for your classes (e.g., TI-01, TI-02).
  4. Add the bot to those groups.
  5. Get the Group Chat ID (you can use bots like @getidsbot).

3. Run the Setup Wizard

Navigate to the directory where you want to store your configuration, and run:

candalena-claw install-ai

Note: The wizard is completely standalone and will bypass any AI requirements.

The wizard will ask you to:

  • Paste your Database URL (e.g., your Supabase PostgreSQL connection string).
  • Input your Telegram Bot Token.
  • Map your Class Names to their respective Telegram Chat IDs.

4. Running Locally

To test if it works on your local machine:

candalena-claw start

You should see the daemon connect to the database and start scanning. Press Ctrl+C to stop.


🐳 VPS Deployment with Docker (Highly Recommended)

The best way to run Candalena Claw on a VPS is by using Docker Compose. Because it is a background daemon (no exposed ports), it can run safely alongside your primary backend (Express, Laravel, Go, etc.) without any EADDRINUSE port conflicts.

Option A: Merge with your Backend's docker-compose.yml

If you already have a docker-compose.yml for your backend, simply add the candalena-daemon service to it:

services:
  # Your existing backend service
  my-backend-api:
    image: my-backend:latest
    ports:
      - "3000:3000"

  # 🦞 Add Candalena Claw Daemon here
  candalena-daemon:
    build: ./openclaw-reminder  # Path to this Candalena folder
    container_name: candalena-claw
    restart: unless-stopped
    env_file:
      - ./openclaw-reminder/.env # Path to the generated .env file
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"

Then run: docker compose up -d --build

Option B: Run Standalone via Docker

If you just want to run Candalena Claw in its own Docker container:

  1. Upload this project folder (with the generated .env file) to your VPS.
  2. Inside the folder, run:
docker compose up -d --build
  1. To view logs and monitor reminders in real-time:
docker logs -f candalena-claw

💻 CLI Commands Reference

| Command | Description | |---------|-------------| | candalena-claw install-ai | Run the main setup wizard to configure DB and Telegram. | | candalena-claw start | Start the reminder engine daemon in the foreground. | | candalena-claw status | Show current system/daemon status. | | candalena-claw config | View the current mapped configuration. | | candalena-claw uninstall | Clean up global packages and configuration files. |


🔧 Troubleshooting

1. "Request path contains unescaped characters" Error

  • Cause: You pasted invalid characters (like a database URL chunk or emojis) into the Telegram Bot Token field.
  • Fix: Open the .env file and replace TELEGRAM_BOT_TOKEN with your actual token from @BotFather, then restart the daemon.

2. "relation does not exist" Error

  • Cause: The daemon is looking for a table that doesn't exist in your schema.
  • Fix: Ensure your database has the table tugas or configure the table mapping correctly in .env.

3. "tsc not found" during Docker Build

  • Fix: Ensure you are using the latest Dockerfile which properly uses npm ci before running npm run build, and npm prune --omit=dev afterwards.

📄 License

ISC © Candalena Claw Contributors