Ross ROSS = Recommend OSS · open-source software intelligence for agents

next-safe-action/next-safe-action

Type safe and validated Server Actions in your Next.js project. observed · 2026-08-28

github.com/next-safe-action/next-safe-action · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

92/100

  • Activity 98
  • Release rhythm 86
  • Longevity 88
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 1.0
  • age_days: 1236
  • days_rel: 13
  • days_push: 13
  • n_releases_24m: 71

Full methodology

Adoption not part of the score

3061 stars · 47 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

next-safe-action is a TypeScript library for defining type-safe, validated Next.js Server Actions with middleware support. It works with any Standard Schema validator (e.g., Zod, Valibot) and provides end-to-end type safety between server and client code.

Use cases

  • validate inputs for next.js server actions
  • create type-safe mutations in next.js app router
  • add middleware like auth to server actions
  • handle errors in server actions with proper typing
  • build end-to-end typesafe api with next.js
  • use zod validation with react server components

When to choose

  • you use Next.js 14+ App Router with Server Actions and want type safety
  • you need input validation and middleware (auth, logging) for mutations
  • you want a well-maintained library with strong community adoption

When to avoid

  • you don't use Next.js or its Server Actions
  • you're on an older Next.js version without App Router support
  • you prefer plain API routes or tRPC for client-server communication

Facets

library · maturity active

api-framework middleware form-handling type-system web-development frontend backend developer-tools nextjs server-actions react-server-components zod standard-schema app-router type-safety nodejs typescript web-server

3 sources

Member repositories

RepositoryRoleHealth v2
next-safe-action/next-safe-actionmain92

For agents

markdown · JSON · MCP: product_card(name="next-safe-action/next-safe-action")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem