Skip to content

mattn/nostr-todo-bot

Repository files navigation

Nostr TODO Bot

A TODO list bot for Nostr that runs on Cloudflare Workers. ☑

Features

  • Manage personal TODO lists via Nostr mentions
  • Per-user TODO numbering
  • Web interface for viewing TODOs
  • Profile information display with caching

Commands

  • list - Show all incomplete TODOs
  • add <content> - Add a new TODO (supports multiline)
  • show <id> - Display full TODO content
  • done <id> - Mark TODO as completed
  • delete <id> - Delete a TODO
  • search <keyword> - Search TODOs by keyword
  • web - Get web view URL

Setup

  1. Install dependencies:
npm install
  1. Create D1 database:
npx wrangler d1 create nostr-todo
  1. Update wrangler.jsonc with your database ID

  2. Apply database schema:

npx wrangler d1 execute nostr-todo --remote --file=schema.sql
  1. Set environment variable:
npx wrangler secret put TODO_NSEC
  1. Deploy:
npm run deploy

Development

npm run dev

License

MIT

Authors

Yasuhiro Matsumoto (a.k.a. mattn)

About

nostr todo bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published