PHPackages                             trendyminds/distributary - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. trendyminds/distributary

ActiveLibrary[Templating &amp; Views](/categories/templating)

trendyminds/distributary
========================

Import a Google Docs HTML archive and let AI map it into Statamic page blocks.

1.0.0(2mo ago)02MITPHP

Since May 19Pushed 2mo agoCompare

[ Source](https://github.com/trendyminds/distributary)[ Packagist](https://packagist.org/packages/trendyminds/distributary)[ RSS](/packages/trendyminds-distributary/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Distributary
============

[](#distributary)

A Statamic 6 addon that turns a Google Docs export into a draft page entry. Upload a "Web Page" `.zip`, and Claude maps the document's HTML and images into your existing replicator blocks. The import always lands as a draft so an editor can review before publishing.

Requirements
------------

[](#requirements)

- PHP 8.4+
- Statamic 6
- A `pages` collection with a `blocks` replicator field
- An `uploads` asset container
- A configured [`laravel/ai`](https://github.com/laravel/ai) provider (Anthropic by default)

Installation
------------

[](#installation)

```
composer require trendyminds/distributary
```

Then set your AI credentials in `.env` (see `laravel/ai`'s docs for the provider you're using):

```
ANTHROPIC_API_KEY=...
```

Usage
-----

[](#usage)

The addon registers a CP utility at **Utilities → AI Import** (the display name is configurable — see below).

1. In Google Docs, choose **File → Download → Web Page (.html, zipped)**.
2. Upload the `.zip` in the utility.
3. Wait for the import to process (parse, image upload, AI mapping).
4. Review the proposed blocks on the preview screen, edit the title, and confirm.
5. The addon creates a draft entry in `pages` and drops you on its edit screen.

Configuration
-------------

[](#configuration)

The defaults work out of the box. To customize, publish the config:

```
php artisan vendor:publish --tag=distributary-config
```

EnvDefaultNotes`DISTRIBUTARY_DISPLAY_NAME``AI Import`The name shown to content authors in the CP utility list, nav, and page titles.`DISTRIBUTARY_PROVIDER``anthropic`Any provider configured in `config/ai.php`.`DISTRIBUTARY_MODEL``claude-opus-4-7`Model identifier for that provider.How it works
------------

[](#how-it-works)

1. **Parse** — extracts HTML and images from the `.zip` to a temporary directory.
2. **Import images** — streams each image into the `uploads` asset container under `distributary/YYYY-MM/`.
3. **Inspect blueprint** — reads the `pages` collection's `blocks` replicator and summarizes each set for the model.
4. **Map** — sends the document HTML, blueprint summary, and image references to Claude, which returns a structured block list.
5. **Preview** — renders the proposed entry for review. Mapping results are cached for 30 days keyed by file hash, so re-uploads are instant.
6. **Confirm** — builds a draft entry from the approved mapping.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance86

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

66d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51ee860b8a11c81c32b2d0bf9f90e23067fcf3cf72476bfab89913bf0e1ea3b3?d=identicon)[trendyminds](/maintainers/trendyminds)

---

Top Contributors

[![aaronbushnell](https://avatars.githubusercontent.com/u/315202?v=4)](https://github.com/aaronbushnell "aaronbushnell (3 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/trendyminds-distributary/health.svg)

```
[![Health](https://phpackages.com/badges/trendyminds-distributary/health.svg)](https://phpackages.com/packages/trendyminds-distributary)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k8](/packages/statamic-rad-pack-runway)[statamic/seo-pro

68516.6k](/packages/statamic-seo-pro)[statamic/statamic

Statamic

829179.5k](/packages/statamic-statamic)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3518.3k](/packages/duncanmcclean-statamic-cargo)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

127741.1k18](/packages/statamic-eloquent-driver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
