safe-action-client

Community

Build safe, validated server actions quickly

Authorgepetojj
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers need a structured, safe way to define server actions with validated inputs/outputs, centralized error handling, and reusable clients across an app.

Core Features & Use Cases

  • Client creation and configuration: createSafeActionClient with custom server error handling and default validation shapes.
  • Input & Output validation: .inputSchema(), .outputSchema(), and support for Standard Schema libraries.
  • Action definitions: define .action() and .stateAction() for server and stateful actions.
  • Middleware & metadata: use() middleware chaining and .metadata() support for contextual data.
  • Error handling: centralized handleServerError, DEFAULT_SERVER_ERROR_MESSAGE, and structured server errors.

Quick Start

Create a next-safe-action client, define input/output schemas, and implement a sample action to validate inputs and handle server errors.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: safe-action-client
Download link: https://github.com/gepetojj/umo/archive/main.zip#safe-action-client

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.