PHPackages                             sitegeist/slipstream - 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. sitegeist/slipstream

ActiveNeos-package

sitegeist/slipstream
====================

Teleport any HTML tag to antoher place of the document. Mostly used for CSS and JS

v2.3.0(9mo ago)881.6k—7.1%1[3 issues](https://github.com/sitegeist/Sitegeist.Slipstream/issues)6GPL-3.0-or-laterPHPCI passing

Since Sep 7Pushed 9mo ago4 watchersCompare

[ Source](https://github.com/sitegeist/Sitegeist.Slipstream)[ Packagist](https://packagist.org/packages/sitegeist/slipstream)[ RSS](/packages/sitegeist-slipstream/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (20)Used By (6)

Sitegeist.Slipstream
====================

[](#sitegeistslipstream)

Header requirements for presentational fusion
---------------------------------------------

[](#header-requirements-for-presentational-fusion)

"Quantum slipstream transcends the normal warp barrier by penetrating the quantum barrier with a focused quantum field."

The slipstream package allows defining header requirements with presentational fusion by labeling the required tags with a unique attribute. They are later deduplicated and moved to the target position. This allows defining additional the JS and CSS requirements directly with the presentational fusion components.

### Authors &amp; Sponsors

[](#authors--sponsors)

- Martin Ficzel -

> The development and the public releases of this package is generously sponsored by our employer [**site**geist](http://www.sitegeist.de).

Usage
-----

[](#usage)

You can mark any HTML fragment to be moved to the head of the document by adding a `data-slipstream` attribute.

```

your component
```

The slipstream middleware will parse the entire page and detect all those tags. The tags are then removed from the original location and are appended to the header. Every tag is added only once, so if multiple components require the same JS, only one is added to the given location.

### Alter target by tag name

[](#alter-target-by-tag-name)

By defining the `data-slipstream` attribute with an tag name, the target can be altered.

```

your component
```

### Using CSS selector (id or class name) as target

[](#using-css-selector-id-or-class-name-as-target)

If you want to target a specific element with an id or class name you can also use a selector prefixed with an `#` (id) or an `.` (class name). The string itself musst start with a letter, underscore or hyphen. No spaces are allowed. Also multiple id and classes combinations won't work, only a single class name or id works.

```
Greetings, one and all!
Greetings, one and all!
```

### Using XPATH selector as target

[](#using-xpath-selector-as-target)

```

```

### Location of the tag

[](#location-of-the-tag)

To prepend the tag to the given target, you can add the `data-slipstream-prepend` attribute:

```

```

To place a tag before or after a specific tag, you can add the `data-slipstream-before` or `data-slipstream-after` attribute:

```

```

### Debug mode

[](#debug-mode)

When the setting `Sitegeist.Slipstream.debugMode` is enabled, HTML comments are rendered to mark where tags were removed and inserted. This is enabled in Development Context by default.

### Remove slipstream attributes

[](#remove-slipstream-attributes)

If the setting `Sitegeist.Slipstream.removeSlipstreamAttributes` is enabled, the attributes from slipstream get removed. This is disabled in Development Context by default.

Inner working and performance
-----------------------------

[](#inner-working-and-performance)

The slipstream HTTP middleware will modify all responses with an active `X-Slipstream: Enabled` HTTP header. This header is added to Neos.Neos:Page and Sitegeist.Monocle:Preview.Page already, so this will work for Neos and Monocle right away. You will have to add the header `X-Slipstream: Enabled` for other controllers.

Since the response body is parsed and modified, this adds a minor performance penalty to every request. However the package is designed to work together with Flowpack.FullpageCache, which will in turn cache the whole result and mitigate the slight performance drawback.

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

[](#installation)

Sitegeist.Slipstream is available via packagist run `composer require sitegeist/slipstream`.

We use semantic-versioning so that every breaking change will increase the major version number.

Contribution
------------

[](#contribution)

We will gladly accept contributions. Please send us pull requests.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance49

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Every ~119 days

Recently: every ~304 days

Total

16

Last Release

287d ago

Major Versions

v1.0.1 → v2.0.02020-11-11

v1.1.1 → v2.1.12021-10-18

1.0.x-dev → v2.1.62023-10-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/829b4ccb51e8cff3c1e4b59d60cfe8d1b86f6d77fc31a6b3fc99227f432542ca?d=identicon)[mficzel](/maintainers/mficzel)

---

Top Contributors

[![jonnitto](https://avatars.githubusercontent.com/u/4510166?v=4)](https://github.com/jonnitto "jonnitto (37 commits)")[![mficzel](https://avatars.githubusercontent.com/u/1309380?v=4)](https://github.com/mficzel "mficzel (35 commits)")

---

Tags

hacktoberfestneoscms

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sitegeist-slipstream/health.svg)

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

###  Alternatives

[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

116989.0k674](/packages/neos-neos)[neos/eel

The Embedded Expression Language (Eel) is a building block for creating Domain Specific Languages

122.0M27](/packages/neos-eel)[neos/media

The Media package

101.1M45](/packages/neos-media)[neos/flow-base-distribution

Flow Base Distribution

2159.5k](/packages/neos-flow-base-distribution)[avency/neos-vardump

Neos VarDump Package

147.1k](/packages/avency-neos-vardump)

PHPackages © 2026

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