mBolts is the set of shared packages behind MalverdeSoftware, which builds free, open-source tools for research and community activities. The packages are shared so each app stays lightweight, needs no participant logins, works on phones and in the field, and leaves data with the people who collect it. MalverdeSoftware follows an Indigenous-led approach to software: practical tools, open methods, and software that communities and research partners can run themselves.
Status: early release. The packages are used by mPile and mVote. Open source under the Apache License 2.0.
The apps live in their own repositories: mPile for card sorting and mVote for sticky-dot voting. Each works alone or alongside the other. This repository holds what they share, so the apps stay consistent and new apps start from the same base. Apps install exact, pinned versions of these packages and can still be run and deployed on their own.
The shared code enforces one rule: the software provider never accesses, owns or keeps a readable copy of what researchers upload or participants submit.
- A researcher starts a session and sends each participant a personal link and passcode.
- Participants sort or vote on their phones.
- The researcher saves the outputs on their own computer and closes the session.
- In between, the only server involved stores data sealed in the browser, which it cannot open, and deletes it on close or expiry.
npm install @malverdesoftware/sealed-envelope @malverdesoftware/relay @malverdesoftware/session-client @malverdesoftware/uiSee docs/CONSUMING.md for pinning, entry points and upgrades.
| Document | Purpose |
|---|---|
| Conventions | Tech stack, commands, code style, testing, boundaries and known limits |
| Using the packages | Installing from npm, entry points, upgrades and releases |
| sealed-envelope spec | Browser encryption and the envelope wire format |
| relay spec | Ciphertext-only store and its HTTP contract |
| session-client spec | Session lifecycle, personal links, passcodes and the session key file |
| What the relay can see | What leaves a device, what the relay and Cloudflare can see, and reading data without the app |
| mUI spec | How every app looks and behaves: Ring UI, type, color, phones, confirmation |
| Distribution spec | Registries, releases, DOIs and who can create sessions |
| Design ethos | The logo, its rules and the name |
The mPile app spec is in the mpile repository.
Requires Node.js 24 (.node-version records 24.22.1, the version tested here). Node 26 is not supported. On macOS: brew install node@24, then put $(brew --prefix node@24)/bin first on your PATH when working in this repository.
npm ci
npm test # environment check, then every package's tests
npm test -w @malverdesoftware/relay # one package
npm run typecheck
npm run build # dist/ for each package
npm run relay:dev # local relay at http://127.0.0.1:8787/relay (synthetic data only)
npm run pack # tarballs in artifacts/ for apps to vendor
node scripts/check-consumer.mjs # after pack: fresh mPile clone installs, runs and builds with them| Package | What it does |
|---|---|
sealed-envelope |
Browser encryption: keys, passcodes, sealing and opening, per-participant credentials |
relay |
Ciphertext-only session store: a portable Fetch API handler with D1, node:sqlite and memory stores |
session-client |
What apps call: session key files, personal links, publishing, drafts, submissions, collecting |
ui |
The shared look: stylesheets, the page frame, safe confirmation dialogs, and a check apps can run against the UI spec |
See docs/CONSUMING.md for how apps pin and upgrade these packages.
GitHub Actions (ci.yml) runs on every pull request and push to main: tests, typecheck, build, the envelope fixture check and the Python cross-check. On main it also runs the fresh-mPile consumer check.
Session key files (*.malverdesoftware-session.md) can open every response in a session. This repository's .gitignore excludes them. Never commit or attach one.
mBolts (MalverdeSoftware shared packages) is free, open-source software under the Apache License 2.0. Copyright 2026 The Johns Hopkins University. Developed by Valentín Quiroz de la Sierra and Marissa Ledesma for MalverdeSoftware, with support from the National Institute on Drug Abuse of the National Institutes of Health under Award Number K99DA066943. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. See NOTICE.
To cite mBolts, use the "Cite this repository" button on GitHub or CITATION.cff:
de la Sierra, V. Q., & Ledesma, M. (2026). mBolts (MalverdeSoftware shared packages) [Computer software]. MalverdeSoftware. https://doi.org/10.5281/zenodo.24184643
The DOI 10.5281/zenodo.24184643 always resolves to the latest release. Each release also has its own DOI on Zenodo.
The license covers the code only. The MalverdeSoftware, mVote and mPile names and the MalverdeSoftware logo are not licensed (Apache-2.0, Section 6). Research data collected with this software is not covered either. The communities and partners responsible for each activity govern it.