npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vise-ssr/express-server

v0.9.2

Published

HTTP server based on express for vise-ssr

Readme

Vise Express Server

同构 SSR 开发框架 - HTTP 服务器

This package provide the HTTP server based on express for vise-ssr.

Vise Express Server 是 Vise 框架中的基于 Express 的 HTTP server,整合并适配了 Vise 的 Hook API,可用作 Vise 的构建产物的 HTTP 服务容器。在 vise serve 命令中,依赖本 package 提供 HTTP 服务。

Vise Express Server 提供 vise-express 命令行工具,支持如下调用以特定 Vise App 项目目录启动 Express Server:

$ vise-express start ./path/to/app-my-vise-project

注意启动之前需要对项目进行 vise build

支持的调用参数:

Usage: vise-express start [options] <viseAppDir>

start http listen

Options:
  -p, --port <port>                 server listen port (default: "3000")
  -b, --bundle-dir                  serve from bundle dir instead of vise app dir
  -c, --enable-cache <trueOrFalse>  enable server cache (default: "true")
  -r, --repeat-render <times>       repeat ssr for benchmark test (default: "0")
  -h, --help                        display help for command

注意,在未添加参数 -b 的时候,传入的路径应该是一个 Vise App 的根路径,需要有 vise build 后创建的 ./dist 目录,如 vise-express start ./my-vise-app

my-vise-app
├── dist
│   ├── client
│   └── server
├── package.json
├── src
...

在添加参数 -b 的时候,传入的路径应该是一个支持多应用的部署路径,如 vise-express start -b ./vise-app-bundles

vise-app-bundles (该级目录名称随意)
├── my-vise-app-a
│   ├── client
│   ├── server
│   └── package.json
├── my-vise-app-b
│   ├── client
│   ├── server
│   └── package.json
...

添加 -m 参数的时候,可以将 app 的对外访问 url pathname 重新映射,参数为 JSON.stringify 后的 Object 对象,例如: vise-express start -b -m '{"vue3-intro":"/"}' ./vise-app-bundles

在未传入 -m 参数的情况下,如果为非 -b 模式,会自动使用 {"${appName}":"/"} 将访问路径映射到根路径下;如果为 -b 模式,将默认使用 /${appName}/ 作为各个 app 对外访问 url 路径。

Vise 是一个同构 SSR 开发框架,更多信息请参考 Vise 官网