saraha-anonymous-platform

Fullstack anonymous feedback and social messaging platform built with Node.js, E

Saraha Anonymous Platform

An anonymous inbox API. Every user gets a public link. Anyone can send them a message without an account, and the owner reads, answers publicly, blocks or reports it. Built with Node.js, Express and MongoDB.

What works

Verified by the test suite in test/api.test.js (9 tests, run against an in-memory MongoDB):

API

Method Path Auth Purpose
POST /api/auth/register no create account
POST /api/auth/login no get a token
GET /api/users/:username no public profile and answers
POST /api/users/:username/messages no send anonymous message
GET /api/users/me yes own account
PATCH /api/users/me/settings yes open or close inbox
DELETE /api/users/me yes delete account and messages
GET /api/messages yes inbox (page, limit, unread=true)
PATCH /api/messages/:id/read yes mark read
POST /api/messages/:id/answer yes answer publicly
POST /api/messages/:id/report yes flag a message
POST /api/messages/:id/block yes block the sender
DELETE /api/messages/:id yes delete a message

Run it

cp .env.example .env   # set MONGO_URI, JWT_SECRET, FINGERPRINT_SECRET
npm install
npm start
npm test

Not built yet

Licence

ISC