• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
CHUKSINHO_KEYD

CHUKSINHO_KEYD

App

Public
Like
App
Home
Code
4
backend
3
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://CHUKSINHO_KEYD--3cfa67a03f4e11f0b25676b3cceeab13.web.val.run
README.md

WhatsApp Deleted Message Tracker

A web application that tracks deleted messages from WhatsApp using the WhatsApp Business API.

Features

  • Receives WhatsApp messages via webhook
  • Tracks when messages are deleted by senders
  • Provides a web interface to view deleted messages
  • Stores message history and deletion events

Setup

  1. WhatsApp Business API Setup:

    • Create a WhatsApp Business account
    • Set up a webhook URL pointing to this app
    • Configure the webhook to receive message events
    • Get your access token and verify token
  2. Environment Variables:

    • WHATSAPP_VERIFY_TOKEN: Token for webhook verification
    • WHATSAPP_ACCESS_TOKEN: Access token for WhatsApp API
    • WHATSAPP_PHONE_NUMBER_ID: Your WhatsApp Business phone number ID
  3. Webhook Configuration:

    • Webhook URL: https://your-app-url.web.val.run/webhook
    • Verify Token: Use the same token as WHATSAPP_VERIFY_TOKEN
    • Subscribe to: messages events

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ migrations.ts    # Database schema
β”‚   β”‚   └── queries.ts       # Database operations
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ webhook.ts       # WhatsApp webhook handler
β”‚   β”‚   └── api.ts          # API routes for frontend
β”‚   └── index.ts            # Main server entry point
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx         # Main app component
β”‚   β”‚   β”œβ”€β”€ MessageList.tsx # Deleted messages list
β”‚   β”‚   └── MessageItem.tsx # Individual message display
β”‚   β”œβ”€β”€ index.html          # Main HTML template
β”‚   └── index.tsx           # Frontend entry point
└── shared/
    └── types.ts            # Shared TypeScript types

How It Works

  1. WhatsApp sends webhook events when messages are received or deleted
  2. The app stores all incoming messages in the database
  3. When a deletion event is received, the message is marked as deleted
  4. Users can view deleted messages through the web interface
  5. The app maintains a history of all messages and their deletion status

API Endpoints

  • GET / - Web interface
  • POST /webhook - WhatsApp webhook endpoint
  • GET /webhook - Webhook verification
  • GET /api/deleted-messages - Get all deleted messages
  • GET /api/messages/:chatId - Get messages for a specific chat

Note

This app requires proper WhatsApp Business API setup and webhook configuration to function correctly.

HTTP
  • index.ts
    CHUKSINHO_KEYD--3c…13.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.