PHPackages                             repomaa/statamic-unaugment - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. repomaa/statamic-unaugment

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

repomaa/statamic-unaugment
==========================

Statamic addon to disable augmentation for user-defined fields or field types

v1.0.0(5y ago)074PHP

Since Mar 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/repomaa/statamic-unaugment)[ Packagist](https://packagist.org/packages/repomaa/statamic-unaugment)[ RSS](/packages/repomaa-statamic-unaugment/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Unaugment
=========

[](#unaugment)

Statamic "augments" field values by default when it serializes them in content api responses. Unaugment lets you define specific fields or field types that will be left alone and return the data without any modifications. This is especially useful for the Bard or Markdown field types which are otherwise rendered into html. By using the unaugmented data you mitigate any chance of XSS in your client application and are free to structure the dom - or your native app's components - however you want.

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

[](#configuration)

Unaugment will place a sample config file into `config`. Edit it to define the fields and/or field types you want to unaugment.

Output
------

[](#output)

Unaugmented Bard field content looks like this:

```
{
  "data": {
    // ...
    "bard": [
      {
        "content": [
          {
            "text": "Foobar Foo",
            "type": "text"
          },
          {
            "type": "hard_break"
          },
          {
            "type": "hard_break"
          },
          {
            "marks": [
              {
                "type": "bold"
              }
            ],
            "text": "Bold stuff!",
            "type": "text"
          }
        ],
        "type": "paragraph"
      },
      {
        "attrs": {
          "level": 2
        },
        "content": [
          {
            "text": "Header!",
            "type": "text"
          }
        ],
        "type": "heading"
      },
      {
        "content": [
          {
            "marks": [
              {
                "type": "italic"
              }
            ],
            "text": "Cursive",
            "type": "text"
          }
        ],
        "type": "paragraph"
      }
    ]
    // ...
  }
}
```

Copyright
---------

[](#copyright)

2021 - Joakim Repomaa

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

1940d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1074324?v=4)[Joakim Repomaa](/maintainers/repomaa)[@repomaa](https://github.com/repomaa)

### Embed Badge

![Health badge](/badges/repomaa-statamic-unaugment/health.svg)

```
[![Health](https://phpackages.com/badges/repomaa-statamic-unaugment/health.svg)](https://phpackages.com/packages/repomaa-statamic-unaugment)
```

###  Alternatives

[nette/component-model

⚛ Nette Component Model

28817.0M106](/packages/nette-component-model)[sparors/laravel-ussd

Create ussd with ease

6333.8k](/packages/sparors-laravel-ussd)[oomphinc/drupal-scaffold

A Drupal scaffold project

192.7k](/packages/oomphinc-drupal-scaffold)

PHPackages © 2026

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