Skip to content

About

Static single-file viewer and validator for S3 buckets laid out per the atlas-assets spec

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

atlas-assets-viewer

A single-file, static web viewer for S3 buckets laid out per the atlas-assets spec. It needs no build step, server, or AWS credentials. The page reads the bucket in the browser with unsigned S3 requests.

Live: https://alleninstitute.github.io/atlas-assets-viewer/

What it does

  • Walks <type>/<name>/<version>/… one level at a time (?delimiter=/), so it never enumerates OME-Zarr chunks.
  • Validates structure against the spec (v0.2.2): required, optional, and conditional files per asset type, name suffixes, version format, and the minimal manifest keys.
  • Shows each asset's manifest and data_description.json, plus a browser for its contents with previews of text files.
  • Links atlases, templates, and annotation sets into Neuroglancer and NeuroGlass, and asset locations into s3-browser.
  • Gives every view a shareable URL.
  • Export saves the fetched tree as JSON. To reload a snapshot without touching S3, drop the file anywhere on the page.

Supported asset types: atlases, templates, annotation-sets, terminologies, coordinate-spaces, coordinate-transformations.

Spec: documentation · GitHub

Usage

Enter an s3://bucket/prefix and press Load. Leave the region blank unless the bucket is in an opt-in region.

To link straight to a store, set store in the URL hash:

https://alleninstitute.github.io/atlas-assets-viewer/#/?store=<bucket>/<prefix>

The bucket must allow public ListBucket/GetObject and return CORS headers for GET.

Hosting inside the bucket

If index.html is copied into the bucket and opened via its S3 URL, it reads the bucket, region, and prefix from its own address and describes that prefix. Requests are then same-origin, so the bucket needs no CORS setup.

Running locally

python3 -m http.server 8000   # then open http://localhost:8000

Opening index.html directly (file://) also works.

Limits

Validation follows atlas-assets spec v0.2.2 and is structural only: required, optional, and conditional files; name and version formats; JSON parsing; and the minimal manifest keys (including described_by). It does not check JSON schemas, OME-Zarr metadata, or terminology graphs; the atlas-assets CLI does those checks under --level full.

License

MIT

About

Static single-file viewer and validator for S3 buckets laid out per the atlas-assets spec

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages