1.0.1 • Published 5 months ago

@saas-platform/shared-lib v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@saas-platform/shared-lib

Shared library for SaaS platform microservices built with TypeScript, Fastify, and modern observability tools.

Features

  • 🚀 TypeScript-first with strict type checking
  • 🔌 Fastify integration with plugins and middleware
  • 🗄️ Multi-tenant architecture with automatic isolation
  • 💾 Database support with Prisma ORM and connection pooling
  • 🗃️ Caching with Redis and ElastiCache support
  • 📨 Messaging with SQS and EventBridge
  • 📊 Observability with OpenTelemetry, Prometheus, and structured logging
  • ☁️ Cloud-native with Lambda and container support
  • ⚙️ Environment-based configuration with validation

Installation

npm install @saas-platform/shared-lib

Quick Start

import { createApp } from '@saas-platform/shared-lib'

const { app, config } = await createApp()

await app.listen({
  port: config.service.port,
  host: config.service.host,
})

Documentation

See docs/ for detailed documentation and examples.

License

MIT