open-index/open-npm huggingface dataset:
npm package: @md-oss/database
Description: Adapter-agnostic query helpers with typed pagination
Author: Mirasaki Development
Latest version: 0.3.8

# @md-oss/database

Query utilities for database adapters, including typed pagination helpers.

## Usage

```typescript
import { withPagination } from '@md-oss/database';

const pagedQuery = withPagination(dynamicQuery, {
	page: 2,
	pageSize: 25,
});
```

The helper applies limit and offset on any query builder that exposes:

- limit(number)
- offset(number)

### Zod Schema

```typescript
import {
	defaultPaginationOptions,
	paginationOptionsSchema,
} from '@md-oss/database/pagination';

const options = paginationOptionsSchema.parse({
	page: '1',
	pageSize: '20',
});
```
npm package: @md-oss/http-client
Description: Fetch-based HTTP client with retries, timeouts, and typed results
Author: Mirasaki Development
Latest version: 0.3.8

# @md-oss/http-client

Opinionated fetch-based HTTP client with retries, timeouts, and typed responses.

## Features

- Base URL + path parameter resolution
- Query serialization (including arrays)
- Timeout and retry with exponential backoff + jitter
- Unified success/error result shape
- JSON, text, or raw response parsing modes

## Usage

```typescript
import { createHttpClient, isHTTPFailure } from '@md-oss/http-client';

const api = createHttpClient({
	serviceName: 'billing-api',
	baseUrl: 'https://api.example.com',
});

const result = await api.request<{ id: string; total: number }>(
	'/invoices/:id',
	{
		method: 'GET',
		pathParams: { id: 'inv_123' },
		timeoutMs: 5000,
		retries: 2,
	}
);

if (isHTTPFailure(result)) {
	console.error(result.message);
	return;
}

console.log(result.data.total);
```

### Utility

```typescript
import { serializeJson } from '@md-oss/http-client';

const payload = serializeJson({ createdAt: new Date() });
```
npm package: @md-oss/scripts
Description: Reusable monorepo maintenance scripts
Author: Mirasaki Development
Latest version: 0.3.8

# @md-oss/scripts

Reusable package scripts for monorepo maintenance tasks.

## Included Scripts

- ./find-dependency-mismatches
- ./add-module-directives

## find-dependency-mismatches

This script scans workspace package.json files and reports dependency version mismatches across:

- dependencies
- devDependencies
- peerDependencies
- optionalDependencies

### CLI usage

```bash
pnpm exec md-oss-find-dependency-mismatches
```

Optional flags:

- `--cwd <path>`: run against a specific workspace root.

### Programmatic usage

```typescript
import { findDependencyMismatches } from '@md-oss/scripts/find-dependency-mismatches';

const mismatches = findDependencyMismatches();

if (mismatches.size > 0) {
	console.debug(mismatches);
}
```

It expects a pnpm-workspace.yaml file at the repository root.

## add-module-directives

Adds a module-level directive (for example, `use client` or `use server`) to one or more built files.

### CLI usage

The directive is required and must be explicit.

```bash
pnpm exec md-oss-add-module-directive --directive='use client' dist/next-client.mjs dist/next-client.cjs
```

Optional flags:

- `--cwd <path>`: resolve file paths from a specific directory.
- `--directive <value>`: required module directive to prepend.

### Programmatic usage

```typescript
import { addModuleDirectivesToFiles } from '@md-oss/scripts/add-module-directives';

await addModuleDirectivesToFiles({
	directive: 'use client',
	files: ['dist/next-client.mjs', 'dist/next-client.cjs'],
});
```
npm package: @md-oss/serdes
Description: Serializer/Deserializer for JSON, YAML, TOML, MessagePack, and CBOR
Author: Mirasaki Development
Latest version: 0.3.8

# @md-oss/serdes

Serializer/Deserializer for JSON, YAML, TOML, MessagePack, and CBOR.

## Usage

```typescript
import {
	deserialize,
	serializeJson,
	parseJson,
	parseToml,
	parseYaml,
	serialize,
	stringifyJson,
} from "@md-oss/serdes";

const payload = { id: 1, createdAt: new Date(), big: 42n };

const json = stringifyJson(payload);
const parsed = parseJson<typeof payload>(json);

const yaml = serialize("yaml", payload) as string;
const yamlValue = parseYaml(yaml);

const toml = serialize("toml", { app: { name: "md-oss" } }) as string;
const tomlValue = parseToml(toml);

const msgpack = serialize("messagepack", payload) as Uint8Array;
const fromMessagePack = deserialize<typeof payload>("messagepack", msgpack);

const cbor = serialize("cbor", payload) as Uint8Array;
const fromCbor = deserialize<typeof payload>("cbor", cbor);

const transportSafe = serializeJson(payload); // Date and bigint become JSON-safe
```

## Formats

- json
- yaml
- toml
- messagepack (alias: msgpack)
- cbor