RepositoryJavaScript
cds-astro

cds-astro/aladin-lite

An astronomical HiPS visualizer in the browser

172stars
59forks
71issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: hips

#1 Repository of the week

1
TINIX TRENDING·Topic: virtual-observatory

#1 Repository of the week

1
TINIX TRENDING·Topic: map-viewer

#1 Repository of the week

Aladin Lite

An astronomical HiPS visualizer in the browser Aladin Lite logo

Aladin Lite is a Web application which enables HiPS visualization from the browser. It is developed at CDS, Strasbourg astronomical data center.

See A&A 578, A114 (2015) and IVOA HiPS Recommendation for more details about the HiPS standard.

Aladin Lite is built to be easily embeddable in any web page. It powers astronomical portals like ESASky, ESO Science Archive portal and ALMA Portal.

More details on Aladin Lite documentation page. A new API technical documentation is now available.

Run tests API Documentation Release page

Try Aladin Lite here.

Aladin Lite is made possible thanks to pure Rust core libraries:

  • cdshealpix - for HEALPix projection and unprojection to/from sky coordinates
  • mapproj - for computing (un)projections described by a WCS
  • fitsrs - for reading and parsing FITS images
  • moc - for parsing, manipulating, and serializing multi-order HEALPix coverage maps

Running & editable JS examples

Basic Aladin Lite setupLoad SIMBAD & NED catalog dataLoad a FITS image
American Astronomical Society 225
example
Display proper motion vectorsVisualization of Mars

Releases

A release page keeps track of all the current and previous builds. A release and beta versions, regularly updated are available. The beta version is usually more advanced than the release one but features more error prone and not production-ready code.

[!TIP] If you are working on a project that uses Aladin Lite, prefer working with a fixed version. Every build is tagged with a version number and accessible with:

https://aladin.cds.unistra.fr/AladinLite/api/v3/<version>/aladin.js

Documentation

There is a new API documentation available here. Editable examples showing the API can also be found here.

Embed it into your projects

Terms of use: you are welcome to integrate Aladin Lite in your web pages and to customize its GUI to your needs, but please leave the Aladin logo and link intact at the bottom right of the view.

You can embed Aladin Lite it into your webpages in two ways

The vanilla way

Please include the javascript script of Aladin Lite v3 into your project. API differences from the v2 are minimal, here is a snippet of code you can use to embed it into your webpages:




    <!-- Mandatory when setting up Aladin Lite v3 for a smartphones/tablet usage -->
    



<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>






NPM deployment

A NPM package is deployed and maintained. It is used by ipyaladin, a jupyter widget allowing to run aladin lite in a notebook.

npm i aladin-lite

Aladin Lite can be imported with:

New features

  • Rust/WebGL2 new rendering engine
  • Remove jQuery dep
  • UI dev, better support for smartphones
  • FITS images support
  • WCS parsing, displaying an (JPEG/PNG) image in aladin lite view
  • Display customized shapes (e.g. proper motions) from astronomical catalog data
  • AVM tags parsing support inside JPEG
  • Easy sharing of current « view »
  • All VOTable serializations
  • FITS tables
  • Creating HiPS instance from an URL
  • Local HiPS loading
  • Multiple mirrors handling for HiPS tile retrival
  • HiPS cube
  • HiPS3D

Licence

Aladin Lite is currently licensed under LGPL-3.0-or-later

If you think this license might prevent you from using Aladin Lite in your pages/application/portal, please open an issue or contact us

Contribution guidelines

There are several ways to contribute to Aladin Lite:

  • report a bug: anyone is welcome to open an issue to report a bug. Please make sure first the issue does not exist yet. Be as specific as possible, and provide if possible detailed instructions about how to reproduce the problem.

  • suggest a new feature: if you feel something is missing, check first if a similar feature request has not already been submitted in the open issues. If not, open a new issue, and give a detailed explanation of the feature you wish.

  • develop new features/provide code fixing bugs. As open development is a new thing for us, we will in a first time only take into consideration code contribution (i.e. Pull Requests) from our close partners. In any case, please get in touch before starting a major update or rewrite.

Building steps

First you need to install the dependencies from the package.json Please run:

npm install

After that you are supposed to have the Rust toolchain installed to compile the core project into WebAssembly. Follow the steps from the Rust official website here You will also need wasm-pack, a tool helping compiling rust into a proper .wasm file.

Then you can build the project:

npm run build

[!WARNING] If you are experimenting Rust compiling issues:

  • Make sure you have your wasm-pack version updated. To do so:
cargo install wasm-pack --version ~0.12
  • Remove your src/core/Cargo.lock file and src/core/target directory -- this ensures that you'd escape any bad compilation state:
git clean -di
  • Then recompile
npm run build

It will generate the aladin lite compiled code into a dist/ directory located at the root of the repository. This directory contains two javascript files. aladin.umd.cjs follows the UMD module export convention and it is the one you need to use for your project.

Testing guidelines

Run the examples

A bunch of examples are located into the examples directory. To run them, start a localhost server:

npm run serve

Rust tests

These can be executed separately from the JS part:

  • Compile the Rust code:
cd src/core
cargo check --features webgl2
  • Run the tests:
cargo test --features webgl2

Snapshot comparisons

We use playwright for snapshot comparison testing. Only ground truth snapshots have been generated for MacOS/Darwin architecture. First install playwright:

npx playwright install

Run the tests, advises are given for opening the UI mode or for generating your own ground truth snapshots.

npm run test:playwright

Similar Projects

Discover other similar projects and AI models.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryJavaScript
mrdoob/three.js

JavaScript 3D Library.

120.1k
Dec 2, 2026
RepositoryJavaScript
mrdoob/three.js

JavaScript 3D Library.

120.1k
Dec 2, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.8k
Jul 26, 2026
RepositoryRust
storytold/photocraft

PhotoCraft: An open-source photo editor written from scratch in pure Rust

82.7k
Dec 2, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026