# jeremydaly/serverless-mysql

A module for managing MySQL connections at SERVERLESS scale

Repository: https://github.com/jeremydaly/serverless-mysql
Canonical: https://ross.abutalabs.com/products/serverless-mysql
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-20T07:14:04+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 40, longevity 100
- inputs: {"age_days": 2930, "days_push": 13, "days_rel": 550, "gap_med": 29.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1205, forks 83 (observed 2026-08-28T04:03:59.171020+00:00)

## What it is
A Node.js library wrapping mysql2 to manage MySQL connections for serverless functions like AWS Lambda. It monitors and caps connection usage, cleans up zombie connections, retries with backoff, and adds async/await support with simplified transactions.

## Use cases
- manage mysql connections in aws lambda functions
- avoid maxing out rds connections with concurrent serverless functions
- run mysql queries with async/await in node.js
- simplify mysql transactions in lambda handlers
- connect to aurora serverless from serverless apps
- retry mysql connections with backoff in serverless environments

## When to choose
- you run mysql-backed APIs on AWS Lambda or other FaaS platforms
- you hit max_connections errors from many concurrent function instances
- you want simple transaction handling with mysql2 in serverless code

## When to avoid
- you run a long-lived server where standard connection pooling suffices
- you use a non-MySQL database
- you need a full ORM rather than a connection manager

## Facets
- artifact type: library
- maturity: active
- function: database-driver, caching, concurrency
- domain: databases, backend, cloud-computing
- platform: serverless, cloud
- tags: mysql, serverless, connection-management, aws-lambda, rds, aurora, mysql2-wrapper, transactions, nodejs

## Member repositories
- jeremydaly/serverless-mysql (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.171020+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:19:35.698942+00:00, confidence not recorded.
  - readme: https://github.com/jeremydaly/serverless-mysql (fetched 2026-08-28T04:03:59.171020+00:00, sha 459fdb4e92bf)
  - registry_npm: https://registry.npmjs.org/serverless-mysql (fetched 2026-08-29T12:27:21.690367+00:00, sha 5cdd802b961a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
