# @modelence/runtime

> Container entrypoint for apps deployed to Modelence Cloud

Latest version **0.1.0-dev.0** (published 2026-09-23) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @modelence/runtime
pnpm add @modelence/runtime
yarn add @modelence/runtime
bun add @modelence/runtime
```

Provides the command `modelence-runtime`.

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.0-dev.0 |
| Published | 2026-09-23 |
| First published | 2026-09-23 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 44.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 432 |
| Author | Modelence |
| Maintainers | modelence |

## Links

- npm: https://www.npmjs.com/package/@modelence/runtime
- Repository: https://github.com/modelence/modelence
- Homepage: https://modelence.com
- Issues: https://github.com/modelence/modelence/issues
- npm.io page: https://npm.io/package/@modelence/runtime

## Recent versions

- 0.1.0-dev.0 (latest) — 2026-09-23
- 0.1.0-dev.1 (dev) — 2026-09-24

## README

# @modelence/runtime

The container entrypoint for apps deployed to Modelence Cloud. Modelence Cloud's
build installs a pinned version of this package into every app image and runs
`modelence-runtime` as the container command.

On start it reads `MODELENCE_WEB` (the start command and static mounts from
`modelence.config.json`) and:

- fetches the environment variables set in the Modelence dashboard with the
  container's service token and runs the start command with them;
- serves static mounts with single-page app fallback, when there is no start
  command;
- with both, serves the mounts and proxies everything else to the app.

Zero runtime dependencies; Node.js 18 or newer.

## Development

TypeScript in `src/`, built with tsup to `dist/` (`npm run build`).
`src/bin.ts` is the `modelence-runtime` executable and `src/index.ts` the
importable API. `npm test` builds first, because the bin tests run the built
`dist/bin.js` as a child process — the same file that ships.

## Releasing

Versions are immutable and pinned by Studio, so a change here reaches tenant
containers only when Studio bumps its pin. Bump `version`, then push a
`@modelence/runtime@<version>` tag to publish (`prepack` builds `dist/`).

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