Singularity
Welcome to the foundation for your next backend! Build your app with everything from authentication to content management, ready out of the box. π
Save time, ensure consistency, and focus on features β whether you're building an API, microservice, or full-stack app.
β‘ Why Use This?β
- β Batteries Included: Authentication with 2FA and email verification, content management, file storage, and key rotation already set up.
- β Production-Ready by Default: All components are built with real-world usage and scalability in mind. This foundation is built on Spring Boot, ensuring a reliable, mature, and modern technology stack.
- β Open & Extensible: Contributions welcome! Letβs refine this into a toolkit others can benefit from too.
π Features at a Glanceβ
Authentication & User Managementβ
- π JWT auth with refresh tokens, 2FA, secure HTTP-only cookies.
- π§ Email verification with expiration and resend control.
- π§βπ» Role-based user access with custom exceptions for better error handling.
Data & Cachingβ
- πΎ MongoDB for persistence, Redis for caching and session storage.
- ποΈ S3-based object storage abstraction with local fallback.
Content Managementβ
- π§© Abstract base for content types with built-in access control (users, groups, roles).
- π Multi-language support out-of-the-box β store and serve content in multiple locales.
- π·οΈ Configurable tagging system for flexible content organization.
- π Prebuilt
Article
class for instant publishing workflows.
Security & Key Managementβ
- π Secret manager integration with automated key rotation for your secrets.
Performanceβ
- βοΈ Kotlin Coroutines for async flows.
- π¦ Configurable IP and user-based rate limiting.