Rust 重写 WordPress 运行时 HyScribe 开源

原标题:Show HN: HyScribe – A drop-in replacement for WordPress, written in Rust
58AI 研判分

HyScribe 是一个用 Rust 重写的 WordPress 直接替换方案,直接指向现有 WordPress 数据库与 wp-content 目录即可由单一原生进程提供服务,无需 PHP 运行时,也不做数据库结构迁移,且数据库仍可被 PHP 版 WordPress 读取,可随时回退。项目以 PHP2Shell 暴露的 PHP 运行时安全风险为切入点,用内存安全的 Rust 与沙箱化插件替代运行时,但官方明确标注尚未达到生产可用,未经过外部安全审计,部分管理后台与 REST API 仍返回 501。

关联知识实体

报道正文

本文目录2 个章节

HyScribe

A drop-in replacement for WordPress, written in Rust.

Website · Docs · Install · Latest release · Porting help

Point the hyscribe binary at an existing WordPress database and wp-content folder, answer a short setup wizard, and the site is served by a single native process. No PHP runtime, no schema migration, and the database stays readable by PHP WordPress, so you can switch back at any time.

PHP2Shell (October 2026) showed that every WordPress site can be compromised through the PHP runtime itself, with no plugin at fault. HyScribe keeps WordPress's data, URLs and ecosystem, and replaces the runtime with memory-safe Rust and sandboxed plugins. See docs/VISION.md.

[!WARNING] Not yet production ready. HyScribe is an early release in active development: it has had no external security audit, parts of hs-admin and the REST API still answer 501 Not Implemented, and behaviour may change between releases. Try it on a copy of a site, not on a live one, and keep backups. See PROGRESS.md for where it stands.

Why HyScribe

| --- | --- | | Your site, unchanged | The same database, the same URLs, the same content and users. Nothing is migrated and no table is altered | | No PHP to attack | A memory-safe Rust core with secure defaults. No PHP file is ever run, and every parser of untrusted input is fuzzed (docs/SECURITY_MODEL.md) | | Plugins in a sandbox | Extensions run as WebAssembly packages with declared permissions, time and memory limits, instead of code with the run of the server | | One binary | A static build with no runtime dependency but the database. Unpack, start, finish setup in the browser | | Checked against WordPress | PHP WordPress is the test oracle: pages, REST answers and database writes are compared with what PHP produces | | A way back | PHP WordPress can read everything HyScribe wrote. A test suite proves it on every release |

What it can do

v0.1.0 (2026-11-26) is the current release. On the default WordPress install it drops in against the same database, serves it, writes to it through hs-admin and the REST API with the same checks as PHP, and hands it back to PHP WordPress with no check failing. The acceptance runs are recorded in docs/ACCEPTANCE.md.

Legend: ✅ working today, 🚧 in progress, 🔜 coming up, ❌ not supported.

AreaStatusWhat you get
Drop in on an existing site✅One binary and a setup wizard serve a WordPress 7.0 or 7.1 site from its database and wp-content, with no schema change
Pages match PHP WordPress✅On the default install, pages match PHP WordPress byte for byte
Switch back to PHP WordPress✅The database stays readable by PHP WordPress; checked by its own test suite
Block themes✅Twenty Twenty-Two to Twenty-Five are built in and switch from Appearance; a site on another theme is served with Twenty Twenty-Five
Blocks and formatting✅Core blocks, global styles and WordPress's text formatting, checked against PHP
hs-admin (/hs-admin/)✅The default install's screens: posts, pages, media, comments, categories and tags, users, settings
Block editor and site editor✅Writing and editing posts and pages; templates, template parts, patterns and global styles
Media and uploads✅Images with their sizes made, and documents, spreadsheets, presentations, archives, text and CSV, Word, Excel and PowerPoint 97 to 2003 files, PDFs (kept without preview images), MP3 files with their tags and cover pictures, and MP4, M4A, M4V, QuickTime and 3GPP files with their cover pictures; Ogg, FLAC, Windows Media, Matroska, AVI and FLV files answer 501 until their readers are ported
REST API✅Reads for most core routes; writes for posts, pages, templates, global styles, menus, patterns, terms, settings, comments and users
Login and users✅Login at /hs-login with existing accounts, lost and reset password, registration, roles and capabilities; logged in users see their private posts, drafts and previews on the site as each role does in PHP WordPress
Comments✅Posting and moderating
Mail✅Through an SMTP relay you configure
Scheduled jobs✅WordPress's six core jobs run in the service
Release archives✅Reproducible static builds for Linux x86_64 and arm64, and, from the release after v0.1.0, builds for macOS (Apple Silicon and Intel, not yet signed by Apple), with checksums, SBOMs and build provenance

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)