-
-
Start page: choose a PDF slide deck or one of two made-up sample decks. The file is read in the browser tab and never uploaded.
-
The text version of the deck, to download as a web page or plain text, below the deck-level barriers.
-
Sample deck with problems: 8 findings on 4 of 5 slides and 3 deck-level barriers, with the findings counted by check.
-
Slide 1: a grey title measured at 2.07:1 where 3:1 is needed, and 12 pt text, each boxed on the slide with how to fix it.
-
Accessible sample deck: 0 findings on 0 of 5 slides and 0 deck-level barriers.
-
Slide 2: the title is read 5th of 5, and the fix names the line to move it before.
-
Slide 4: words that exist only as a picture, with no alt text and no text layer.
The story
Say Dana teaches earth science, and tonight she posts this week's slides as a PDF that looks fine on her screen. For a student with low vision, or one who uses a screen reader, the same file can be pale text, tiny print and silence. An accessibility checklist tells Dana the rules, but not which slide breaks them or by how much. Slide Check measures every slide and shows each barrier with the number it found and how to fix it. On the made-up sample deck it reports 8 findings, among them a grey title at 2.07:1 where 3:1 is needed and a title a screen reader reaches 5th of 5. For the student, it builds a text version with the reading order repaired, and the file never leaves the browser tab. Contrast is an estimate, it has not yet been tried on real lecture decks or with a real screen reader, and Dana still fixes the slides herself. But next week, before she posts, she already knows what every student will get.
Try it in one minute
Open https://bananatruck.github.io/slide-check/, press "Open the app", then press "Sample deck with problems". The deck is made up for this demo and is built into the page, so no file of your own is needed. Then press "Accessible sample deck" to see the same lesson with every check passing. To check a real deck, export it to PDF and choose it with the file picker; it is read in the browser tab and never uploaded.
Inspiration
Lecture slides are often the only copy of a lesson a student gets, and they usually arrive as a PDF. For a student with low vision or a student who uses a screen reader, that PDF can be a wall: pale text, footnotes in 10 point type, charts with no description, titles read last, and quiz slides that are just a picture of words. The teacher rarely knows, because the slides look fine on their own screen.
What it does
Who struggles now: a student with low vision, and a student who uses a screen reader, who get the lecture as a PDF of the slides. The screen reader reads the bullet points before the slide title, says nothing about the chart, and goes silent on the quiz slide that is a picture of words; the grey title and the 11 point footnote cannot be read from the back of the room or on a phone. The teacher does not know, because the slides look fine on their own screen.
What changes with Slide Check: the teacher drops the same PDF into the page and sees, for every slide, a numbered list of barriers with the measured value of each and how to fix it (the size or ratio to reach, which way to move the colours, where alt text and reading order are set), boxed on a picture of the slide. The student gets a text version of the deck that reads in order and says where a picture has no description, without waiting for the teacher to fix and export the slides again.
What still needs work: it has not been tried on real lecture decks or with real screen readers, only on synthetic decks and with automated checks. Contrast is an estimate from rendered pixels. It does not read words inside pictures on slides that also have real text, and it does not fix the PDF itself: the teacher still changes the slides and exports again.
The five checks:
- Text too small: each line's size from the PDF text layer, scaled to a 7.5 inch tall slide, against a minimum the user sets (default 18 pt); a portrait handout page is judged at its real size against 12 pt.
- Low contrast: the slide is rendered in the browser, the text and background colours of each line are read from the pixels, and the ratio is computed with the WCAG 2 formula (4.5:1, or 3:1 for large text). This is labelled as an estimate.
- Image with no text alternative: every image drawn on the slide, checked against the PDF's tags for alt text or a decoration mark.
- Reading order out of place: a line a screen reader reaches after a line below it in the same column, with the full order a screen reader gets.
- Text only in a picture: a slide with pictures and no readable text (no text layer at all, or only text marked as decoration).
The file as a whole is also checked for tags, a document language, a title, and whether any slide has a text layer at all or readable text not marked as decoration (a scanned deck, or one whose text was turned into pictures or outlines, is said to be one rather than passed). The text version, as HTML or plain text, has one heading per slide, the reading order repaired, bullets as real lists, and every picture with its alt text or a note that it has none. It ends with a section for the deck's author that repeats each barrier and how to fix it.
It serves two of the challenge's starting points: Understand and Interact (a readable version of the deck for screen reader users, and a list of what to fix), and Connect (the file never leaves the device, and after the first visit the page and both samples work with no network).
How we built it
- TypeScript and pdf.js, as a static site on GitHub Pages; there is no server.
- pdf.js gives the text layer with marked content ids, the structure tree and the operator list. From these the app builds text lines with their box, size and weight, the order a screen reader gets them in, and every image with its position and the tag around it.
- Contrast: the page is rendered to a canvas at about 2000 pixels wide. Inside each line's box, the most common colour is the background, and among the other common colours the one that contrasts most with it is the text, which is the solid core of the glyphs rather than their blended edges. When the background is a picture, a gradient or two colours, the line is read in pieces and the lowest ratio is reported.
- The sample decks are written by a small PDF writer in the repository, byte for byte reproducible, with planted problems.
- A service worker saves the app, pdf.js's fonts and decoders, and both samples for offline use. Character maps for Chinese, Japanese and Korean fonts are saved only once a deck has needed them, so such a deck may not open offline before that.
- The page follows its own rules: native labelled controls, a skip link, visible focus, a status line for progress, light and dark high-contrast themes, and a one-column layout at 390 pixels wide.
- 122 Vitest tests, including extraction from both sample decks, from a tagged PDF printed by Chromium and from small hand-written PDFs, the page's own colour contrast and the offline service worker, and a 26-check browser test of the production build in headless Chromium: the landing page's live hero, its pause control and its still under reduced motion, the planted findings from real pixels, advice on every finding and in the download, keyboard-only use, axe-core in light and dark themes, phone width, the download and its axe-core result, no request to another origin, and offline use.
How it was made: Slide Check was built by AI coding agents directed by the author, Kesh, and all of it, code, text, sample decks and media, was created on or after 2026-12-01, inside the event's submission window, with no pre-existing code. The app itself uses no AI model.
Challenges we ran into
- Anti-aliasing: averaging the pixels under a line understates contrast, so the estimate groups colours and takes the glyph core.
- Two-column slides are read column by column, which is correct, so the reading order rule only flags a line read after a line below it in the same column.
- A tagged PDF printed by Chromium left a decorative picture outside the tags entirely, which is a different problem from a tagged picture with no alt text; the app now says which one it found.
Accomplishments that we're proud of
- Every finding states what was measured, with its number where it has one (a size in points, a contrast ratio, a position in the reading order, a share of the slide), and the one estimate, contrast, is labelled as such.
- It works with the network switched off, and the browser test proves it.
What we learned
A PDF knows less than it looks like it knows: whether a picture is decoration, whether its alt text is any good, and whether a picture holds words are for a person to decide, so the tool says so instead of guessing.
What's next
- Try it on real decks exported from PowerPoint, Keynote and Google Slides, with teachers who agree to share them.
- Test the page and the text version with real screen readers (NVDA, VoiceOver, TalkBack).
- Optional text recognition, run in the browser, to catch words in pictures on slides that also have real text.
Limits, stated plainly
- Contrast is an estimate from rendered pixels; gradients, photos and thin fonts move it, and busy backgrounds are labelled.
- It does not grade alt text, read pictures, or fix the PDF.
- The two sample decks and the Chromium test file are synthetic; it has not yet been tried on real lecture decks or with a real screen reader.
Sample decks and credits
The sample decks are synthetic: a script in the repository writes them, and every word, number and chart in them is made up for this demo. No real lecture slides or student material were used.
Slide Check is MIT licensed. It is built on pdf.js by Mozilla (Apache-2.0), which also ships the standard fonts, character maps, colour profile and image decoders the site serves, each under its own licence; the README lists every part with its licence, and the licence files are copied into the built site. Vite, Vitest, TypeScript, ESLint, Playwright and axe-core are used only to build and test it.
Built With
- axe-core
- eslint
- github
- github-actions
- pdf.js
- playwright
- service-worker
- typescript
- vite
- vitest