PHPackages                             wwwision/projection-playground - 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. [Admin Panels](/categories/admin)
4. /
5. wwwision/projection-playground

ActiveNeos-package[Admin Panels](/categories/admin)

wwwision/projection-playground
==============================

Neos backend module that allows for creating and testing ESCR projections on the fly

0.2.0(3y ago)00[5 PRs](https://github.com/bwaidelich/Wwwision.ProjectionPlayground/pulls)MITCSS

Since Apr 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bwaidelich/Wwwision.ProjectionPlayground)[ Packagist](https://packagist.org/packages/wwwision/projection-playground)[ GitHub Sponsors](https://github.com/sponsors/bwaidelich)[ Fund](https://www.paypal.me/bwaidelich)[ RSS](/packages/wwwision-projection-playground/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (8)Used By (0)

Wwwision.ProjectionPlayground
=============================

[](#wwwisionprojectionplayground)

Neos backend module that allows for creating and testing ESCR projections on the fly

Usage
-----

[](#usage)

install via [composer](https://getcomposer.org):

```
composer require wwwision/projection-playground
```

> **Note**At the time of writing, the `neos/contentrepository-core` package is not yet available on packagist You can download it from GitHub to your distribution folder: and install everything via `composer require wwwision/projection-playground neos/contentrepository-core:@dev `

Afterwards, if you log into the Neos Backend as an *Administrator*, you can navigate to the new backend module at `/neos/administration/projection-playground` and start playing.

Projections
-----------

[](#projections)

The projection logic can be written in JavaScript. This package supports a subset of the [EventStoreDB](https://www.eventstore.com/) projection syntax (see [Documentation](https://developers.eventstore.com/server/v22.10/projections.html#user-defined-projections-api))

### Example projections

[](#example-projections)

#### Count all events

[](#count-all-events)

```
fromAll()
.when({
    $init: () => ({count: 0}),
    $any: (s, e) => {
        s.count ++;
    }
})
```

#### Count created node types

[](#count-created-node-types)

...and transform the result to order them by most used type

```
fromAll()
.when({
    NodeAggregateWithNodeWasCreated: (s, e) => {
        const nodeType = e.body.nodeTypeName;
        s[nodeType] = (s[nodeType] ?? 0) + 1;
    }
}).transformBy(s => Object.fromEntries(Object.entries(s).sort((a, b) => b[1] - a[1])))
```

#### Aggregate events by their weekday

[](#aggregate-events-by-their-weekday)

...and transform the result to order them by most popular day

```
fromAll()
.when({
    $any: (s, e) => {
        const timestamp = e.metadataRaw['initiatingTimestamp'];
        if (!timestamp) {
            return;
        }
        const date = new Date(timestamp);
        const weekDay = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][date.getDay()];
        s[weekDay] = (s[weekDay] ?? 0) + 1;
    }
}).transformBy(s => Object.fromEntries(Object.entries(s).sort((a, b) => b[1] - a[1])))
```

Disclaimer
----------

[](#disclaimer)

This project is not endorsed by Event Store Ltd.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

Every ~0 days

Total

2

Last Release

1116d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/307571?v=4)[Bastian Waidelich](/maintainers/bwaidelich)[@bwaidelich](https://github.com/bwaidelich)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wwwision-projection-playground/health.svg)

```
[![Health](https://phpackages.com/badges/wwwision-projection-playground/health.svg)](https://phpackages.com/packages/wwwision-projection-playground)
```

###  Alternatives

[neos/neos-ui

Neos CMS UI written in React

2661.0M104](/packages/neos-neos-ui)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[neos/demo

Site package for the Neos Demo Site

18181.0k6](/packages/neos-demo)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)[neos/redirecthandler-ui

This package provides a backend module to manage Neos.RedirectHandler redirects

13578.9k5](/packages/neos-redirecthandler-ui)

PHPackages © 2026

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