New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

type-registry-effect

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-registry-effect

Fetch, cache, and resolve TypeScript type definitions from npm packages for use with Twoslash and documentation tooling. Built on Effect.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

type-registry-effect

npm version License: MIT

Fetch, cache, and resolve TypeScript type definitions from npm packages for use with Twoslash and other documentation tooling that needs type-aware code samples.

Features

  • Composable Effect programs with typed errors and explicit service requirements
  • Disk-based caching with XDG Base Directory compliance and TTL support
  • Virtual file system generation compatible with @typescript/vfs and Twoslash
  • Module resolution via package.json exports, typesVersions, and legacy fields
  • Concurrent package loading with graceful degradation on partial failures
  • Built-in Effect Metrics (counters and timers) for cache hits, load durations, and batch operations

Installation

npm install type-registry-effect effect @effect/platform

See docs/guides/getting-started.md for peer dependency details.

Quick Start

import { TypeRegistry, PackageSpec } from "type-registry-effect";
import { NodeLayer } from "type-registry-effect/node";
import { Effect } from "effect";

const program = TypeRegistry.getVFS([
  new PackageSpec({ name: "zod", version: "3.23.8" }),
  new PackageSpec({ name: "@effect/schema", version: "0.79.0" }),
]);

const vfs = await Effect.runPromise(Effect.provide(program, NodeLayer));

Documentation

For detailed guides, architecture, and API reference, see docs/.

License

MIT

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts