PHPackages                             stoffelio/statamic-live-preview-tag - 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. stoffelio/statamic-live-preview-tag

ActiveStatamic-addon[Templating &amp; Views](/categories/templating)

stoffelio/statamic-live-preview-tag
===================================

Adds Antlers tag to show or hide parts of templates in live preview mode.

v1.0.0(4y ago)0844MITPHP

Since Feb 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/stoffelio/statamic-live-preview-tag)[ Packagist](https://packagist.org/packages/stoffelio/statamic-live-preview-tag)[ RSS](/packages/stoffelio-statamic-live-preview-tag/feed)WikiDiscussions main Synced today

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

Statamic Live Preview Tag
=========================

[](#statamic-live-preview-tag)

> Adds an Antlers tag to easily show or hide parts of your template when viewing the page in Statamic's live preview mode.

Purpose
-------

[](#purpose)

Allows you to exclude things like tracking scripts or even parts of your content in live view.

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require stoffelio/statamic-live-preview-tag
```

How to Use
----------

[](#how-to-use)

Simply check if the request is a live preview using the tag:

```
{{ if {is_live_preview} }}
    this will be shown only in live preview
{{ else }}
    this will be hidden in live preview
{{ /if }}

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

1594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d62a86a4f061b4cf39702af6e9f2396446222a2bfcc81ea08aab5391036d906c?d=identicon)[stoffelio](/maintainers/stoffelio)

---

Top Contributors

[![stoffelio](https://avatars.githubusercontent.com/u/65236157?v=4)](https://github.com/stoffelio "stoffelio (1 commits)")

### Embed Badge

![Health badge](/badges/stoffelio-statamic-live-preview-tag/health.svg)

```
[![Health](https://phpackages.com/badges/stoffelio-statamic-live-preview-tag/health.svg)](https://phpackages.com/packages/stoffelio-statamic-live-preview-tag)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

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

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

Statamic

829179.5k](/packages/statamic-statamic)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

126741.1k16](/packages/statamic-eloquent-driver)[stillat/antlers-components

2763.2k1](/packages/stillat-antlers-components)[rias/statamic-redirect

29335.6k](/packages/rias-statamic-redirect)

PHPackages © 2026

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