# @audentio/ssr-toolkit

> SSR toolkit

Latest version **2.4.1** (published 2019-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @audentio/ssr-toolkit
pnpm add @audentio/ssr-toolkit
yarn add @audentio/ssr-toolkit
bun add @audentio/ssr-toolkit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.1 |
| Published | 2019-10-29 |
| First published | 2018-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 21 |
| Unpacked size | 59.2 KB |
| Known vulnerabilities | 0 (+4 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Audentio |
| Maintainers | jakebooher, kylerc, mikecreuzer, tusharsingh |
| Keywords | react, isomorphic, ssr, express |

## Links

- npm: https://www.npmjs.com/package/@audentio/ssr-toolkit
- Repository: https://github.com/Audentio/ssr-toolkit
- Homepage: https://github.com/Audentio/ssr-toolkit#readme
- Issues: https://github.com/Audentio/ssr-toolkit/issues
- npm.io page: https://npm.io/package/@audentio/ssr-toolkit

## Dependencies (21)

- [ejs](https://npm.io/package/ejs.md) ^2.7.1
- [shhh](https://npm.io/package/shhh.md) ^1.0.3
- [snyk](https://npm.io/package/snyk.md) ^1.236.1
- [uuid](https://npm.io/package/uuid.md) ^3.3.3
- [chalk](https://npm.io/package/chalk.md) ^2.3.2
- [helmet](https://npm.io/package/helmet.md) ^3.21.2
- [morgan](https://npm.io/package/morgan.md) ^1.9.0
- [express](https://npm.io/package/express.md) ^4.17.1
- [history](https://npm.io/package/history.md) ^4.10.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [passport](https://npm.io/package/passport.md) ^0.4.0
- [clean-css](https://npm.io/package/clean-css.md) ^4.1.11
- [form-data](https://npm.io/package/form-data.md) ^2.5.1
- [http-auth](https://npm.io/package/http-auth.md) ^3.2.4
- [compression](https://npm.io/package/compression.md) ^1.7.4
- [@sentry/node](https://npm.io/package/@sentry/node.md) ^5.7.1
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.4
- [sanitize-filename](https://npm.io/package/sanitize-filename.md) ^1.6.3
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.13
- [file-stream-rotator](https://npm.io/package/file-stream-rotator.md) ^0.4.1
- [react-universal-component](https://npm.io/package/react-universal-component.md) ^4.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.4.1 (latest) — 2019-10-29
- 2.4.0 — 2019-10-21
- 2.3.6 — 2019-09-27
- 2.3.5 — 2019-08-26
- 2.3.2 — 2019-08-06
- 2.3.1 — 2019-07-13
- 2.3.0 — 2019-07-13
- 2.2.5 — 2019-05-18
- 2.2.4 — 2019-05-18
- 2.2.3 — 2019-05-05
- 2.2.2 — 2019-04-21
- 2.2.1 — 2019-04-21
- 2.2.0 — 2019-04-21
- 2.1.4 — 2019-04-20
- 2.1.3 — 2019-04-07
- … 16 more at https://npm.io/package/@audentio/ssr-toolkit/versions

## README

# SSR toolkit

SSR for even a slightly complex webapp is not trivial. This project aims to make that process a little simpler, providing you with an express server which you can use to serve your app with minimal configuration.

Here's the most basic example

```
const ssr = require('@audentio/ssr-toolkit');

ssr({
    renderApp: async (req, res) => {
        return {
            html: '<html><body>Hello world!</body></html>',
            context: { status: 200 },
        };
    },
});
```

You've just made a server running on port 8080 (default) that sends "Hello world!" for every route!
ssr-toolkit assumes nothing about your app's stack. You can use any framework that lets you render to HTML

**See more in-depth examples in the examples dir**

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