torkbot

torkbot / sledge

Public

A SQLite-backed event and work engine that stays consistent across retries, restarts, and failures.

14
0
100% credibility
Found Mar 22, 2026 at 14 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A toolkit for building dependable background task systems from events using lightweight data storage that handles crashes and restarts gracefully.

How It Works

1
📰 Discover Sledge

You hear about a handy tool that keeps your app's background chores running smoothly, no matter what.

2
💾 Prepare your notebook

You create a simple file to safely record events and tasks, like a trusty journal for your app.

3
📝 Sketch your workflow

You outline simple rules, like 'new user joins' means 'send welcome note', making everything feel organized and predictable.

4
🔗 Link it all up

You connect your journal and rules so the tool knows exactly what to do.

5
▶️ Turn it on

With one go, your reliable task helper springs to life, ready for action.

6
Happen an event

Something occurs in your app, like a signup, and you simply note it down.

Tasks finish perfectly

Your chores complete without a hitch, retries happen automatically if needed, and you rest easy knowing nothing gets lost.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 14 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is sledge?

Sledge is a TypeScript library for building durable event-driven workflows using SQLite as the backing store. It handles event logging and work queuing in a single transaction, ensuring consistency across retries, restarts, and failures – no lost work if your app crashes mid-process. Developers get a simple API to emit events, project them into indexes, enqueue background jobs, and handle them with lease-based execution and dedupe keys for idempotency.

Why is it gaining traction?

Unlike heavier queues like Bull or RabbitMQ, Sledge stays lightweight with zero external deps beyond SQLite (better-sqlite3 or Turso), tunable contention handling, and built-in retry/dead-letter logic. The hook is its outbox-style reliability for webhooks or notifications: emit once, process safely, query projections directly. TypeBox schemas enforce runtime validation, catching schema mismatches early.

Who should use this?

Node.js backend devs handling webhook ingestion, email/slack pipelines, or long-running API jobs that must survive restarts. Ideal for solo devs or small teams wanting a sledgehammer for consistent event processing without Kafka complexity – think Sledgehammer Games-level durability in a sledge hammer stream.

Verdict

Grab Sledge for prototypes or low-volume durable queues; its docs and tests are solid, but 14 stars and 1.0% credibility score signal early maturity – production use needs more battle-testing. Worth a spin if SQLite-backed engines fit your stack.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.