Skip to content

Getting Started

Welcome to Annota! This guide will help you integrate Annota into your application and start annotating medical images.

Annota supports both React and Svelte. Select your preferred framework to see framework-specific getting started guides.

These concepts apply to both React and Svelte:

Before you begin, make sure you have:

  • Node.js 16+ installed
  • React 18+ / 19+ OR Svelte 5 in your project
  • Basic knowledge of your chosen framework
  • A whole slide image in a supported format (DZI, IIIF, etc.)

Annota is a high-performance annotation framework specifically designed for digital pathology and whole slide imaging. It provides:

  • Interactive drawing tools for creating annotations (points, rectangles, polygons)
  • Layer management for organizing annotations
  • Event system for responding to annotation changes
  • Data loaders for importing annotations from H5, JSON, and other formats
  • High performance rendering with PixiJS and WebGL
  • Framework support for both React and Svelte

Annota is built on three core technologies:

  • OpenSeadragon: For displaying gigapixel images
  • PixiJS: For hardware-accelerated annotation rendering
  • React/Svelte: For component-based UI integration

The framework follows a clean separation of concerns:

Your React/Svelte App
Provider (Context/Runes)
Viewer (OpenSeadragon)
Annotator (Annotation Layer)
Tools (Point, Rectangle, Polygon, etc.)
  1. Install Annota and OpenSeadragon
  2. Wrap your app with AnnotaProvider
  3. Add Viewer component to display your image
  4. Initialize the Annotator overlay
  5. Use tools via hooks (React) or stores (Svelte)
  6. Access annotations reactively