ShareR™ is an open-source, serverless R and R Markdown runner powered by webR and WebAssembly in the browser. Give it a GitHub repository or script, add local data files, and run the analysis without installing R or sending those files to a remote analysis server.
ShareR installs compatible precompiled WebAssembly packages, streams analysis output, renders charts and tables, and packages generated files for download. Shareable URLs help research teams run the same browser-based analysis on locked-down devices and reproduce results with less setup.
ShareR supports browser-compatible R workflows rather than every desktop R environment: packages that require native compilation and full Pandoc-based R Markdown rendering are not supported.
For research teams, that means anyone on the project can run the same analysis the same way, without needing R installed or any technical setup, just a link and a browser.
Try a small beginner example
Follow the plant-growth walkthrough to run two small example files with invented data, one chart, and one summary CSV. No extra R packages are needed.
Run someone else's analysis
- Open ShareR with the repository in the URL:
https://code.depressioncenter.org/ShareR/?repo=DepressionCenter/EMA-CleanR - Wait for the one-time download of the R engine and packages. The script will run automatically using the sample data file(s) included in the repository.
- You can also replace the data files with your own in the Workspace panel, then click the yellow Run button. ShareR will use your files instead of the sample data, and regenerate the report tab.
- Read the report, then press Download all outputs to get a ZIP with the report, the generated files, the console log, and a run manifest.
Run your own script without a repository
- Open
https://code.depressioncenter.org/ShareR/with no parameters. - Drop in your
.Ror.Rmdfile together with its data files, or drop a whole folder. - Press Run analysis.
Run it locally
- Clone or download this repository.
- Run
.\run-windows.ps1(Windows),./run-linux.sh(Linux), or double-clickrun-mac.command(macOS). These wrap the bundled ZippyServe binary, so nothing has to be installed. - Your browser opens to
http://localhost:8010.
Share your script with others
- Publish your repository on GitHub, then share the link to ShareR with the
?repo=Owner/RepoNameparameter. For example,https://code.depressioncenter.org/ShareR/?repo=DepressionCenter/EMA-CleanRruns the reference workflow in theDepressionCenter/EMA-CleanRrepository. - If your repository contains multiple scripts, ShareR will list them and let the user choose which one to run. If you want to be explicit about which script is the entry point, add a
&script=parameter to the URL, followed by the path to the script (relative to the repository root). Example:https://code.depressioncenter.org/ShareR/?repo=DepressionCenter/EMA-CleanR&script=EMA-CleanR.rmd. - If your script references sample data files, and you have those in your repo, it will run with the sample data. You can also specify which data files to use by adding a
&data=parameter to the URL, followed by a comma-separated list of file names (relative to the repository root). Example:https://code.depressioncenter.org/ShareR/?repo=DepressionCenter/EMA-CleanR&script=EMA-CleanR.rmd&data=EMA-Data.csv. - Share the link with your colleagues, and they can run the analysis in their own browser, with their own data files, without installing anything!
- The full documentation is available at: https://michmed.org/efdc-kb
- Technical specification:
docs/ShareR-Technical-Specification.md
- Fork this repository. Keep
index.htmland.nojekyllat the root of the branch you want to publish. - In Settings > Pages, select Deploy from a branch as the source. Select
main(or the branch with your copy), choose /(root), and save. Enable Enforce HTTPS when available. GitHub Pages setup - Once deployment finishes, open the site URL under Settings > Pages to check that ShareR loads. The repository already contains the files the site needs.
For users: a current version of Chrome, Edge, Firefox, or Safari with WebAssembly enabled. Roughly 300 MB of free browser storage for the cached R engine and packages. No account, no login, no API key.
URL parameters
| Parameter | Meaning | Default |
|---|---|---|
repo |
Owner/RepoName of a public GitHub repository, or a full GitHub/GitLab/Bitbucket repository URL |
none, which starts ShareR in upload mode |
ref |
Branch, tag, or commit SHA. branch is accepted as an alias. |
the repository's default branch (main) |
entry or script |
Path to the script to run or the URL to the script (if not using a repository) | auto-detected (when using a repository) |
data |
Input files to load. Use paths relative to the repository or full file URLs. Separate files with commas or repeat data. |
ShareR looks for files referenced by the entry script in the repository, when available. |
packages |
Extra R package names to install, separated by commas. | ShareR uses its required packages and the ones it detects in staged scripts. |
repos |
Extra URLs where ShareR can download browser-compatible R packages, separated by commas. Use an R package repository, such as an R-universe URL. | ShareR uses its built-in package repositories. |
Replace the placeholder paths and URLs in these query examples with your own.
- Two repository files with a named entry script:
?repo=OWNER/REPO&entry=report.R&data=sample.csv,lookup.csv - A remote file staged as
sample.csv:?data=https%3A%2F%2Fexample.org%2Fdownload%3Fid%3D123%26format%3Dcsv%7Csample.csv - Extra packages and a package repository:
?packages=tibble,tidyr&repos=https%3A%2F%2Ftidyverse.r-universe.dev
The rename form is data=<file URL>|<filename>. Encode the value before inserting it into the page URL. This protects characters such as & and # inside the file URL. ShareR reads commas as list separators and the first pipe as the rename separator after decoding the query. If the file URL itself contains one of those characters, keep it percent-escaped inside the file URL before encoding the query value.
ShareR always runs the script automatically once it and its files are staged; use the Run button to run again manually.
With no URL parameters, ShareR opens an empty browser workspace. Drop files or a project folder into the main area, choose files with the Workspace controls, create a new script or data file, or open the included EMA-CleanR sample. The Files toolbar and each directory provide contextual create/upload actions. Files and directories can be moved by dragging them to another directory or with the keyboard-friendly Move action, computer files can be dropped directly into a target directory, and any file can be duplicated with an automatically numbered name. The tree also supports script switching and per-file replacement/restoration. The Current Script Inputs list follows supported file paths in the active editor text.
For repository authors: nothing is required. Optionally, include sample data for your script in your repo (preferably in a data/ folder). Any files referenced by your script and hosted in the same repository will be loaded automatically.
For maintainers: the CONFIG object in index.html holds the pinned webR version, webR URLs, package repository URLs, and size limits. A standard deployment uses the values already in the repository.
Analysis files: ShareR processes scripts and data in your browser. Its file-opening and analysis code does not upload the files you select.
Network requests: ShareR fetches the R software, packages, and remote scripts or data that you ask it to open.
Website analytics: ShareR loads Google Analytics when the page runs on code.depressioncenter.org. Copies on other hostnames skip that setup. Analytics setup is separate from analysis-file processing.
On compliance: Always check with your IRB and your organization's cybersecurity or information assurance team before using this application with PHI or confidential data.
A note on running other people's code: ShareR can open and run any public GitHub repository. The code always runs safely inside your browser and can't reach the rest of your computer, but it can read any file you personally add to the page.
Accessibility: ShareR is built to work well with screen readers, keyboard-only navigation, and other assistive technology, aiming to meet the WCAG 2.2 AA accessibility standard.
A few things ShareR can't do yet:
- Only R packages that have a browser-compatible version available can be used. If a script needs one that isn't available, ShareR will display an error message, but will give you the option to try running the script anyway without the missing packages.
- Your browser has a limited amount of memory, so very large datasets combined with many packages may not fit.
- Private (non-public) GitHub repositories aren't supported directly. Use the drag-and-drop upload option instead. ShareR never asks for, and never stores, any GitHub login or access credentials.
- Eisenberg Family Depression Center
- EFDC open source projects
- EMA-CleanR, the reference workflow
- ZippyServe, the bundled local web server
- webR documentation
The Mobile Technologies Core provides investigators across the University of Michigan the support and guidance needed to utilize mobile technologies and digital mental health measures in their studies. Experienced faculty and staff offer hands-on consultative services to researchers throughout the University – regardless of specialty or research focus.
Learn more at: https://depressioncenter.org/mobiletech.
To get in touch, contact the individual developers in the check-in history.
If you need assistance identifying a contact person, email the EFDC's Mobile Technologies Core at: efdc-mobiletech@umich.edu.
- Eisenberg Family Depression Center (@DepressionCenter)
- Jonas Thiemann (@jonpyt) - Reviewed the prism-code-editor integration and recommended accessibility and DOM-order improvements.
- Dima Mark (@ub3dqy)
- Sumeet Jha (@O1sumitkumar)
- Arataki (Nero) Asahi (@laozhej)
- webR - "The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node," by George Stagg and Lionel Henry. Runs the R and R Markdown scripts entirely inside the browser; it is ShareR's execution engine. License: GPL-3.
- DataLaVista™ - A lightweight, client-side reporting and dashboard toolkit. This project re-uses some of the CORS proxy fallback functions and UI design ideas.
- fflate - "High performance (de)compression in an 8kB package." Builds the downloadable ZIP archive of a run's output files, rendered report, execution log, manifest, and source script. License: MIT.
- js-yaml - "JavaScript YAML parser and dumper. Very fast." Parses an
.Rmdfile's YAML front matter (title,params, output options). License: MIT. - marked - "A markdown parser and compiler. Built for speed." Renders the Markdown prose in
.Rmdchunks to HTML for the Report tab. License: MIT. - DOMPurify - "A DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG." Sanitizes that rendered HTML before it is ever inserted into the page - the app's one deliberate
innerHTMLassignment. License: Apache-2.0 or MPL-2.0 (dual-licensed). - prism-code-editor - "Lightweight, extensible code editor component for the web using Prism." Powers the syntax-highlighted R/R Markdown script editor. License: MIT.
- docx - "Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser." Builds the downloadable Word export of a rendered report. License: MIT.
- PptxGenJS - "Build PowerPoint presentations with JavaScript. Works with Node, React, web browsers, and more." Builds the downloadable PowerPoint export of a rendered report. License: MIT.
- ExcelJS - "Excel Workbook Manager." Builds the downloadable Excel workbook export of a run's output tables. License: MIT.
- jsPDF - "Client-side JavaScript PDF generation for everyone." Builds the downloadable PDF export of a rendered report. License: MIT.
- jsPDF-AutoTable - "jsPDF plugin for generating PDF tables with javascript." Renders output tables inside the PDF exports jsPDF produces. License: MIT.
- Bootstrap Icons - "Official open source SVG icon library for Bootstrap with over 2,000 icons." Most icons in ShareR's interface are inline SVG path data copied from this library; there is no icon font or runtime request. License: MIT.
- fst, fstcore, and fstlib - "Lightning Fast Serialization of Data Frames for R" (fst), its "R bindings to the fstlib library" (fstcore), and the underlying "C++ library for lightning fast multi-threaded serialization of tabular data" (fstlib). These libraries are cross-compiled for WebR and included here as they do not exist (yet) in official r-wasm repositories; see
build/fst/build-fst.ps1. License: AGPL-3. - ZippyServe - A zero-dependency local web server. It lets you test single-page apps quickly. It serves directories, zips, HTML, and Markdown. It powers ShareR's
run-windows.ps1/run-linux.sh/run-mac.commandscripts so the app can be served locally without installing a full web server. License: GPL-3.0 or later. DOI: 10.5281/zenodo.21613944.
The following public repositories are used to download JavaScript, R and WebAssembly libraries and packages:
- jsDelivr - "A free CDN for open source projects." Serves webR and most JavaScript libraries listed previously at pinned versions.
- webr.r-wasm.org - Hosts the compiled webR WebAssembly runtime binaries that the browser downloads on first run.
- repo.r-wasm.org - "A CRAN-like repository hosted via CDN that provides pre-compiled R packages for WebAssembly." The primary repository webR's
install()uses to fetch R packages a script requests. - tidyverse.r-universe.dev - An R-universe package-distribution repository, consulted as a fallback source for WebAssembly package binaries not found on repo.r-wasm.org.
- fstpackage.r-universe.dev - Another R-universe repository, consulted as the same kind of fallback source.
- ghcr.io/r-wasm/webr - A Docker container image maintained by the webR project, pre-loaded with the Emscripten toolchain and
rwasmneeded to cross-compile R packages to WebAssembly. Used only bybuild/fst/build-fst.ps1at build time, not by the running app, to compile the fst/fstcore/fstlib packages listed previously.
Copyright © 2026 The Regents of the University of Michigan
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0-standalone.html.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You should have received a copy of the license included in the section entitled "GNU Free Documentation License". If not, see https://www.gnu.org/licenses/fdl-1.3-standalone.html
If you find this repository, code or paper useful for your research, please cite it.
Mongefranco, Gabriel (2026). ShareR. University of Michigan. Software. https://github.com/DepressionCenter/ShareR
DOI: 10.5281/zenodo.21812997
Copyright © 2026 The Regents of the University of Michigan

