open-index/open-npm huggingface dataset:
npm package: @stainless-api/repack-package
Description: Repack NPM tgz files for better compression.
Latest version: 0.0.1

# repack-package

Optimize NPM package tarballs by reordering their files and compressing them with [Zopfli](https://github.com/google/zopfli)

## Usage

```bash
repack input.tgz output.tgz
```

## Features

- Optimized ordering for dual CJS/ESM packages (up to 25% size savings)
- Keeps original if no size reduction
- Shows progress with timing
- Skips unnecessary files (`.git`, `.DS_Store`, etc.)
npm package: @stainlessdev/docs-xray
Description: Turbocharge your Stainless Docs with Request Logs!
Latest version: 0.1.0

# @stainlessdev/docs-xray

Turbocharge your Stainless Docs with Request Logs!

## Install

```sh
pnpm add @stainlessdev/docs-xray
```

## Basic usage

Configure `astro.config.ts` like:

```ts
import { xrayIntegration } from "@stainlessdev/docs-xray/integration";
export default defineConfig({
  integrations: [
    xrayIntegration({ xrayApi: process.env.XRAY_API }),
    stainlessDocs({
      // ...
      tabs: [
        // ...
        {
          label: "X-ray",
          link: "/xray",
        },
      ],
    }),
  ],
});
```

Create an Astro page for xray, like `src/pages/xray.astro`:

```ts
---
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import { XRayPageSetup } from '@stainlessdev/docs-xray';
import { CMS_PORT, BASE_PATH } from 'virtual:stl-starlight-virtual-module';

const XRAY_API = import.meta.env.XRAY_API || null;
---

<StarlightPage
  frontmatter={{
    title: 'X-ray',
    pagefind: false,
    tableOfContents: false,
    template: 'splash',
  }}
  headings={[]}
>
  <XRayPageSetup
    xrayApi={XRAY_API}
    cmsPort={CMS_PORT}
    basePath={BASE_PATH}
  />
</StarlightPage>
```