ts-bridge

Develops Node/Bun/Deno TypeScript bridges for NovelSaga CLI JSON-RPC services using createBridgeServer.

Updated Dec 10, 2025
One-click install
npx skills add https://github.com/novelsaga/NSaga --skill ts-bridge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ts-bridge
Source: https://github.com/novelsaga/NSaga/tree/main/.opencode/skills/ts-bridge
Command: npx skills add https://github.com/novelsaga/NSaga --skill ts-bridge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bridges simplify the integration between the Rust CLI and TypeScript bridge code used for NovelSaga JSON-RPC services, enabling structured service patterns and runtime adapters.

Core Features & Use Cases

  • Architecture: CLI (Rust) ←--JSON-RPC--→ Bridge (TS) ←--→ Runtime (Node/Bun/Deno)
  • Service Pattern: Demonstrates registering a service with createBridgeServer and starting the bridge.
  • Build & Output: Includes incremental and force rebuild commands and typical output locations for dist artifacts and assets.

Quick Start

Create a new bridge service by registering a 'config' service and starting the bridge runtime.

Frequently Asked Questions about ts-bridge

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

FAQPage Schema
How do I create a TypeScript bridge for JSON-RPC services?

Register a service using createBridgeServer and start the bridge to connect your CLI to a TypeScript runtime. This pattern establishes structured JSON-RPC 2.0 communication between Rust and Node, Bun, or Deno.

How does a JSON-RPC bridge connect a Rust CLI to TypeScript runtimes?

A JSON-RPC bridge connects a Rust CLI to TypeScript runtimes by routing requests through a TS bridge layer, enabling structured service patterns and runtime adapters for Node, Bun, and Deno environments.

Can I use createBridgeServer to register services across Node, Bun, and Deno?

Yes, createBridgeServer registers services to establish JSON-RPC 2.0 communication across Node, Bun, and Deno runtimes. It acts as the central adapter connecting Rust CLI commands to TypeScript execution environments.

What is the recommended build process for TypeScript JSON-RPC bridge artifacts?

The recommended build process utilizes incremental and force rebuild commands to compile TypeScript bridge code. This generates dist artifacts and assets required for the JSON-RPC service runtime.

When do I need to implement a TypeScript bridge service for my CLI?

You need a TypeScript bridge service when integrating a Rust CLI with TS-based runtime environments via JSON-RPC. It simplifies structured service patterns and acts as a runtime adapter for executing commands.