# Small Pics

> Small Pics image delivery for EmDash.

Source: https://emdashcmseverything.com/plugins/small-pics/

- Category: Media
- Status: available
- Version: 0.1.0
- Price: Unknown
- Compatibility: EmDash ^1.2.0
- License: MIT
- Maintainer: smallpics-dev
- Download: https://www.npmjs.com/package/@smallpics/emdash
- Repository: https://github.com/SmallPics/emdash-smallpics
- Published: 2026-11-01

Small Pics image delivery for EmDash.

## Installation

Install the package from npm:

```bash
npm install @smallpics/emdash
```

Register the plugin in your Astro config:

```js
import { defineConfig } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';
import react from '@astrojs/react';
import emdash from 'emdash/astro';
import { d1, r2 } from '@emdash-cms/cloudflare';
import smallpics, { mediaStorageOptions } from '@smallpics/emdash';

const baseUrl = 'https://media.smallpics.io';

export default defineConfig({
  output: 'server',
  adapter: cloudflare(),
  integrations: [
    react(),
    emdash({
      database: d1({ binding: 'DB' }),
      storage: r2(mediaStorageOptions(baseUrl, 'MEDIA')),
      images: false,
    }),
    smallpics({ baseUrl }),
  ],
});
```

## Details

- **Latest version:** 0.1.0
- **License:** MIT
- **Publisher:** smallpics-dev
- **Requires:** EmDash `^1.2.0`
- **Source repository:** [https://github.com/SmallPics/emdash-smallpics](https://github.com/SmallPics/emdash-smallpics)
- **npm package:** [@smallpics/emdash](https://www.npmjs.com/package/@smallpics/emdash)
