SvelteKit
GitHub

๐Ÿ“จ Messages App

RESTful API for Shift Messaging

A standalone messaging service for crew shift management. Built with SvelteKit, designed to be independent and scalable.

Features

  • โœ… Sign-in Messages - Track crew member arrivals
  • ๐Ÿšจ Alerts - Urgent notifications with priorities (normal/high/urgent)
  • ๐Ÿ“‹ Requests - Equipment, supply, and resource requests
  • ๐Ÿ”” Toast Notifications - Real-time visual alerts
  • ๐Ÿ“ฆ Acknowledgment Tracking - See who's read important messages
  • ๐Ÿ“š Archive System - Move completed messages to JSONB storage

API Endpoints (Generic)

GET /api/messages

Fetch messages with flexible filtering (source_app, event_type, priority, context fields)

POST /api/messages

Create a new message with any context data (no foreign key constraints)

POST /api/messages/:id/acknowledge

Add acknowledgment to message metadata

POST /api/messages/archive

Archive messages by flexible filter criteria

๐ŸŽฏ Key Feature: No Foreign Keys!

This API accepts any key-value pairs in the context field. No database relationships to maintain. Just send your data and query it back.

Part of the Crew Manager project ecosystem