Practical overview
When it fits
Use it when a JavaScript application needs low-level handling of Stellar XDR. Consider the maintenance status when selecting a dependency for future protocol updates.
Who it is for
- JavaScript developers building Stellar applications that need to work directly with XDR data.
- Developers creating wallet components, signing utilities or tools for inspecting Stellar XDR payloads.
Documented uses
- Read and write Stellar XDR structures.
- Hash or sign XDR data within JavaScript software.
- Add XDR parsing and serialization to an application or developer tool.
Requirements & limits
- The library supports Node.js and web browsers.
- Node.js installation is documented with Yarn; browser options include self-hosting through Bower or loading a cdnjs script.
- The project says the package is no longer actively updated and directs users to
@stellar/stellar-sdkfor future updates, including protocol releases. - The repository declares an Apache-2.0 license.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add the library to a Node.js project
Install Js Stellar Base and import it into a JavaScript project.
Before you start
- A Node.js project
- Yarn
Steps
Run
yarn add @stellar/stellar-base.Import the package with
var StellarBase = require("@stellar/stellar-base");.
Expected outcome
The project can reference the library through the `StellarBase` variable.
Guide limitations
- The package is no longer actively updated; future updates, including protocol releases, ship in
@stellar/stellar-sdk.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 October 2026
- Original website title
- stellar/js-stellar-base · Official homepage title · retained in its source language
Related options
@stellar/stellar-sdk — The project recommends switching to this package for future updates, including protocol releases, and says it re-exports the full API of `@stellar/stellar-base`.

