# @solid/community-server 中文文档

规范地址：https://npmcn.com/package/%40solid/community-server/

版本：7\.3\.0
npm 元数据更新时间：2026-11-02T11:52:09.380Z
中文译文更新时间：2026-11-02T12:49:10.433Z
软件包许可：MIT

本文由上游 README 机器翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40solid/community-server
原文对照：https://npmcn.com/package/%40solid/community-server/?lang=original
项目主页：https://github.com/CommunitySolidServer/CommunitySolidServer#readme
源码仓库：https://github.com/CommunitySolidServer/CommunitySolidServer

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：6.1 MB，2263 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=18\.0
- 运行依赖：68 个
- 首次发布：2020-09-03T12:46:31.235Z
- 最新版本发布：2026-11-02T11:52:09.184Z
- 已发布版本数：53（近 12 个月 6 个）

## 中文简介

Community Solid Server: Solid规范的开放和模块化实现

## 安装

```sh
npm install @solid/community-server
```

也可以使用：`pnpm add @solid/community-server`、`yarn add @solid/community-server`、`bun add @solid/community-server`

## README

# 社区实体服务器

![\[Solid logo\]](https://raw.githubusercontent.com/CommunitySolidServer/CommunitySolidServer/main/templates/images/solid.svg)

[![MIT license](https://img.shields.io/npm/l/@solid/community-server)](https://github.com/CommunitySolidServer/CommunitySolidServer/blob/main/LICENSE.md) [![npm version](https://img.shields.io/npm/v/@solid/community-server)](https://www.npmjs.com/package/@solid/community-server) [![Node.js version](https://img.shields.io/node/v/@solid/community-server)](https://www.npmjs.com/package/@solid/community-server) [![Build Status](https://github.com/CommunitySolidServer/CommunitySolidServer/workflows/CI/badge.svg)](https://github.com/CommunitySolidServer/CommunitySolidServer/actions) [![Coverage Status](https://coveralls.io/repos/github/CommunitySolidServer/CommunitySolidServer/badge.svg)](https://coveralls.io/github/CommunitySolidServer/CommunitySolidServer) [![DOI](https://zenodo.org/badge/265197208.svg)](https://zenodo.org/badge/latestdoi/265197208) [![GitHub discussions](https://img.shields.io/github/discussions/CommunitySolidServer/CommunitySolidServer)](https://github.com/CommunitySolidServer/CommunitySolidServer/discussions) [![Chat on Gitter](https://badges.gitter.im/CommunitySolidServer/community.svg)](https://gitter.im/CommunitySolidServer/community)

**Community Solid Server是开放软件 这就提供了a [固体](https://solidproject.org/) Pod和identity。 这个Pod就是你的私人存储空间 这样你就可以与人和Solid应用程序共享数据。**

的开放和模块化实现 [坚实的规范](https://solidproject.org/TR/)， Community Solid Server是一个很好的伙伴：

-   🧑🏽 **的人** 谁想尝试拥有自己的Pod
    
-   👨🏿‍💻 **为开发人员** 谁想快速创建和测试Solid应用程序
    
-   👩🏻‍🔬 **为研究人员** 谁想为Solid设计新功能
    

当然，对于许多喜欢体验Solid的人来说也是如此。

## ⚡运行Community Solid Server

确保你有 [node . js](https://nodejs.org/en/) 18.0或更高。 如果这是你第一次使用Node.js， 你可以找到如何做到这一点的说明 [在这里](https://nodejs.org/en/download/package-manager).

```shell
npx @solid/community-server
```

现在访问您的全新服务器 [http://localhost:3000/](http://localhost:3000/)！

要在重启之间持久化pod的内容，使用：

```shell
npx @solid/community-server -c @css:config/file.json -f data/
```

如果你更喜欢使用Docker， 您可以在。中找到有关此方法和其他方法的说明 [文档](https://communitysolidserver.github.io/CommunitySolidServer/latest/usage/starting-server/).

## 🔧配置服务器

通过JSON配置文件可以实现对服务器行为的实质性更改。 社区固体服务器使用 [Components.js](https://componentsjs.readthedocs.io/en/latest/) 指定模块和组件在运行时需要如何连接在一起。

配置服务器的方法可以在 [CommunitySolidServer /食谱](https://github.com/CommunitySolidServer/recipes).

自定义配置的示例和指导 都可以在 [`config` 文件夹](https://github.com/CommunitySolidServer/CommunitySolidServer/tree/main/config)， 和 [配置教程](https://github.com/CommunitySolidServer/tutorials/blob/main/custom-configurations.md). 还有一个 [配置发电机](https://communitysolidserver.github.io/configuration-generator/).

## 👩🏽‍💻开发服务器代码

服务器允许写入和插入自定义模块 不改变其基本源代码。

这个 [📗API文档](https://communitysolidserver.github.io/CommunitySolidServer/5.x/docs) 和 这个 [📓用户文档](https://communitysolidserver.github.io/CommunitySolidServer/) 能帮你找到路。 也有一个存储库 [📚综合教程](https://github.com/CommunitySolidServer/tutorials/)

## 📑引用

如果社区固体服务器在你的科学出版物中发挥了作用， 如果能引用我们的 [文章](https://journals.sagepub.com/doi/abs/10.3233/SW-243726).

```bibtex
@article{CommunitySolidServer,
  title   = {The Community Solid Server: Supporting research \& development in an evolving ecosystem},
  author  = {Van Herwegen, Joanna and Verborgh, Ruben},
  journal = {Semantic Web},
  volume  = {15},
  number  = {6},
  pages   = {2597--2611},
  year    = {2024},
  doi     = {10.3233/SW-243726},
  url     = {https://journals.sagepub.com/doi/abs/10.3233/SW-243726}
}
```

## 📜许可证

社区固体服务器代码 版权归 [Inrupt Inc .)](https://inrupt.com/) 和 [imec](https://www.imec-int.com/) 可以在 [麻省理工学院的许可](https://github.com/CommunitySolidServer/CommunitySolidServer/blob/main/LICENSE.md).

## 🎤反馈和问题

不要犹豫 [开始讨论](https://github.com/CommunitySolidServer/CommunitySolidServer/discussions) 或者 [报告错误](https://github.com/CommunitySolidServer/CommunitySolidServer/issues).

也有 [一个基于matrix的、以css为中心的聊天工具](https://matrix.to/#/#CommunitySolidServer_community:gitter.im)

了解更多关于Solid的信息 [solidproject.org](https://solidproject.org/).

## 常见问题

### @solid/community-server 是什么？

Community Solid Server: Solid规范的开放和模块化实现

### 如何安装 @solid/community-server？

在项目目录运行 npm install @solid/community-server，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 community-solid-server，可以用 npx community-solid-server 直接运行。

### @solid/community-server 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @solid/community-server 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @solid/community-server 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=18\.0。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @solid/community-server 可以商用吗？

@solid/community-server 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @solid/community-server 还在维护吗？

最新版本 7\.3\.0 发布于 2026/11/02（1 天前）；至今共发布 53 个版本，其中过去 12 个月发布了 6 个；首次发布于 2020/09/03。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

