Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

postext-folio

Latest version: v0.88.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: drnachio
18 Stars
5 Forks
204 Versions
14.3K Downloads
TypeScript Repo language

Scan summary

postext-folio was last scanned on 29 Nov 2026 at version 0.88.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 204 versions; the latest 5 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 0.88.2.
  • Downloads: 14,323 downloads.

Versions

204 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.88.2 LATEST 29 Nov 2026 No rules fired
0.88.1 29 Nov 2026 No rules fired
0.88.0 27 Nov 2026 No rules fired
0.87.8 26 Nov 2026 Not shown
0.87.7 26 Nov 2026 Not shown

No rules fired in 0.88.2

Findings

Findings for v0.88.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.88.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

postext-folio

A 3D book viewer for postext documents and page images.

postext-folio sets a book out on the screen in spreads and lets the reader turn its pages: with the ‹ › buttons, the arrow keys, a swipe, a click on a page, or by taking a page by its edge and dragging it over. Each leaf curls in three.js and casts a real shadow on the pages under it. The WebGL canvas draws the book still and turning alike, so a page never changes look when it lands; the DOM pages under it (images or canvases) are the textures' sources and the pages' text alternatives. A right-bound book (Chinese, Japanese, Arabic) lies mirrored and turns leftward. Without WebGL2, or when the reader asks for reduced motion, the spreads simply change.

Website: postext.dev · Docs: A 3D book

Install

npm install postext postext-folio three

postext and three are peer dependencies. Or import everything straight from a CDN:

import { buildDocument } from 'https://esm.sh/postext';
import { createFolioFromDocument } from 'https://esm.sh/postext-folio';

A postext document as a book

import { buildDocument } from 'postext';
import { createFolioFromDocument } from 'postext-folio';

// Postext measures text with the fonts the browser has loaded.
await document.fonts.load('16px "EB Garamond"');

const doc = buildDocument({ markdown }, {
  page: { sizePreset: '17x24' },
  bodyText: { fontFamily: 'EB Garamond' },
});

const book = createFolioFromDocument(document.getElementById('book')!, doc, {
  onChange: ({ pages }) => console.log('showing pages', pages),
});

// After an edit: the same viewer, on the same page.
book.setDocument(buildDocument({ markdown: edited }, config));

Pages are painted with renderPageToCanvas at exactly the device pixels of a page slot, so WebGL shows them texel for pixel, as sharp as the canvas preview, and only around the open spread (window, three spreads either side by default). Pages that fall out of that window are freed, so a book of a thousand pages costs the memory of a few. Turning to a far page paints that spread first. Pages a long turn sweeps past show as blank paper while they are in the air.

The container sets the size: the book fills it, with the ‹ › buttons and the page count in the margins. Give it a height. A resize paints the pages again at the new size.

Videos on the pages

A video resource of the document plays on its page. A click on the poster starts it there, in any pointer mode: the page's shader draws the frames over the poster, so the picture curls with the leaf and keeps playing while it turns. Another click pauses it, and it stops when the book comes to rest on a spread that no longer shows it. Space or Enter plays or pauses the video on the open spread.

Several videos play at once, up to eight drawn on the pages on show (each frame goes into one shared texture). player.exclusive (the default) keeps to one at a time: starting such a video stops the other exclusive ones and holds those playing alongside until it pauses or ends. A video with exclusive: false plays alongside the others, and starting it pauses only the exclusive ones: the silent loops of a living page. A video with player.autoplay starts by itself, muted: an exclusive one the first time its spread is shown (with its sound once the reader has interacted with the page), one with exclusive: false each time its page comes into view, looping when player.loop says so. Readers who ask for less motion (prefers-reduced-motion) get no loops starting on their own; a click still plays them.

const book = createFolioFromDocument(container, doc, {
  videoUrl: (fileId) => objectUrls.get(fileId), // an uploaded file's URL; else the video's address
  onVideo: ({ resourceId, state }) => console.log(resourceId, state),
});

Files and web addresses play (MP4, WebM, and HLS streams through hls.js, an optional peer dependency loaded on the first play and capped at the picture's size on screen; the browser's own HLS is the fallback). The server must allow cross-origin reads (CORS) for WebGL to draw the video; YouTube and Vimeo play in iframes, which WebGL cannot draw, so their posters turn the page as before. videos: false turns it off.

The book on the desk

The book lies open on a desk, seen from in front and a little above (the foot of the pages comes closer), lit by an environment that glossy paper reflects as a leaf curls, and by a key light that casts the shadows. The pages already read and those still to come form two blocks of real thickness: leaf count × the paper's caliper, with the book's other chapters counted in (extraPages). They are never painted, only counted. The open pages curve down into the gutter, and the darker gutter comes from the occlusion of that shape, not from a painted gradient. Each leaf bends according to its paper's stiffness: bible paper rolls tight, card turns in a wide arc, and board turns as a rigid plate on its hinge.

All of this is set with postext's folio config, read from doc.config.folio or passed as appearance:

const book = createFolioFromDocument(container, doc, {
  appearance: {
    folio: {
      tilt: 22, // degrees from straight above, 0 … 70
      yaw: 0, // degrees round the book, −180 … 180
      paper: { type: 'bookWove', grammage: 80, texture: 'laid' },
      binding: { type: 'hardcover', coverColor: { hex: '#5a1f1f', model: 'hex' } },
      surface: { type: 'walnut' },
      lighting: { environment: 'lamp', intensity: 1 },
    },
  },
});
book.setAppearance({ folio: { lighting: { environment: 'daylight' } } });

A document on a newspaper trim (page.sizePreset broadsheet, berliner, tabloid or compact) lies as a newspaper when its settings, or the host's appearance.folio, name no stock and no binding: newsprint folded once, the sheets nested with nothing round them. A stock or binding that is set wins. Newsprint shows the reverse page more than any stock but bible paper, as its ink soaks into the sheet.

A :::paper{type=coatedGloss} run in the markdown (a plate section, say) stamps its pages with their own stock; the viewer gives those leaves that paper's look, thickness and stiffness. With createFolio, a page may carry its own paper the same way: { src, paper: { type: 'coatedGloss' } }.

Page images

createFolio takes any pages: image URLs, <canvas> or <img> elements, "" for a blank page.

import { createFolio } from 'postext-folio';

const book = createFolio(container, {
  pages: ['p01.webp', 'p02.webp', 'p03.webp', { src: 'p04.webp', alt: 'Plate II' }],
  firstPageRecto: true, // page 1 opens alone, on the right
  binding: 'left',
});
book.goToPage(2);

API

The viewer takes the keyboard when focused: ←/→ (mirrored for a right-bound book), Page Up/Down, Home and End. Its labels default to English; pass labels (region, prev, next, count) to translate them.

Desk textures

The photographed desk surfaces served from postext.dev (/folio/textures/, with a manifest.json and a CREDITS file) are CC0 texture sets, resized and re-encoded for the web. No attribution is required; thanks to their authors:

License

MIT (code). The desk textures above are CC0.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm postext-folio

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229