CurveLink
A smart community notification platform built with Node.js and Express that allows building management to broadcast emergency notifications and safety alerts to subscribed residents via Twilio SMS.
CurveLink
Overview
A smart community notification platform built with Node.js and Express that allows building management to broadcast emergency notifications and safety alerts to subscribed residents via Twilio SMS.
Project Structure
server.js- Main Express server with API endpointsdb.js- PostgreSQL database layer using pg pooltwilio-tools.js- Twilio SMS sending utilitiesindex.html- Public subscription landing page (modern startup design with Inter font)report.html- Resident report submission page (dark mode, lightning bolt theme)report.js- Report page frontend logic with subscriber verificationadmin.html- Admin dashboard for managing alertsadmin.js- Admin dashboard frontend logicadmin.css- Admin dashboard stylessetup.sql- Database schema for PostgreSQL
Key Features
- SMS subscription management (START/STOP commands)
- Auto-Welcome SMS sent on subscription with report page link
- Issue reporting via SMS (REPORT command saves to database)
- Web-based report submission (verified subscribers only)
- Broadcast alerts to all subscribers
- Admin dashboard for viewing subscribers and message history
- Twilio webhook integration for incoming/outgoing SMS
Configuration
The following environment variables are required for full functionality:
Required Secrets (add via Secrets tab)
TWILIO_ACCOUNT_SID- Twilio Account SIDTWILIO_AUTH_TOKEN- Twilio Auth TokenTWILIO_PHONE_NUMBER- Your Twilio phone numberBROADCAST_API_KEY- API key for broadcast endpoint authenticationADMIN_PASSWORD- Password required to authorize broadcasts and dismiss reports
Automatically Configured
DATABASE_URL- PostgreSQL connection string (provided by Replit)
Development
- Server runs on port 5000
- Database: PostgreSQL with tables for subscribers, messages, message_recipients, and reports
- Run with:
npm start - Sandbox Mode: Set
NODE_ENV=developmentto log SMS to console instead of sending real texts
API Endpoints
POST /sms- Twilio webhook for incoming SMSPOST /broadcast- Send alert to all subscribers (requires x-api-key header)POST /admin/broadcast- Password-protected broadcast from admin UIPOST /reports/:id/dismiss- Password-protected dismiss reportPOST /api/subscribe- Public subscription endpoint (sends welcome SMS)POST /api/report- Verified subscriber report submissionGET /subscribers- List all active subscribersGET /alerts- List all sent alertsGET /reports- List all resident-reported issuesGET /admin- Admin Command CenterGET /report.html- Resident report submission page
Recent Changes
- January 24, 2026: Added Auto-Welcome SMS on subscription with report page URL
- January 24, 2026: Created report.html/report.js - web-based report submission for verified subscribers
- January 24, 2026: Added /api/report endpoint with subscriber verification
- January 24, 2026: Added "Report an issue" link to landing page footer
- January 24, 2026: Fixed Safety Inbox button responsiveness with proper event listeners
- January 17, 2026: Built Admin Command Center with dark mode UI, Safety Inbox, password-protected broadcasts
- January 17, 2026: Redesigned landing page with dark mode aesthetic, green accent color, Inter font
- January 17, 2026: Implemented REPORT SMS feature - residents can text "REPORT [issue]" to log issues to database
- January 17, 2026: Initial Replit setup, configured for port 5000, PostgreSQL database initialized
Related Documents
GOOBY - Closing Store Marketplace
A marketplace platform for discovering and purchasing inventory from closing retail stores, focused on the NY, NJ, CT, and PA areas.
Lua Code Obfuscator/Deobfuscator
This is a full-stack web application that provides Lua code obfuscation and deobfuscation services specifically designed for Roblox scripts. The application features a professional Monaco code editor with dual-pane interface, comprehensive obfuscation settings, and file upload/download functionality. Built with a modern React frontend and Node.js/Express backend.
GREEN NODE - Project Overview
Full-stack recycling platform connecting waste generators with verified collectors in Cochabamba, Bolivia.
ADN Systems DMR Peer Server
ADN Systems DMR Peer Server is a fork of FreeDMR, implementing a Digital Mobile Radio (DMR) network server. Launched in April 2024 by international amateur radio enthusiasts, it operates on an Open Bridge Protocol (OBP) fostering a decentralized network architecture. The system handles DMR voice and data communication, acting as a conference bridge/reflector that routes traffic between connected systems (repeaters, hotspots, peers) based on configurable bridge rules.