首页 > AI前沿 > Show HN: HyScribe – A drop-in replacement for WordPress, written in Rust

Show HN: HyScribe – A drop-in replacement for WordPress, written in Rust

Hacker News 2026-12-03 20:28 21 阅读 查看原文
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 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. Quickstart Linux (x86_64 or arm64), or from the release after v0.1.0 macOS 11 and later (Apple Silicon or Intel) and Windows 10 and later (x86_64). You need an existing WordPress 7.0 or 7.1 site's database (MariaDB or MySQL) and its wp-content folder; try it on a copy. # Linux: linux-amd64 or linux-arm64. macOS: darwin-arm64 (Apple Silicon) or darwin-amd64 (Intel) curl -fLO https://github.com/hyscaler/HyScribe/releases/latest/download/hyscribe-latest-linux-amd64.tar.gz curl -fLO https://github.com/hyscaler/HyScribe/releases/latest/download/SHA256SUMS.txt sha256sum -c SHA256SUMS.txt --ignore-missing # macOS: shasum -a 256 -c SHA256SUMS.txt --ignore-missing gh attestation verify hyscribe-latest-linux-amd64.tar.gz --repo hyscaler/HyScribe tar -xzf hyscribe-latest-linux-amd64.tar.gz && cd hyscribe ./hyscribe service start # then finish setup in the browser On macOS the binary is not signed by Apple yet, and the platform is tested less than Linux: read On macOS first. On Windows take hyscribe-latest-windows-amd64.zip and run hyscribe.exe service start, after reading On Windows. Try it with Docker On Linux, macOS or Windows with Docker, from the release after v0.1.0: the same binary in an image for amd64 and arm64, with a MariaDB beside it. curl -fLO https://raw.githubusercontent.com/hyscaler/HyScribe/main/docker/compose.yaml printf 'DB_PASSWORD=%s\n' "$(openssl rand -hex 24)" > .env docker compose up -d docker compose cp hyscribe:/hyscribe/logs/setup-secret . && cat setup-secret Open http://127.0.0.1:8080/, enter the secret and tick "This is a new site" (database host db, name and user wordpress, the password from .env). The image is docker.io/hyscribe/hyscribe, also on GitHub Container Registry as ghcr.io/hyscaler/hyscribe. Docker covers a copy of an existing site, upgrades, backups and security. The operator documentation, also shipped in the archive as hyscribe/docs/, covers installing, configuration, running the service, switching a site over and back, backups, upgrades, security and what is not supported yet: docs/operators/. The design behind it is in docs/DEPLOYMENT.md. Coming from WordPress Your themes: the block themes Twenty Twenty-Two to Twenty Twenty-Five are built in. A site on another theme is served with Twenty Twenty-Five for now; classic themes are under way. Your plugins: PHP plugins do not run, because there is no PHP. A plugin needs a port to the extension runtime, and no popular plugin is ported yet. Need a custom theme or plugin ported? Write to contact@hyscribe.com. Changed your mind? Stop HyScribe and start PHP WordPress on the same database. Switching a site over and back has the steps. Status and roadmap In progress Not supported Roadmap No dates: each step ships when its checks against PHP WordPress pass. The plan is in docs/MVP.md (phases) and docs/ROADMAP.md (milestones, with what is done and left in each). Coming up Milestones The live checklist is PROGRESS.md. FAQ Not yet. v0.1.0 is an early release with no external security audit, and parts of the admin and the REST API still answer 501 Not Implemented. Run it on a copy of a site and keep backups. No table is altered and nothing is migrated. HyScribe writes only what PHP WordPress would write, which is checked against PHP for every kind of write. Yes, at any time. The database stays readable by PHP WordPress, and a switch-back test suite runs on every release. Not as they are. WordPress's PHP plugins never run on HyScribe. Plugins are ported to sandboxed WebAssembly packages on HyScribe's extension SDK; the runtime and SDK 0.5 are in this release, and the first ports are on the roadmap. For help porting your own, write to contact@hyscribe.com. Sites on WordPress 7.0 or 7.1. The block themes Twenty Twenty-Two to Twenty Twenty-Five are built in; classic themes are in progress. Nothing. HyScribe is open source under the AGPL-3.0-or-later licence. Built with Rust throughout: one static binary serves the site, hs-admin and the REST API over MariaDB or MySQL. Extensions run on a WebAssembly component runtime. PHP WordPress is used only as the test oracle. Going further docs.hyscribe.com and docs/operators: installing, configuration, running the service, switching a site over and back, backups, upgrades and security. What is not supported: the full list of what still answers 501 or differs from WordPress. docs/SECURITY_MODEL.md and docs/COMPATIBILITY.md: the security rules and the compatibility contract. docs/EXTENSIONS.md: writing plugins for the extension runtime. docs/ROADMAP.md and PROGRESS.md: the plan and the live checklist. Build from source reference/default-install/db.sh up # MariaDB with a fresh WordPress 7.1 install cargo build --release -p hyscribe mkdir -p try && cp target/release/hyscribe try/ printf 'DB_HOST=127.0.0.1\nDB_PORT=33061\nDB_NAME=wordpress\nDB_USER=wordpress\nDB_PASSWORD=reference-only\nWP_HOME=http://127.0.0.1:8080\n' > try/.env chmod 600 try/.env && try/hyscribe service start # then open http://127.0.0.1:8080/ The build downloads the pinned WordPress release from wordpress.org with curl and unpacks its wp-includes with tar, after checking its SHA-256, so the build host needs both and network access. For an offline build, point HYSCRIBE_WORDPRESS_TARBALL at a copy of wordpress-7.1.3.tar.gz. Development Rust stable 1.99 or later. cargo test --workspace # all tests cargo llvm-cov --workspace --ignore-filename-regex '/tests/' \ --fail-under-lines 100 --fail-under-regions 100 # the coverage gate cargo mutants --workspace # mutation testing cargo deny check # licenses, advisories, sources reference/default-install/build.sh # rebuild the default install fixture scripts/package.sh x86_64-unknown-linux-musl dist # release archive (on a Mac: aarch64-apple-darwin) scripts/smoke-test.sh dist/hyscribe_*_linux_amd64.tar.gz # install it and run the service Every change ships with tests, and coverage stays at 100% (docs/TESTING.md). Contributing Bug reports, compatibility reports, docs fixes, tests and code are welcome: see CONTRIBUTING.md and the Code of Conduct. Report vulnerabilities privately, as SECURITY.md says. License The code is AGPL-3.0-or-later. See LICENSE and ADR 0004. HyScribe is developed and supported by HyScaler. A copy or a fork keeps that attribution, as NOTICE says. The HyScribe name and logo are not covered by that licence; see brand/README.md. WordPress is a registered trademark of the WordPress Foundation. HyScribe is an independent project and is not affiliated with, sponsored by or endorsed by the WordPress Foundation or Automattic.