open-index/open-npm huggingface dataset:
npm package: @jamx/http
Description: Composable fetch helpers with interceptors, decoders, validators, and Railway-style results.
Author: Joshua Amaju
Latest version: 0.1.0

# `@jamx/http`

Composable HTTP helpers built around `fetch`, interceptors, and `Either`-style
results.

## Install

```bash
pnpm add @jamx/http
```

## Quick Start

```ts
import {
  composeInterceptors,
  createMemoryCacheStore,
  defaultFetch,
  withAuth,
  withCache,
  withHeaders,
  withRetry,
  withTimeout,
} from "@jamx/http";

const cache = createMemoryCacheStore();

const handler = composeInterceptors(
  withTimeout(250),
  withHeaders({ accept: "application/json" }),
  withAuth("demo-token"),
  withJsonBody({ tenant: "team-a" }),
  withCache({ store: cache }),
  withRetry({ retries: 1 }),
)(defaultFetch);
```

## Core APIs

```ts
import {
  createFetchHandler,
  decodeJson,
  defaultContext,
  defaultFetch,
  expectStatus,
} from "@jamx/http";

const customFetch = createFetchHandler(defaultContext);

const response = await defaultFetch("https://api.example.com/users/42");
const user = await decodeJson(expectStatus(response, 200), decodeUser);
```

- `defaultContext` is a reusable `Context` backed by `globalThis.fetch`.
- `defaultFetch` is `createFetchHandler(defaultContext)`.
- `createFetchHandler(...)` is useful when you want to inject a mocked or custom
  fetch implementation.
- `composeInterceptors(...)` returns an executable handler with a composed result.

## Decoder Helpers

Decoder helpers accept either a plain `Response` or an `Either<..., Response>`.

```ts
import { decodeJson, json, text, validate } from "@jamx/http";
import { z } from "zod";

const rawResponse = await fetch("https://api.example.com/users/42");
const userSchema = z.object({ id: z.number(), name: z.string() });

const bodyText = await text(rawResponse);
const bodyJson = await json(rawResponse);
const user = await decodeJson(rawResponse, decodeUser);
const userWithSchema = await validate(bodyJson, userSchema);
```

When you already have an `Either`, upstream errors are preserved in the helper
result type.

## Notes

- `withBaseUrl` rebases request paths onto a configured base URL.
- Put request-shaping interceptors like `withHeaders` and `withAuth` before
  `withCache` so cache keys can include the final request headers.
- `withRetry` only retries idempotent methods by default. Pass
  `methods: ["POST"]` if you need to opt a write request into replay.
- `validate(result, schema)` accepts an `Either` plus a Standard Schema
  compatible validator such as Zod.
- `withTimeout` aborts the underlying request and returns a `TimeoutError`
  when the timeout elapses. `TimeoutError` extends `FetchError`.
npm package: @jan-herman/vite-plugin-svg-sprite
Description: Creating one sprite file on the fly
Author: Jan Herman
Latest version: 1.0.4

# vite-plugin-svg-sprite

> Quick and dirty fork of [vite-svg-sprite-wrapper](https://github.com/vshepel/vite-svg-sprite-wrapper)

## Install

```
npm i @jan-herman/vite-plugin-svg-sprite -D
```
npm package: @jan-leila/react-bread-crumb
Description: library for managing bread crumbs in react
Author: jan-leila
Latest version: 1.0.1

# react-bread-crumb

[![NPM](https://img.shields.io/npm/v/@jan-leila/react-bread-crumb.svg)](https://www.npmjs.com/package/@jan-leila/react-bread-crumb) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @jan-leila/react-bread-crumb
```

## Basic Usage

```jsx
import React, { Component } from 'react'

import { Breadcrumb, useTrailView, useCrumb } from '@jan-leila/react-bread-crumb'

const App = () => {
  return (
    return <Breadcrumb>
      {/* your app goes here*/}
    </Breadcrumb>
  )
}

const Header = () => {
  const trail = useTrail()
  /* render trail here */
}

const Page = () => {
  useCrumb()
}
```

## Advanced usage

`useRawTrail()` - the raw trail can get exported if you would like to use it to re initialize it when Breadcrumb reloads    
`<Breadcrumb trail={...} />` - trail can be provided to Breadcrumb to initialize the crumb on reloads   
`useRootCrumb(crumb)` - useRootCrumb can be used to set a root element that will reset the trail   
`<RootCrumb crumb={...} />` - RootCrumb can be used in the same way as useRootCrumb   
`useCrumb(crumb, id)` - useCrumb can be provided and id that will be used to truncate the trail when a match is found earlier in the trail   
`<Crumb crumb={...} id={...} />` - Crumb can be used in the same way as useCrumb   

## License

MIT © [jan-leila](https://github.com/jan-leila)
npm package: @jan.jacob.holst/adapter-prisma-6
Description: Prisma adapter for Lucia
Author: pilcrowonpaper
Latest version: 4.0.2

# `@lucia-auth/adapter-prisma`

[Prisma](https://www.prisma.io) adapter for Lucia.

**[Documentation](https://v3.lucia-auth.com/database/prisma)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-prisma/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-prisma
pnpm add @lucia-auth/adapter-prisma
yarn add @lucia-auth/adapter-prisma
```

## Testing

```
pnpm test-setup
pnpm test
```