
Deploy IronCalc
Open-source spreadsheet in your browser, with xlsx import, behind a login
Just deployed
/data
Deploy and Host IronCalc on Railway
IronCalc is an open-source spreadsheet engine written in Rust, with a web app that runs in the browser through WebAssembly. It has formulas, multiple sheets, styling, and import and export of Excel .xlsx files. It is licensed under MIT and Apache-2.0. This template deploys IronCalc 0.9.1 behind a login.
About Hosting IronCalc
IronCalc ships as two official images: the web app served by Caddy, and a small Rust server that converts .xlsx files and stores shared workbooks in SQLite. This template runs both in one service, built from a public GitHub repo that pins the images by version and digest. Caddy listens on Railway's port and passes /api to the server over localhost. Shared workbooks live on a volume at /data. Each visitor's own workbooks stay in their browser's storage. The whole site sits behind HTTP basic auth with a generated password, and /healthz answers Railway's health check. It runs in about 15 MB of RAM. Upstream still calls the web app a proof of concept, so keep copies of important workbooks.
Common Use Cases
- A private, self-hosted spreadsheet for yourself or a small team
- Opening, editing and exporting Excel
.xlsxfiles without an office suite - Sharing a read-only copy of a workbook through a link
Dependencies for IronCalc Hosting
- One Railway service built from
aalfath/ironcalc-railway-template(IronCalc web app, Caddy and the IronCalc server) - A Railway volume at
/datafor the shared-workbook database
Deployment Dependencies
- IronCalc: https://www.ironcalc.com/
- Source and releases: https://github.com/ironcalc/IronCalc/releases
- Template repo: https://github.com/aalfath/ironcalc-railway-template
- Docker images: https://github.com/orgs/ironcalc/packages
Implementation Details
What you get: one service, IronCalc, with a public Railway domain, a volume at /data, health check /healthz, and restart on failure. Nothing to fill in at deploy time.
After deploy: open the service's Variables tab and copy IRONCALC_PASSWORD. Open the public URL and sign in as admin with that password. Your browser keeps your workbooks. Use the download button to save an .xlsx. "Share" stores a copy on the server's volume and gives a link that anyone with the login can open read-only.
Variables:
| Variable | Default | What it does |
|---|---|---|
IRONCALC_USERNAME | admin | Login user name |
IRONCALC_PASSWORD | generated | Login password. Change it and redeploy to rotate it. Empty makes the site public |
PORT | 8080 | Port Caddy listens on |
Notes: workbooks you edit are saved in each browser (IndexedDB), not on the server, so clearing site data deletes them; download or share the ones you want to keep. Upstream's /api/list endpoint (the id of every shared workbook) is closed. Uploads are limited to 20 MB, IronCalc's own limit. It fits Railway's 0.5 GB Free plan.
Updates: when IronCalc releases a new version, the template repo's pin is bumped and CHANGELOG.md notes any breaking change. Railway then shows "update available" on your service, and you choose when to apply it. Your volume and variables are kept.
Why Deploy IronCalc on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying IronCalc on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
