Title: NodeInfo(2)
Author: Matthias Pfefferle
Published: <strong>2018 年 11 月 28 日</strong>
Last modified: 2025 年 12 月 30 日

---

搜索插件

![](https://ps.w.org/nodeinfo/assets/banner-772x250.png?rev=2815179)

![](https://ps.w.org/nodeinfo/assets/icon-256x256.png?rev=2815179)

# NodeInfo(2)

 作者：[Matthias Pfefferle](https://profiles.wordpress.org/pfefferle/)

[下载](https://downloads.wordpress.org/plugin/nodeinfo.3.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/nodeinfo/#description)
 * [评价](https://cn.wordpress.org/plugins/nodeinfo/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/nodeinfo/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/nodeinfo/#developers)

 [支持](https://wordpress.org/support/plugin/nodeinfo/)

## 描述

[NodeInfo](http://nodeinfo.diaspora.software/) is an effort to create a standardized
way of exposing metadata about a server running one of the distributed social networks.
The two key goals are being able to get better insights into the user base of distributed
social networking and the ability to build tools that allow users to choose the 
best fitting software and server for their needs.

This plugin provides a barebone JSON file with basic “node”-informations. The file
can be extended by other WordPress plugins, like [OStatus](https://wordpress.org/plugins/ostatus-for-wordpress/),
[Diaspora](https://github.com/pfefferle/wordpress-dandelion) or [ActivityPub](https://wordpress.org/plugins/activitypub/)/
[Pterotype](https://wordpress.org/plugins/pterotype/).

### What information does this plugin share?

The plugin exposes the following public information about your site:

 * **Software**: WordPress version (major version only for privacy)
 * **Usage statistics**: Number of users, posts, and comments
 * **Site info**: Your site name and description
 * **Protocols**: Which federation protocols your site supports (e.g., ActivityPub)
 * **Services**: Which external services your site can connect to (e.g., RSS feeds)

This information helps other servers in the Fediverse discover and interact with
your site.

### Supported NodeInfo versions

This plugin supports all major NodeInfo specification versions:

 * **NodeInfo 1.0** and **1.1** – Original specifications
 * **NodeInfo 2.0**, **2.1**, and **2.2** – Current specifications with extended
   metadata
 * **NodeInfo2** – Alternative single-endpoint format

### Endpoints

After activation, the following endpoints become available:

 * `/.well-known/nodeinfo` – Discovery document (start here)
 * `/wp-json/nodeinfo/2.2` – NodeInfo 2.2 (recommended)
 * `/wp-json/nodeinfo/2.1` – NodeInfo 2.1
 * `/wp-json/nodeinfo/2.0` – NodeInfo 2.0
 * `/wp-json/nodeinfo/1.1` – NodeInfo 1.1
 * `/wp-json/nodeinfo/1.0` – NodeInfo 1.0
 * `/.well-known/x-nodeinfo2` – NodeInfo2 format

## 安装

Follow the normal instructions for [installing WordPress plugins](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins).

### Automatic Plugin Installation

To add a WordPress Plugin using the [built-in plugin installer](https://codex.wordpress.org/Administration_Screens#Add_New_Plugins):

 1. Go to [Plugins](https://codex.wordpress.org/Administration_Screens#Plugins) > [Add New](https://codex.wordpress.org/Plugins_Add_New_Screen).
 2. Type “`nodeinfo`” into the **Search Plugins** box.
 3. Find the WordPress Plugin you wish to install.
 4.  a. Click **Details** for more information about the Plugin and instructions you may
        wish to print or save to help setup the Plugin.
     b. Click **Install Now** to install the WordPress Plugin.
 5. The resulting installation screen will list the installation as successful or note
    any problems during the install.
 6. If successful, click **Activate Plugin** to activate it, or **Return to Plugin 
    Installer** for further actions.

### Manual Plugin Installation

There are a few cases when manually installing a WordPress Plugin is appropriate.

 * If you wish to control the placement and the process of installing a WordPress
   Plugin.
 * If your server does not permit automatic installation of a WordPress Plugin.
 * If you want to try the [latest development version](https://github.com/pfefferle/wordpress-nodeinfo).

Installation of a WordPress Plugin manually requires FTP familiarity and the awareness
that you may put your site at risk if you install a WordPress Plugin incompatible
with the current version or from an unreliable source.

Backup your site completely before proceeding.

To install a WordPress Plugin manually:

 * Download your WordPress Plugin to your desktop.
    - Download from [the WordPress directory](https://wordpress.org/plugins/nodeinfo/)
    - Download from [GitHub](https://github.com/pfefferle/wordpress-nodeinfo/releases)
 * If downloaded as a zip archive, extract the Plugin folder to your desktop.
 * With your FTP program, upload the Plugin folder to the `wp-content/plugins` folder
   in your WordPress directory online.
 * Go to [Plugins screen](https://wordpress.org/support/article/plugins-add-new-screen/)
   and find the newly uploaded Plugin in the list.
 * Click **Activate** to activate it.

## 常见问题

### Why do I need this plugin?

If you want your WordPress site to be part of the Fediverse (decentralized social
networks like Mastodon), this plugin helps other servers discover information about
your site. It works together with plugins like [ActivityPub](https://wordpress.org/plugins/activitypub/)
to make your site fully federated.

### Is any private information shared?

No. Only public information about your site is shared, such as your site name, description,
and post counts. No personal user data or private content is exposed.

### How can I verify it’s working?

Visit `https://yoursite.com/.well-known/nodeinfo` in your browser. You should see
a JSON document with links to the NodeInfo endpoints.

### Can other plugins extend the NodeInfo data?

Yes! This plugin is designed to be extensible. Other plugins can use WordPress filters
to add their own protocols, services, or metadata. For example, the ActivityPub 
plugin automatically adds `activitypub` to the supported protocols list.

### How do I know if everything is configured correctly?

Go to **Tools > Site Health** in your WordPress admin. The plugin adds two health
checks:

 * **NodeInfo Well-Known Endpoint** – Verifies that `/.well-known/nodeinfo` is accessible
 * **NodeInfo REST Endpoint** – Verifies that the NodeInfo 2.2 REST endpoint returns
   valid data

If either check fails, you’ll see recommendations on how to fix the issue.

## 评价

![](https://secure.gravatar.com/avatar/e001ef99101831b6de8ff881d196a951804ef65357ddc2f8c8b601e1b42028f9?
s=60&d=retro&r=g)

### 󠀁[Great app, no configuration required](https://wordpress.org/support/topic/great-app-no-configuration-required/)󠁿

 [tabthorpe](https://profiles.wordpress.org/tabthorpe/) 2024 年 3 月 22 日

This is a grep helper app to ActivityPub, it is a drop in and use app, no configuration
is required.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/nodeinfo/reviews/)

## 贡献者及开发者

「NodeInfo(2)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)

「NodeInfo(2)」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/nodeinfo/contributors)
为本插件所做的贡献。

[帮助将「NodeInfo(2)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/nodeinfo)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/nodeinfo/)，查看[SVN仓库](https://plugins.svn.wordpress.org/nodeinfo/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/nodeinfo/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/nodeinfo/)。

## 更新日志

Project and support maintained on github at [pfefferle/wordpress-nodeinfo](https://github.com/pfefferle/wordpress-nodeinfo).

### 3.1.0

 * Added singleton-based plugin loading mechanism for better extensibility
 * Added backwards compatibility handler for deprecated `wellknown_nodeinfo_data`
   filter

### 3.0.0

 * Refactored to filter-based architecture for better extensibility
 * Added support for NodeInfo 2.2
 * Added separate integration classes for each NodeInfo version (1.0, 1.1, 2.0, 
   2.1, 2.2)
 * Added PSR-4 style autoloader
 * Updated schemas to match official NodeInfo specifications with enums and constraints
 * Added `nodeinfo_protocols` filter for plugins to register protocols
 * Added `software.homepage` field for NodeInfo 2.1 and 2.2
 * Added Site Health checks to verify endpoints are accessible

### 2.3.1

 * mask version number

### 2.3.0

 * add nodeName, nodeDescription and nodeIcon to meta array

### 2.2.0

 * add MAUs

### 2.1.1

 * load plugin on init, to keep up with changes on the ActivityPub side

### 2.1.0

 * count only users that can “publish_posts”

### 2.0.0

 * removed support for ServiceInfo, as it never caught on

### 1.0.8

 * fix link to WordPress repository (props @jeherve)
 * add generator object to metadata to link to plugin repository

### 1.0.7

 * NodeInfo 2.1 protocols field has to be an array, not an object

### 1.0.6

 * add autodiscovery link for nodeinfo 2.1
 * fix some typos/copy&paste issues

### 1.0.5

 * fix missing permission_callback issue

### 1.0.4

 * fixed whitespace problem

### 1.0.3

 * added admin_email to metadata, to be able to “Manage your instance” on https://
   fediverse.network/manage/

### 1.0.2

 * fixed JSON schema (thanks @hrefhref)

### 1.0.1

 * use `home_url` insted of `site_url`

### 1.0.0

 * initial

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/pfefferle/wordpress-nodeinfo)

## 额外信息

 *  版本 **3.1.0**
 *  最后更新：**4 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 6.6 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (UK)](https://en-gb.wordpress.org/plugins/nodeinfo/) 和 [English (US)](https://wordpress.org/plugins/nodeinfo/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/nodeinfo)
 * 标签
 * [activitypub](https://cn.wordpress.org/plugins/tags/activitypub/)[Diaspora](https://cn.wordpress.org/plugins/tags/diaspora/)
   [fediverse](https://cn.wordpress.org/plugins/tags/fediverse/)[ostatus](https://cn.wordpress.org/plugins/tags/ostatus/)
 *  [高级视图](https://cn.wordpress.org/plugins/nodeinfo/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/nodeinfo/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/nodeinfo/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/nodeinfo/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/nodeinfo/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/nodeinfo/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/nodeinfo/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/nodeinfo/reviews/)

## 贡献者

 *   [ Matthias Pfefferle ](https://profiles.wordpress.org/pfefferle/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/nodeinfo/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://notiz.blog/donate/)