Skip to main content
Back to projects
CosmicX icon

CosmicX

A space experience in your browser that makes the size of the universe something you can explore, shape, and understand.

Role
Product design + frontend development
Outcome
A hands-on space experience with three ways to learn.
Stack
JavaScriptThree.jsVite
CosmicX banner

What it is

CosmicX is a space experience in your browser that makes the size of the universe something you can explore, shape, and understand. It has three connected modes: a Solar Simulator for hands-on experiments, a Galaxy Creator for building your own galaxy, and a Big Bang Timeline for traveling through the history of the universe.

It is made for anyone curious about space: students, people who learn by seeing, and visitors who want more than a page of text. You can follow a guided story or explore freely at your own pace.

This story covers the full journey from the title screen through each mode, including choosing a mode, guided tours, controls, layouts for every screen size, saving, and the 3D scenes. Everything runs in the browser, with no server, account, or outside service.

The problem and the fix

The problem

  • Space is hard to picture

    Numbers and diagrams alone feel far away

  • Ideas should feel close

    Huge ideas must be explored, not just watched

  • Three ways to learn

    Discover, create, and follow a story in one product

  • Everything should feel the same

    Saving in the browser, with no server or account

The fix

  • Solar Simulator

    Fly around, look closer, change time, and trigger events

  • Galaxy Creator

    Pick a type, shape it, fill it with stars, adjust its physics

  • Big Bang Timeline

    Eleven stages you can drag, rewind, and view from any angle

  • Shared start and saves

    Guided tours, panels for any screen, and saves in the browser

What I did

  • Designing how people move through the title screen, mode choice, guided tours, and in-app navigation.
  • Building the Solar, Creator, and Big Bang experiences as parts of one app.
  • Creating the control panels, timelines, info panels, settings, music controls, and layouts for phones and computers.
  • Adding saving in the browser, including scene saves, Creator save slots, JSON export and import, shareable Solar scene links, and screenshots.
  • Adding screen-reader labels, keyboard-friendly controls, a phone-friendly panel layout, and proper cleanup when switching modes.
  • Checking the finished work with automated tests, production builds, and hands-on testing in the browser.

No claims are made about team size, formal user research, user numbers, or business results, because the project does not show them.

How I designed it

  1. 01

    Set the mood before the details

    A shared title screen previews each mode before the detailed controls appear

    First look
  2. 02

    Add detail step by step

    Short tours and grouped panels reveal more over time

    Pacing
  3. 03

    Keep busy controls easy to use

    Panels fold away so the 3D scene stays in view

    Layout
  4. 04

    Work on every screen size

    Layouts that adapt, screen-reader labels, and optional fullscreen

    Screens
  5. 05

    Treat all modes as one journey

    Shared navigation and cleanup keep the experiences connected

    Unity

Main features

Solar Simulator — places to explore and look closer

Five places to explore, including the Milky Way, Andromeda, Messier 87, Triangulum, and a made-up Wormhole Galaxy. They include eight planets, an asteroid belt, distant galaxies, labels, objects you can select, info cards, and six camera styles.

Solar Simulator — time and experiments

Move time forward or backward, change the speed, drag through the timeline, reset, or jump back to now. You can also trigger events you can undo, like impacts with warnings, lasers, zodiac effects, and wormholes.

Galaxy Creator — guided building

Six galaxy types and a four-step setup for type, shape, stars, and physics. Controls cover the galaxy's name, size, arms, core, thickness, density, dust, star clusters, mass, dark matter, spin, and how fast new stars form.

Galaxy Creator — a universe built for you

Stars, nebulae, star systems, planets, moons, atmospheres, dusty orbits, events, stats, and encyclopedia entries are created automatically. There is a close-up view for each star system, and time can run up to one million times faster.

Big Bang Timeline — a trip through time

Eleven stages from the start of the universe to its far future. You can play, pause, rewind, change speed, jump to any chapter, drag through the timeline, change how fast the universe expands, and hide the controls. The camera moves the whole way, with info cards for each chapter.

Shared features and saving

Music for each scene, settings for display, graphics, camera, controls, and sound, panels that fold away on phones, named saves with presets, shareable Solar scene links, Creator JSON export and import with save slots, and downloadable screenshots.

