View on GitHub


A pure JavaScript medical research image viewer.

Download this project as a .zip file Download this project as a tar.gz file


Papaya is a pure JavaScript medical research image viewer, supporting DICOM and NIFTI formats, compatible across a range of web browsers. This orthogonal viewer supports overlays, atlases, GIFTI & VTK surface data and DTI data. The Papaya UI is configurable with many display, menu and control options and can be run on a web server or as a local, shareable file.

ScreenShot     ScreenShot

Documentation & Demo

Related Projects

Quickstart Guide


See here for the latest release or run to create your own build. See the documentation for more information.

Usage & Configuration

Basic usage (loads a blank viewer)

<!DOCTYPE html>
<html xmlns="" lang="en">
        <link rel="stylesheet" type="text/css" href="papaya.css" />
        <script type="text/javascript" src="papaya.js"></script>
        <title>Papaya Viewer</title>

        <div class="papaya"></div>

To automatically load images and configure other options

    <script type="text/javascript">
        var params = [];
        params["worldSpace"] = true;
        params["images"] = ["data/myBaseImage.nii.gz", "data/myOverlayImage.nii.gz"];
        params["surfaces"] = ["data/"];
        params["myOverlayImage.nii.gz"] = {"min": 4, "max": 10};


<div class="papaya" data-params="params"></div>