New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@cratestack/runtime-fetch

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cratestack/runtime-fetch

A typeof-fetch-compatible transport for CrateStack's generated TypeScript RPC client, adding an optional per-call timeout on top of the global fetch.

Source
npmnpm
Version
0.14.0
Version published
Weekly downloads
24
-94.39%
Maintainers
1
Weekly downloads
 
Created
Source

@cratestack/runtime-fetch

A typeof fetch-compatible transport for CrateStack's generated TypeScript RPC client (transport rpc schemas). With no options it's byte-identical to the global fetch; its only behavior is an optional per-call timeoutMs.

React Native compatibility evidence is tracked in docs/react-native-compatibility.md.

Usage

import { createFetchRuntime } from "@cratestack/runtime-fetch";
import { CratestackRpcRuntime } from "./generated/runtime"; // your project's generated client

const runtime = new CratestackRpcRuntime("https://api.example.com", {
  fetch: createFetchRuntime({ timeoutMs: 10_000 }),
});

A timeout fires an AbortSignal.timeout-style abort; if the call already carries its own AbortSignal (e.g. CratestackRpcCallOptions.signal), either one aborting cancels the request — neither overrides the other.

Keywords

cratestack

FAQs

Package last updated on 27 Sep 2026

Related posts