# @spark-web/ssr

> --- title: SSR isExperimentalPackage: true ---

Latest version **5.0.0** (published 2025-02-10) · 0 weekly downloads

## Install

```sh
npm install @spark-web/ssr
pnpm add @spark-web/ssr
yarn add @spark-web/ssr
bun add @spark-web/ssr
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2025-02-10 |
| First published | 2022-04-20 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 5 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | brighte, brighte-release-bot |

## Links

- npm: https://www.npmjs.com/package/@spark-web/ssr
- Repository: https://github.com/brighte-labs/spark-web
- Homepage: https://github.com/brighte-labs/spark-web#readme
- Issues: https://github.com/brighte-labs/spark-web/issues
- npm.io page: https://npm.io/package/@spark-web/ssr

## Dependencies (5)

- [@emotion/css](https://npm.io/package/@emotion/css.md) ^11.13.5
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.25.0
- [@emotion/cache](https://npm.io/package/@emotion/cache.md) ^11.14.0
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.14.0
- [@emotion/server](https://npm.io/package/@emotion/server.md) ^11.11.0

## Recent versions

- 5.0.0 (latest) — 2025-02-10
- 5.0.0-rc.31 (rc) — 2025-02-10
- 5.0.0-rc.29 — 2025-02-06
- 5.0.0-rc.28 — 2025-02-06
- 5.0.0-rc.27 — 2025-02-05
- 5.0.0-rc.26 — 2025-02-05
- 5.0.0-rc.25 — 2025-01-31
- 5.0.0-rc.24 — 2025-01-20
- 2.0.0-rc.21 — 2025-01-07
- 2.0.0-rc.20 — 2025-01-07
- 2.0.0-rc.19 — 2024-12-12
- 2.0.0-rc.18 — 2024-12-12
- 2.0.0-rc.17 — 2024-12-12
- 2.0.0-rc.16 — 2024-12-12
- 2.0.0-rc.15 — 2024-12-12
- … 25 more at https://npm.io/package/@spark-web/ssr/versions

## README

---
title: SSR
isExperimentalPackage: true
---

## renderStatic

Function that takes the HTML of a page (as a string) and returns:

- `html`: (type: `string`) original HTML that was passed in
- `ids`: (type: `Array<string>`) array of ids (class names referencing styles
  created by Emotion)
- `css`: (type: `string`) CSS generated by Emotion from the static HTML string
  that was passed to it

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