Explore the C++ internals of rippled, the XRP Ledger's core server implementation.
XRPLD C++ Reference is a searchable, navigable reference for the C++ implementation of the XRP Ledger in XRPLF/rippled. It documents the internal classes, functions, types and relationships on the develop branch for developers contributing to rippled. It is not documentation for the public JSON-RPC or WebSocket APIs.
This is an unofficial, independently maintained reference. It is not affiliated with or endorsed by the XRPL Foundation, Ripple, or the rippled maintainers.
The website runs locally with global search, namespace and class navigation, class pages with member tables and inheritance, dedicated method pages, clickable types, and links to the exact source lines. It has been tested for accessibility (WCAG 2.2 AA), in Chromium and Firefox at desktop, tablet and phone sizes, and as a GitHub Pages build. Measurements and results are in the quality report.
| Phase | Scope | State |
|---|---|---|
| 1 | Research and feasibility | Complete (report) |
| 2 | Documentation extraction pipeline | Complete |
| 3 | React foundation | Complete |
| 4 | Core reference features | Complete |
| 5 | Integration and optimisation | Complete |
| 6 | Deployment | Prepared for Railway, awaiting review |
Each dataset documents exactly one develop commit. For commit c2534ff9c84422e00711da31629a76f3f59feb98 it contains:
- 19,990 symbols: 76 namespaces, 929 classes, 360 structs, 31 concepts, 10,308 function overload sets, 5,356 variables, 929 type aliases, and 144 enums with 1,083 enumerators;
- 47,377 resolved type and documentation links, with 0 broken internal links and 0 URL collisions;
- source locations verified against the source, 98.8% on the exact line;
- 470 overrides that show their base method's documentation, each labelled with the method that wrote it;
- a coverage report covering documentation coverage, every correction applied, and every unresolved item.
Known Doxygen limitations, and how each one is handled, are in docs/EXTRACTION_LIMITATIONS.md. The design is described in docs/ARCHITECTURE.md.
npm startnpm start installs dependencies and generates the documentation dataset if either is missing. It then opens the site at http://localhost:5173. To do these steps yourself:
npm install
npm run docs:generate
npm run devTo try the optimised production build exactly as it is served in production, run npm run build && npm run serve and open http://localhost:8080. To try the GitHub Pages build under its repository sub-path, run npm run build:pages && npm run preview:pages and open http://localhost:4174/XRPL-Core-Reference/.
- Node.js 22 or later
- git
- Linux x86-64 for documentation extraction. Doxygen 1.17.0 is downloaded automatically and verified by SHA-256.
npm run docs:generate
npm run docs:generate -- --commit <full develop commit SHA>
npm run docs:build
npm run docs:validate| Command | Effect |
|---|---|
docs:generate |
Clones or fetches rippled into .cache/rippled, pins the commit, runs Doxygen, and builds the dataset into public/data/<sha>/. Without --commit it pins the current tip of develop. |
docs:extract |
Runs only the pinning and Doxygen steps. |
docs:build |
Rebuilds the dataset from an existing extraction. The checkout must still be at the extracted commit. |
docs:validate |
Re-checks a published dataset: hashes, schemas, single-revision consistency, and links. |
docs:fixtures |
Regenerates the test fixture from the pinned checkout. |
Pass --categories production,test to include rippled's test code as a separate category.
| Command | Effect |
|---|---|
npm run dev |
Development server with hot reload |
npm run build |
Production build into dist/, including the dataset in public/data/ |
npm run preview |
Serve the production build |
npm run lint |
ESLint, including the no-comments and browser/pipeline boundary rules |
npm run format / npm run format:check |
Prettier |
npm test |
Pipeline, contract and browser tests (Vitest) |
npm run test:e2e |
Playwright tests against the production build. Run npx playwright install once, and generate a dataset first. Set XCR_E2E_BROWSERS=chromium,firefox to choose browsers; WebKit also needs sudo npx playwright install-deps. |
npm run test:a11y |
Only the accessibility tests |
npm run serve |
Production server for dist/ (the command Railway runs); PORT selects the port |
npm run deploy:railway |
Manual, confirmed Railway deployment of the reviewed commit; -- --check runs every check without uploading |
npm run build:pages / npm run preview:pages |
GitHub Pages build into dist-pages/ under /XRPL-Core-Reference/, and a server that behaves like GitHub Pages |
Railway is the production host: a static build served by a small Node server. Deployments are manual only: Railway is not connected to GitHub, so pushing never changes the site. Run npm run deploy:railway, which deploys the reviewed commit on origin/main, after validating the committed documentation dataset and building and smoke-testing the site. Setup, rollback, documentation updates and troubleshooting are covered in docs/deployment/RAILWAY_DEPLOYMENT.md.
The original code in this repository is released under the MIT License.