# @srejs/vue3

> @srejs/vue是一个轻量级服务端渲染骨架工具，为koa社区的nodejs开发框架提供具有服务端渲染能力的工具包，使得类似umajs类的web开发框架可以更方便实现前后端同构的服务端渲染能力。特点：轻量级，模板式调用页面进行服务端渲染，不限制后端路由。

Latest version **1.4.1** (published 2024-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @srejs/vue3
pnpm add @srejs/vue3
yarn add @srejs/vue3
bun add @srejs/vue3
```

Provides the commands `sre`, `ssr`, `srejs`.

## 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 | 1.4.1 |
| Published | 2024-04-28 |
| First published | 2021-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 65.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | bubblem, dazjean |
| Keywords | ssr, vue, vue3.0, @umajs/plugin-vue-ssr, umajs-vue-ssr, umajs-vue3-ssr, @srejs, nuxtjs, vue ssr |

## Links

- npm: https://www.npmjs.com/package/@srejs/vue3
- Repository: https://github.com/dazjean/srejs
- Homepage: https://github.com/dazjean/srejs#readme
- Issues: https://github.com/dazjean/srejs/issues
- npm.io page: https://npm.io/package/@srejs/vue3

## Dependencies (7)

- [etag](https://npm.io/package/etag.md) ^1.8.1
- [fresh](https://npm.io/package/fresh.md) ^0.5.2
- [koa-send](https://npm.io/package/koa-send.md) ^5.0.0
- [@srejs/common](https://npm.io/package/@srejs/common.md) ^1.4.0
- [@srejs/vue3-webpack](https://npm.io/package/@srejs/vue3-webpack.md) ^1.4.0
- [@vue/server-renderer](https://npm.io/package/@vue/server-renderer.md) 3.2.19
- [serialize-javascript](https://npm.io/package/serialize-javascript.md) ^3.1.0

## Recent versions

- 1.4.1 (latest) — 2024-04-28
- 1.4.0 — 2024-04-28
- 1.3.10 — 2023-08-15
- 1.3.9 — 2023-02-06
- 1.3.8 — 2023-02-06
- 1.3.7 — 2023-02-06
- 1.3.5 — 2023-01-09
- 1.3.2 — 2021-12-08
- 1.3.1 — 2021-11-30
- 1.3.0 — 2021-11-22

## README

# @srejs/vue3

<div align="center">
  <img src="./../../doc/Srejs-vue.png" width="300" />
</div>
<br />

<div align="center">
  <strong>Server rendering engine, abbreviated as srejs, is the server-side rendering engine. It provides the simplest and most flexible react and Vue lightweight server-side rendering skeleton tool for each node development framework, and supports the use in any koa framework.</strong>
</div>
<br />
<div align="center">
<a href="https://npmcharts.com/compare/@srejs/vue" target="_blank"><img src="https://img.shields.io/npm/dt/@srejs/vue" alt="download"></a>
<a href="https://github.com/dazjean/Srejs" target="_blank"><img src="https://img.shields.io/npm/l/vue.svg" alt="License"></a>
<a href="https://github.com/dazjean/Srejs" target="_blank"><img src="https://img.shields.io/badge/node-%3E=10-green.svg" alt="Node"></a>
</div>
<br />

> Server rendering engine 缩写为 Srejs, 即服务器端渲染引擎，为各个node开发框架提供最简单，最灵活，Vue轻量级服务端渲染骨架工具。 `Srejs`支持在`koa中间件`中使用，通过此能力我们可以对任何基于Koa的开发框架进行插件封装，比如`UMajs`,`egg`,`nest`,推荐使用[`@umajs/plugin-vue-ssr`](https://github.com/Umajs/plugin-vue-ssr#readme)提供的解决方案。

## Features

- 🚀 支持SSR和CSR模式切换
- 🚀 支持vuex做数据管理
- 🚀 支持服务端直出Props
- 🚀 和vue-router使用，支持asyncData钩子函数获取数据。
- 🚀 自定义HTML和动态设置页面title,keyworlds,discription
- 🚀 vue3.0
- 支持vue-meta
- webpack5.0
- vite

## 文档

- [快速开始](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/quickStart.md)
- [Srejs实例](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/srejs.md)
- [数据获取](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/initState.md)
- [内置CSS支持](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/suport-css.md)
- [SEO&HTML](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/seoHtml.md)
- [使用vuex](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/vuex.md)
- [使用vue-router路由](https://github.com/dazjean/Srejs/tree/mian/doc/vue3/vue-router.md)

## 示例

- [使用vuex](https://github.com/Umajs/umajs-vue3-ssr/tree/main/web/pages/vuex)
- [使用vue-router路由](https://github.com/Umajs/umajs-vue3-ssr/tree/main/web/pages/router)

## 开发框架集成

- [umajs-react-ssr](https://github.com/Umajs/umajs-vue3-ssr)
- [plugin-react-ssr](https://github.com/Umajs/plugin-vue3-ssr)

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