Skip to main content

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.