Tech Stack

  • JavaScript with native modules

    how the app behaves, the simulation rules, navigation, and interactions.

  • HTML

    the page structure for buttons, dialogs, tabs, sliders, labels, and info panels.

  • CSS

    the look of the app, frosted-glass panels, transitions, and layouts for every screen size.

  • Three.js 0.170.0 and WebGL

    3D scenes, cameras, lighting, particles, generated environments, and visual effects.

  • Vite 8.1.5

    local development, loading files, and building the final version.

  • Browser APIs

    local storage for settings and saves; file, Blob, URL, and canvas APIs for export and screenshots; fullscreen and device-tilt support; audio; and link-based navigation.

  • Bundled MP3 audio

    music for each scene, included with the app instead of loaded from the internet.

  • Node.js built-in test runner

    automated checks for simulation rules, saving, navigation, accessibility, screen sizes, and shared helpers.

There is no server, outside API, online service, account, cloud sync, collaboration, or database. Settings and saves stay in the browser that made them, and Creator JSON export is the way to back them up.

Hard parts and how I solved them

Fitting three heavy experiences into one app
When you switch modes, the app shuts down the old scene, stops its background work, and frees its graphics before the new mode starts. This stops old scenes from running in the background.
Keeping controls usable while the 3D scene stays visible
Actions are grouped into focused panels that can fold or expand, and the layout changes for small screens instead of shrinking every control.
Keeping saves after a page reload without a server
The app checks saved data before using it, remembers the Solar and Creator tours separately, and falls back to safe defaults if storage is not available. One gap remains: Creator does not yet clearly tell you every time a save fails.
Mixing real science with made-up content
The made-up Wormhole Galaxy uses the same look as real black-hole behavior while still standing apart. A future update should label simplified science and made-up material more clearly.

How it works

  1. 1

    The journey starts at a title screen with a live space background, music, a Start button, settings, and a way to choose a mode.

    Visitors can preview the other experiences and pick how guided they want to be.

  2. 2

    In Solar, a short tour explains how to move around and look at things before the full controls appear.

    Visitors can choose a place, select a planet or galaxy, move the camera, change time, open info panels, run experiments, and save a scene.

  3. 3

    In Creator, the visitor goes through four setup steps before entering their new galaxy.

    From there, they can check stats, place star systems and objects, let the galaxy grow, read encyclopedia entries, fly into a star system, change visual effects, save, export, or take a screenshot.

  4. 4

    In Big Bang, the visitor starts a guided show and moves through eleven stages of the universe.

    They can drag or rewind the timeline, change the expansion speed and camera, read about each chapter, and reach an ending they can replay.

  5. 5

    The result is one experience that can feel like a simulator, a building tool, or an interactive lesson, depending on the path each visitor takes.

    The three modes stay connected through shared navigation that cleans up the old scene before switching.

Results

  • The finished app passed 200 automated tests with no failures, and the production build finished successfully.
  • Hands-on browser testing confirmed the title screen and mode choice, the Creator setup and workspace, the Big Bang title and timeline, and the Solar controls with shared settings on small screens.
  • The build still warns that one JavaScript file is bigger than recommended.
  • The browser showed a harmless WebGL graphics warning, with no app errors during testing.
  • Phone tilt on a real phone, full download-and-reload of saves, running out of browser storage, and watching every timeline all the way to the end were not tried by hand in this review; automated tests and code review cover them.

What I learned

What worked

  • Even a rich visual experience needs a clear first step, like choosing a mode and taking a short tour.
  • Keeping saves, settings, cleanup, and tour progress separate and clear makes the app predictable.
  • Guide people first, then offer deeper controls to those who want to keep exploring.
  • Automated tests protect the rules and structure, while real browser testing finds layout and cleanup problems.

What could improve

  • Tell people clearly when a Creator save fails.
  • Label simplified science and made-up content, like the Wormhole Galaxy, more clearly.
  • Shrink the large JavaScript file below the recommended size.
  • Test phone tilt, save export and import, storage limits, and full timelines on real devices.

Future ideas

  • Add clear labels for real science, simplified models, and made-up content to build trust without losing the fun.
  • Tell people honestly whenever saving fails, and plan better for storage limits.
  • Keep improving layouts for different screens and cleanup as the app grows.
Next projectQyzen Learning PlatformA learning website for schools where admins, teachers, and students share one place for classes, tests, and grades.Read the story
Qyzen Learning Platform banner