Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@expandai/effect-sdk

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expandai/effect-sdk

Effect.ts SDK for expand.ai - Turn any website into a type-safe API

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
3
Created
Source

@expandai/effect-sdk

Effect.ts SDK for expand.ai - Turn any website into a type-safe API.

Installation

pnpm add @expandai/effect-sdk effect @effect/platform @effect/platform-node

Usage

import { ExpandClient } from '@expandai/effect-sdk'
import { NodeHttpClient } from '@effect/platform-node'
import { Effect, Layer } from 'effect'

const program = Effect.gen(function* () {
  const client = yield* ExpandClient

  const result = yield* client.fetch({
    url: 'https://example.com',
    select: { markdown: true },
  })

  console.log(result.data)
})

const MainLayer = Layer.mergeAll(
  ExpandClient.Default,
  NodeHttpClient.layerUndici,
)

program.pipe(
  Effect.provide(MainLayer),
  Effect.runPromise,
)

Configuration

Environment Variables

VariableRequiredDescription
EXPAND_API_KEYYesYour expand.ai API key
EXPAND_BASE_URLNoAPI base URL (default: https://api.expand.ai)

Development

pnpm install
pnpm build
pnpm check
pnpm lint

Regenerating the API client

./scripts/generate-client.sh

License

Apache-2.0

Keywords

effect

FAQs

Package last updated on 21 Feb 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