Skip to content

FriskyDevelopments/Nebulosa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

103 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

✨ Stix Magic

Stix Magic is a Telegram-first sticker creation platform hosted at stixmagic.com.


Product Overview

Concept Description
Magic Center Main navigation hub presented on /start
Magic Cut Processing pipeline that converts a photo into a sticker draft
Draft Vault Holds un-actioned sticker drafts
Review System Inline Approve / Retry / Trash / Save actions on every draft

Architecture

stixmagic-bot.js          ← Main entry point
β”œβ”€β”€ bot/
β”‚   β”œβ”€β”€ index.js          ← Bot wiring (commands + events)
β”‚   β”œβ”€β”€ magicCenter.js    ← Magic Center menu hub
β”‚   └── handlers/
β”‚       β”œβ”€β”€ stickerHandler.js   ← Photo β†’ Draft (Magic Cut)
β”‚       β”œβ”€β”€ draftHandler.js     ← Draft review callbacks + /drafts /trash
β”‚       └── catalogHandler.js  ← /catalog /mystickers
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ stickerService.js ← Image processing (Magic Cut)
β”‚   β”œβ”€β”€ draftService.js   ← Draft lifecycle (create/approve/retry/trash/save)
β”‚   β”œβ”€β”€ usageService.js   ← Plan limits & usage tracking
β”‚   └── cleanupService.js ← Expired draft removal logic
β”œβ”€β”€ workers/
β”‚   └── cleanupWorker.js  ← Scheduled background cleanup
β”œβ”€β”€ models/
β”‚   └── storage.js        ← In-memory storage (swap for DB in production)
└── config/
    └── limits.js         ← Plan limits (Free / Premium / Pro)

User Flow

User sends photo
   β†’ Magic Cut processes image
   β†’ Draft created in Draft Vault
   β†’ Review card sent with:
       βœ… Approve   – marks draft as approved
       πŸ”„ Retry     – re-generates a new draft
       πŸ—‘ Trash     – marks as rejected / moves to trash
       πŸ’Ύ Save      – keeps in vault for later
   β†’ Only Approved drafts can be published to a sticker pack

Commands

Command Description
/start Open Magic Center
/menu Open Magic Center (alias)
/drafts View Draft Vault
/catalog Browse approved stickers
/mystickers My sticker collection
/trash View trashed drafts
/plans Usage & plan information
/help Help message

Plans & Limits

Plan Creations Period Max Drafts
Free 3 per day 10
Premium 50 per month 100
Pro 300 per month Unlimited

Draft expiry and trash retention periods are configurable in config/limits.js.


Setup

1. Install dependencies

npm install

2. Configure environment

cp .env.example .env
# Edit .env and set BOT_TOKEN

3. Run

npm start

For webhook mode, also set WEBHOOK_URL in your environment.


Environment Variables

Variable Required Description
BOT_TOKEN βœ… Telegram Bot API token
PORT No HTTP server port (default: 3000)
WEBHOOK_URL No Public base URL for webhook mode

Cleanup

A background cleanup worker runs every hour and:

  • Expires DRAFT/SAVED records past their expiry timestamp
  • Permanently deletes REJECTED/EXPIRED records past the trash retention period

Development Roadmap

  • Phase 1 (current): Magic Center, draft lifecycle, usage limits, cleanup worker
  • Phase 2: Real background-removal / WebP conversion in Magic Cut
  • Phase 3: Sticker pack publishing, public catalog, sharing
  • Phase 4: Animated stickers, collaboration packs

License

MIT Β© PupFr

About

Nebulosa is a powerful platform for Zoom automation and security. It gives you full control with real-time tools, smart moderation, and seamless integrations. 🐾 Made with a Frisky Paw and a brave little heartβ€”for every soul who dares to shine on Zoom. ✨

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors