orpc-superjson

Replace the default oRPC RPC serializer with SuperJson.

8|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/ali-master/skills --skill orpc-superjson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc-superjson
Source: https://github.com/ali-master/skills/tree/main/skills/orpc-superjson
Command: npx skills add https://github.com/ali-master/skills --skill orpc-superjson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires superjson, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for a more flexible and widely adopted serialization format in the oRPC ecosystem, replacing the default serializer with SuperJson.

Core Features & Use Cases

  • SuperJson Integration: Replaces the default oRPC RPC serializer with SuperJson, offering a different serialization format.
  • Compatibility: Supports SuperJson-compatible data types and AsyncIteratorObject for Event Iterators.
  • Use Case: For developers looking to use a more flexible serialization format that is widely adopted in the industry.

Quick Start

Replace the default oRPC RPC serializer with SuperJson in your project.

Frequently Asked Questions about orpc-superjson

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace the default oRPC serializer with SuperJson?

To replace the default oRPC serializer with SuperJson, you apply this Skill's scripts to swap the built-in RPC serialization mechanism with the SuperJson library, enabling a more flexible data format for your oRPC applications.

What data types are supported when using SuperJson for oRPC serialization?

SuperJson serialization for oRPC supports all SuperJson-compatible data types and includes specific compatibility for AsyncIteratorObject, ensuring Event Iterators function correctly within the oRPC ecosystem.

Do I need to install the SuperJson library to use this serialization format in oRPC?

Yes, you need the SuperJson library installed as a dependency to handle the serialization and deserialization logic that replaces the default oRPC RPC serializer.

Why use SuperJson instead of the default oRPC serializer?

Using SuperJson instead of the default oRPC serializer provides a widely adopted and more flexible serialization format, ensuring better compatibility for complex data types across your oRPC applications.

Does oRPC serialization with SuperJson support Event Iterators?

Yes, oRPC serialization with SuperJson supports Event Iterators by explicitly handling the AsyncIteratorObject data type during the serialization and deserialization processes.

What are the limitations of replacing the default oRPC serializer with SuperJson?

The primary limitation is that data types must be SuperJson-compatible, as the replacement relies entirely on the SuperJson library for serialization and deserialization instead of the default oRPC format.