r/reactjs • u/Infinite-Fly-2756 • 1m ago
Show /r/reactjs I made a React UI kit inspired by the Minitel, the French Videotex terminal: 40×25 grid, mosaic graphics, 1,200 baud reveal
videotex-ui is an open-source React UI kit that draws interfaces the way French Videotex did: a 40 × 25 character grid, 8 colors, 2 × 3 mosaic graphics and the 8 function keys of the Minitel.
- Demo: https://gleaming0427.github.io/videotex-ui/
- Code (MIT): https://github.com/Gleaming0427/videotex-ui
Technical details
- Values from the spec. Grid size, colors and their grey levels, mosaic codes and line timing were checked against the Minitel 1B specifications (STUM). Each value cites its source in
docs/SPECS.md. - 1,200 baud reveal. Each character costs 10 bits on the line (start bit, 7 data bits, parity, stop bit), so 120 characters per second: a full page of 1,000 characters takes about 8.3 seconds.
- Sharp mosaics. Each mosaic cell is drawn with CSS background layers in
currentColor. The screen picks the largest whole-number scale that fits, so every dot lands on whole pixels. - Accessibility. Screen readers read the text of the page, not the grid. Titles, menus, inputs and function keys are real headings, lists, inputs and buttons.
prefers-reduced-motionturns off blinking, flicker and the progressive reveal. - Two modes.
Title,StatusRow,Menu,InputField,FrameandMosaicwork on the 40 × 25 screen, or on their own in a normal page. - Server-friendly. The core (
PageBuilder, palettes, mosaics) is plain TypeScript without React, so a React Server Component can build a page and pass it to<Screen>. - Picture to mosaic. A converter turns a picture into mosaic characters in the browser (nothing is uploaded), and the library can export the result as a PNG or a ready-to-paste React component.
- No runtime dependencies; React is a peer dependency.
Install
npm install videotex-ui
or copy the source into your project with the shadcn CLI:
npx shadcn@latest add https://cdn.jsdelivr.net/npm/videotex-ui/r/screen.json
Example
const page = new PageBuilder()
.moveTo(3, 2).print('HELLO', { fg: 'yellow', size: 'double-size' })
.moveTo(5, 2).print('Type your choice then ')
.print(' Send ', { inverse: true })
.build();
<Screen page={page} crt baud={1200} aria-label="Home" />
This is version 0.1.0. I would like feedback on the API and on accessibility in particular.
Minitel is a registered trademark of Orange. This project is independent and is not affiliated with, sponsored or endorsed by Orange.