Dev.to WebDev 🛠 Dev 👁 1 📖 3 min read

How I turned a phone into a slide remote with a QR code (and no app)

I'm Ahmed, a 19-year-old solo developer, and I just shipped Slidium: upload a PowerPoint or PDF, present it full screen in the browser, scan a QR code, and your phone becomes the remote with your speaker notes. No app in

I'm Ahmed, a 19-year-old solo developer, and I just shipped Slidium: upload a PowerPoint or PDF, present it full screen in the browser, scan a QR code, and your phone becomes the remote with your speaker notes. No app install on either side.

Here's how the interesting parts work.

1. Rendering PowerPoint in the browser

There is no server-side rendering of slides. The PPTX is parsed and drawn client-side by an open-source OOXML viewer, wrapped so it supports animation steps (a "next" can be the next bullet, not only the next slide). Thumbnails are generated in the browser too, so the server never runs Office.

PDFs go through pdf.js.

All formats sit behind one adapter interface: detect, validate, process (slide count + notes), render. The upload pipeline doesn't know or care which format it's moving.

2. Uploads that never touch the app server

Serverless platforms cap request bodies at a few MB, and presentations are bigger than that. So:

  1. The browser asks the server to start an upload.
  2. The server checks the plan limits inside a database transaction, reserves the bytes, and returns a short-lived signed URL to a private bucket.
  3. The browser uploads straight to storage.
  4. The server verifies the real object: size, and the actual file signature (ZIP structure for PPTX, %PDF- for PDF), not the extension the browser claimed. If anything is off, the object is deleted and the reservation released.

3. Pairing a phone with a QR code, safely

The QR code encodes https://slidium.com/remote/<token>. The token:

  • is random, at least 128 bits,
  • is stored only as a hash,
  • expires after 10 minutes,
  • can be claimed by up to 3 phones (a row-locked count, so two phones scanning at the same instant can't both become phone #3).

When a phone claims it, the server hands back a device secret in an httpOnly cookie scoped to /api/remote. The phone doesn't need an account. Its authority comes only from that secret, and it only controls that one session. The presenter can disconnect any phone, and its secret stops working immediately.

4. Commands go through the server, never peer to peer

A tap on "Next" is a request to a server endpoint that checks the device secret, updates currentSlide, and then broadcasts the new state. Clients never broadcast to each other, so guessing a channel name gives you nothing.

The server is the single source of truth for the current slide. If the laptop sleeps or the phone loses signal, both re-read the state when they reconnect, and they never drift apart. Notes are fetched by the phone from the server with the device secret. They are never sent over a broadcast channel, so the audience screen never has them.

Target: under 300 ms from tap to slide change on normal Wi-Fi or 4G.

5. What I learned shipping it alone

  • Delete the first version early. My first prototype was built on the wrong library. Restarting on day two saved me weeks.
  • Write the product rules down. "Not a slide editor, only notes are editable" killed a dozen tempting features.
  • Security is part of the core feature. A remote that a stranger can take over isn't a remote, it's a prank.

Try it

It's free to start: 5 presentations, PowerPoint or PDF, phone remote with notes. 👉 slidium.com

If you just want the how-to, here's my guide on how to control PowerPoint from your phone.

If you've built something with realtime sync or in-browser document rendering, I'd love to compare notes in the comments.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.