DEV Community

removefreeapp-dot
removefreeapp-dot

Posted on

Building a Zero-Permission, Zero-Upload Discord App (/remove-background) with Next.js 16 & WebGPU

Discord server admins, artists, game masters (Foundry VTT / Roll20), and e-commerce sellers frequently need transparent PNG cutouts for custom server emojis (<256 KB), stickers, avatars, character tokens, and product photos—especially ahead of remove.bg retiring its standalone web app on December 1, 2026.

Most image bots ask for invasive permissions (MESSAGE_CONTENT) and upload user photos to cloud GPU servers. For RemoveFree, we built a stateless HTTP-only Discord App:

  • Zero message permissions: Uses applications.commands scope only (0 access to server chats).
  • Zero image uploads (0 KB): Runs U²-Net-p, MODNet, and BiRefNet Lite 100% locally in browser memory via WebGPU/WASM.
  • Native Ed25519 verification: Next.js 16 route /api/discord/interactions verifies Discord signatures with Node crypto.verify() using DER SPKI prefix 302a300506032b6570032100 and replies ephemerally (flags: 64).

Links

Top comments (0)