2.4.1 • Published 5 years ago

@audentio/ssr-toolkit v2.4.1

Weekly downloads
54
License
MIT
Repository
github
Last release
5 years ago

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

2.4.1

5 years ago

2.4.0

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.7

6 years ago

1.0.61

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago