PHPackages                             artisan-build/sink-server - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. artisan-build/sink-server

ActiveLibrary[Testing &amp; Quality](/categories/testing)

artisan-build/sink-server
=========================

The receive/store/serve side of Sink: ingest, parse, storage, prune, inbox UI, and the read-only MCP server. Consumed by the Sink app.

v0.1.0(yesterday)00MITPHPPHP ^8.3

Since Aug 24Pushed yesterdayCompare

[ Source](https://github.com/artisan-build/sink-server)[ Packagist](https://packagist.org/packages/artisan-build/sink-server)[ RSS](/packages/artisan-build-sink-server/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (15)Versions (2)Used By (0)

sink-server
===========

[](#sink-server)

> **Read-only mirror.** This repository is a read-only split of the [`artisan-build/sink`](https://github.com/artisan-build/sink) monorepo. Issues and pull requests are disabled here — please open them on the monorepo.

The **receive side** of Sink. It is consumed by the Sink app and provides the ingest path, metadata parsing, object storage, and retention pruning. The inbox UI and body-blind MCP server land in later build steps.

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

[](#installation)

```
composer require artisan-build/sink-server
```

This package is consumed by the Sink app. See the [Sink app README](https://github.com/artisan-build/sink) for environment setup.

Ingest
------

[](#ingest)

`POST /ingest` accepts a `sink-contracts` envelope authenticated with `Authorization: Bearer `. Tokens are resolved through `artisan-build/built-for-cloud`. Valid envelopes are upserted by `idempotency_key`, raw MIME is written to object storage, and a queued parse job extracts searchable metadata.

`GET /capabilities` is unauthenticated and reports the supported envelope major versions.

Storage
-------

[](#storage)

Raw MIME is stored on `SINK_DISK` at `raw/{app}/{idempotency_key}.eml`. Attachments are extracted by the parse worker and stored at `attachments/{app}/{idempotency_key}/{n}-{filename}`. Body text is not persisted in database columns; bodies remain only in the raw MIME object.

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

[](#configuration)

Publish the config with:

```
php artisan vendor:publish --tag=sink-server-config
```

Useful environment variables:

- `SINK_ROUTE_PREFIX` defaults to empty.
- `SINK_QUEUE_CONNECTION` selects the parse queue connection.
- `SINK_DISK` falls back to `FILESYSTEM_DISK`, then `local`.
- `SINK_DB_*` configures an explicit Postgres `sink` connection. When omitted, `sink` mirrors the app default database connection so local sqlite and CI migrations keep working.
- `SINK_RETENTION_DAYS` defaults to `7`.
- `SINK_MAX_MESSAGES` optionally caps retained message count.
- `SINK_MAX_TOTAL_BYTES` optionally caps retained raw MIME bytes.

Retention
---------

[](#retention)

`sink:maintain` runs `sink:prune`. The service provider schedules it hourly. Pruning deletes expired messages and object-storage blobs, then enforces optional message-count and byte caps oldest-first.

License
-------

[](#license)

MIT. See [LICENSE](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% 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

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1053395?v=4)[Ed Grosvenor](/maintainers/edgrosvenor)[@edgrosvenor](https://github.com/edgrosvenor)

---

Top Contributors

[![edgrosvenor](https://avatars.githubusercontent.com/u/1053395?v=4)](https://github.com/edgrosvenor "edgrosvenor (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

testinglaravelmcpmailsink

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/artisan-build-sink-server/health.svg)

```
[![Health](https://phpackages.com/badges/artisan-build-sink-server/health.svg)](https://phpackages.com/packages/artisan-build-sink-server)
```

###  Alternatives

[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k57.2M688](/packages/laravel-scout)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M341](/packages/laravel-ai)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k16.3M158](/packages/laravel-pulse)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[illuminate/notifications

The Illuminate Notifications package.

483.1M1.2k](/packages/illuminate-notifications)

PHPackages © 2026

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