Skip to content

Neuroglancer Short Links

Fileglancer mascot

Neuroglancer Short Links allow you to save and share specific Neuroglancer viewer states, including layer visibility, color settings, zoom levels, and camera positions. This makes it easy to collaborate with colleagues by pointing them to exactly what you want them to see in your imaging data.

  • Persistent viewer states: Save your exact Neuroglancer configuration including visible layers, colors, and camera position
  • Shareable URLs: Generate short, stable links that can be shared with internal collaborators
  • Updateable: Edit the viewer state associated with an existing short link without changing the URL
  • Collaboration-focused: Ensure everyone sees exactly the same view of your data

Before creating Neuroglancer Short Links, you need:

  • A data link for your Zarr, OME-Zarr, or N5 image (see Creating Data Links)
  • The image opened in Neuroglancer viewer
  1. Create a data link for your image
    Navigate to your Zarr, OME-Zarr, or N5 directory and create a data link if one doesn’t already exist.

  2. Open in Neuroglancer
    Click the Neuroglancer viewer icon under the image thumbnail to open your data in Neuroglancer.

  3. Configure your view
    Adjust the image to appear exactly as you want collaborators to see it.

Screenshot of the Fileglancer NG Links page, with an arrow pointing to the '+ New Link' button.
  1. Navigate to the NG Links page
    Return to Fileglancer and click “NG Links” in the top navigation bar.

  2. Click ”+ New Link” button
    This opens the Create Neuroglancer Short Link dialog.

  3. Choose your link mode
    Select either URL Mode or State Mode depending on how you want to save your viewer state.

Use URL Mode to save the complete Neuroglancer URL with embedded state.

Screenshot of the Fileglancer Create Neuroglancer Short Link dialog, with the URL Mode option selected.
  1. Copy the Neuroglancer URL
    From your Neuroglancer browser tab, copy the full URL from the address bar. This URL contains all your viewer settings encoded in the URL parameters.

  2. Paste into the Neuroglancer URL field
    Paste the complete URL into the dialog.

  3. Add optional metadata
    Title (optional): Appears in the Neuroglancer browser tab when the link is opened Name (optional): Appears in the NG Links table for easy identification. If not provided, a random key will be used as the name.

  4. Click “Create”
    Your short link will be generated and added to the NG Links table.

Use State Mode when you want to save just the JSON state separately from the base URL.

Screenshot of the Fileglancer Create Neuroglancer Short Link dialog, with the State Mode option selected.
  1. Copy the JSON state from Neuroglancer
    In Neuroglancer, access the JSON state (typically through the state sharing dialog or browser console).

  2. Paste into the JSON State field
    Paste the JSON state object into the large text area.

  3. Verify the Neuroglancer Base URL
    Check that the base URL field contains the correct Neuroglancer instance URL. Adjust if necessary (e.g., https://neuroglancer-demo.appspot.com/).

  4. Add optional metadata
    Title (optional): Appears in the Neuroglancer browser tab Name (optional): Appears in the NG Links table for identification

  5. Click “Create”
    Your short link will be generated and added to the NG Links table.

All your Neuroglancer Short Links appear in a table on the NG Links page. The table displays:

  • Name: The custom name you provided, or the auto-generated key
  • Neuroglancer Short Link: The shortened URL that opens the viewer
  • Date Created: When the link was created
  • Key: The unique identifier for this link
  • Actions: Options menu for managing the link
  1. Click the Neuroglancer Short Link
    In the table, click on the blue link in the “Neuroglancer Short Link” column to open the viewer in a new tab.
Screenshot of the Fileglancer NG Links page, with an arrow pointing to the Actions button on a link row.
  1. Click the Actions button
    On the right side of the table row for your link.

  2. Select “Copy Neuroglancer Link”
    The shortened URL is copied to your clipboard.

  3. Share the link
    Send the link to your collaborators. Anyone with access to the Janelia network can use the link to see exactly what you configured in Neuroglancer.

  4. Alternative: Copy JSON state link
    You can also select “Copy JSON state link” from the actions menu to share a link to just the state data.

Screenshot of the Fileglancer NG Links page with the Edit dialog open.

If you need to update the viewer state for an existing short link:

  1. Make changes in Neuroglancer
    Open your link in Neuroglancer and adjust the view as needed.

  2. Click the Actions button
    On the right side of the table row for your link.

  3. Select “Edit”
    This opens the Edit Neuroglancer Short Link dialog.

  4. Update the state
    In URL Mode: Paste the new Neuroglancer URL
    In State Mode: Paste the updated JSON state and verify the base URL

  5. Update the title if needed
    Optionally modify the title that appears in the browser tab.

  6. Click “Save”
    The same short link URL will now point to your updated viewer state. Collaborators using the original link will automatically see the new configuration.

  1. Click the Actions button
    On the right side of the table row for your link.

  2. Select “Delete”
    Confirm the deletion in the dialog that appears.

  3. Link is revoked
    The short link will immediately stop working. Anyone with the link will no longer be able to access the viewer state.

Problem: Clicking the short link returns an error or doesn’t load the viewer

Solutions:

  • Verify you’re on the Janelia network
  • Check that the underlying data link is still active (visit the Data Links page)
  • Ensure the source data hasn’t been moved or deleted
  • Try copying the link and opening it in a new browser tab

Problem: The ”+ New Link” button doesn’t work or the dialog won’t submit

Solutions:

  • Verify you have a valid Neuroglancer URL or JSON state to paste
  • Check that your session is still authenticated (try refreshing the page)
  • Ensure the JSON state is valid JSON format (use a JSON validator if needed)

Problem: Others report that the link doesn’t work for them

Solutions:

  • Confirm they’re on the Janelia internal network
  • Verify the link is still active in your NG Links table
  • Check that the underlying data link is still active (visit the Data Links page)
  • Try copying and resharing the link in case of clipboard issues
  • Use descriptive names: Give your links meaningful names so you can easily find them later
  • Add titles: Include descriptive titles so collaborators know what they’re viewing when they open the link
  • Document your links: Keep notes about what each link demonstrates, especially if you have many links
  • Clean up old links: Regularly review your NG Links table and delete links that are no longer needed
  • Test before sharing: Always open your link yourself before sending it to others to ensure it works as expected
  • Maintain data links: Remember that Neuroglancer Short Links depend on the underlying data links being active