# @comunica/bus-function-factory

> A comunica bus for function factory events.

Latest version **5.4.0** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @comunica/bus-function-factory
pnpm add @comunica/bus-function-factory
yarn add @comunica/bus-function-factory
bun add @comunica/bus-function-factory
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.4.0 |
| Published | 2026-09-14 |
| First published | 2024-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 64.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 583 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, bus, functions |

## Links

- npm: https://www.npmjs.com/package/@comunica/bus-function-factory
- Repository: https://github.com/comunica/comunica
- Homepage: https://comunica.dev/
- Issues: https://github.com/comunica/comunica/issues
- npm.io page: https://npm.io/package/@comunica/bus-function-factory

## Dependencies (5)

- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [@comunica/types](https://npm.io/package/@comunica/types.md) ^5.4.0
- [@comunica/utils-algebra](https://npm.io/package/@comunica/utils-algebra.md) ^5.4.0
- [@comunica/context-entries](https://npm.io/package/@comunica/context-entries.md) ^5.4.0
- [@comunica/utils-expression-evaluator](https://npm.io/package/@comunica/utils-expression-evaluator.md) ^5.4.0

## Recent versions

- 5.4.0 (latest) — 2026-09-14
- 4.4.2-alpha.49.0 (next) — 2025-10-22
- 5.3.0 — 2026-07-10
- 5.2.3 — 2026-05-26
- 5.2.2 — 2026-05-03
- 5.2.0 — 2026-04-14
- 5.1.3 — 2026-01-30
- 5.1.0 — 2026-01-16
- 5.0.3 — 2026-01-12
- 5.0.2 — 2026-01-12
- 5.0.0 — 2026-01-08
- 4.5.0 — 2025-11-18
- 4.4.1 — 2025-09-25
- 4.4.0 — 2025-09-17
- 4.2.0 — 2025-04-29
- … 5 more at https://npm.io/package/@comunica/bus-function-factory/versions

## README

# Comunica Bus Function Factory

[![npm version](https://badge.fury.io/js/%40comunica%2Fbus-function-factory.svg)](https://www.npmjs.com/package/@comunica/bus-function-factory)

A comunica bus for function factory events.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @comunica/bus-function-factory
```

## Usage

## Bus usage

* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-function-factory/^1.0.0/components/context.jsonld"`
* **Bus name**: `ActorFunctionFactory:_default_bus`

When a mediator is required, the argument should get the `MediatorFunctionFactoryUnsafe` and manually cast it to `MediatorFunctionFactory`.
We require this work around because Components.js does not support the complex type of MediatorFunctions.

## Creating actors on this bus

Actors extending [`ActorFunctionFactory`](TODO:jsdoc_url) are automatically subscribed to this bus.

---
_Source: https://npm.io/package/@comunica/bus-function-factory · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
