GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - emb-ai/atrium.js

BranchesTags
Open more actions menu

Latest commit

 

History

134 Commits
134 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
js
js
 
 
slides
slides
 
 
tests/e2e
tests/e2e
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
TODO
TODO
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.mjs
playwright.config.mjs
 
 
serve.py
serve.py
 
 
style.css
style.css
 
 

Repository files navigation

atrium.js

A presentation tool that runs in a browser. Key features:

  • Supports loading slides as a PDF or a bunch of SVGs
  • Tools: freehand drawing, laser pointer
  • Speaker's pointer is mirrored into the slideshow window while a tool is active (pencil/eraser, laser dot)
  • Speaker mode with notes, next slide preview and synced second window for slideshow
  • Whiteboard mode with its own stack of blank pages
  • Brief session recovery for imported decks, ink, whiteboard and reading position
  • Simple usage via static serving
  • 100% vibe coded

Demo

Usage

Serve repository content statically with any HTTP server or service. To seek in embedded videos it should also supports Range requests. Simple server included. Run it and open http://localhost:8000/.

./serve.py

List SVGs in index.html, or load them at runtime via the toolbar (a multi-selection of SVGs, or a single PDF):

<div id="slides">
  <div class="slide" data-src="slides/1.svg" data-notes="Intro.&#10;Key goals."></div>
  <div class="slide" data-src="slides/2.svg"></div>
</div>
  • data-src — path to the SVG.
  • data-notes — optional speaker notes (use &#10; for newlines).

Embedded <video> elements inside SVG foreignObject are supported and kept in sync with the slideshow window.

A PDF may carry GIF, MP4 and WebM clips as attachments in the presio sidecar format (media-slide-{N}-{id}.json placing media-{id}.{gif,mp4,webm} on page N), as written by its Typst and LaTeX packages. They play over the page, cropped to fill their box, and restart each time their slide is shown (a clip with autoplay: false waits on its first frame). Videos get a play/pause button, a seek bar and a mute toggle on hover in the speaker's window (or the only one); the slideshow window follows them and has none. Clicking a video in cursor mode plays or pauses it.

A PDF may also carry interactive demos: single-file HTML pages attached as demo-{id}.html, placed on page N by demo-slide-{N}-{id}.json in the same format (presio ignores them). Each runs over its box in a sandboxed frame (scripts, no same-origin) while its slide is shown. The speaker's copy takes input; the audience's follows it through window.atrium, which atrium sets up in the page:

atrium.setState(state);           // speaker's copy: report a change
atrium.onState = state => { … };  // apply the speaker's state
atrium.role;                      // 'speaker' or 'audience', also
                                  // data-atrium-role on <html>

The last state of each demo is kept while the deck is loaded, so a demo resumes where it was when its slide comes back. Arrow, Page and Home/End keys the demo doesn't preventDefault() navigate the deck; Escape gives the keyboard back to atrium.

A PDF with portrait pages (an arXiv paper rather than slides) opens in paper mode: its pages stack in one scrolling column, and the presentation tools (laser, whiteboard, slideshow window, freeze) and their keys are turned off. Drawing works as on slides, on the page under the pointer. ↑/↓ scroll, PgUp/PgDn/Space scroll a screen, ←/→ jump to the previous/next page, Home/End go to the start/end; the wheel scrolls in draw mode too.

Reopening a presentation

Reopen the same URL in the same browser profile within about 15 minutes to restore the last saved deck, committed ink, whiteboard and slide or paper position. Imported PDF images and embedded media are saved locally. Linked assets in SVGs still need to be reachable. This is recovery, not a backup: it requires browser storage on HTTPS or localhost, and a second independently opened speaker tab doesn't overwrite the first tab's recovery.

Open the audience window with S. If it stays open while you close the speaker, the restored speaker reconnects to it without opening another one. F keeps the audience on the last published view, even when you load another deck or the audience reloads. Already-playing animations may continue. Press F again to publish what the speaker is showing.

Keybindings

Group Key Action
Navigation ← / PgUp Previous slide
→ / PgDn Next slide
Home First slide
End Last slide
Presentation S Toggle speaker mode
F Freeze the slideshow window at current slide
N Toggle slide numbers in speaker mode
T Toggle toolbar visibility
B Toggle whiteboard (blank pages)
add new page with → when current page is non-empty
? Toggle keyboard shortcuts cheatsheet
Tools D Draw
L Laser pointer (short-living trace)
C Cursor
Drawing Left mouse Draw
Right mouse Erase nearest stroke
P Color & size picker
+ / - Stroke size
Ctrl+Z Undo last stroke on current slide

Browser tests

npm ci
npx playwright install chromium
npm run test:e2e

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.