# ading2210/linuxpdf

Linux running inside a PDF file via a RISC-V emulator

Repository: https://github.com/ading2210/linuxpdf
Canonical: https://ross.abutalabs.com/products/linuxpdf
Homepage: https://linux.doompdf.dev
Language: C
License: GPL-3.0
License Family: copyleft
Last push: 2025-02-02T12:26:15+00:00

## Health v2 (maintenance only)
Score: 22/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 4, release rhythm 35, longevity 42
- inputs: {"age_days": 596, "days_push": 577, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5087, forks 261 (observed 2026-08-28T04:09:09.612724+00:00)

## What it is
LinuxPDF is a PDF file that runs a full Linux system inside a RISC-V emulator (based on TinyEMU) compiled to asm.js and executed via the JavaScript engine embedded in browser PDF viewers. It renders output as ASCII text fields and accepts input through a virtual keyboard, working only in Chromium-based browsers.

## Use cases
- run linux inside a pdf file
- boot a risc-v emulator in the browser
- demonstrate javascript execution in pdf documents
- explore pdf format capabilities
- run a terminal in a pdf viewer
- educational demo of emulators and asm.js

## When to choose
- you want a novel demo of running an OS inside a PDF
- you need a self-contained emulator artifact that runs in Chromium's PDF viewer
- you're studying PDF JavaScript APIs or asm.js compilation

## When to avoid
- you need a practical or performant Linux environment
- you require Firefox or non-Chromium PDF viewers
- you need WebAssembly performance or real hardware emulation

## Facets
- artifact type: application
- maturity: experimental
- function: simulation, interpreter, graphics
- domain: pdf, browser-extensions, operating-systems, developer-tools
- platform: browser, cpp
- tags: risc-v, emulator, pdf-javascript, asmjs, novelty, tinyemu, linux, web-server

## Member repositories
- ading2210/linuxpdf (main) score 22

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.612724+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:02:33.087733+00:00, confidence not recorded.
  - readme: https://github.com/ading2210/linuxpdf (fetched 2026-08-28T04:09:09.612724+00:00, sha 40ac4ab06911)
  - homepage: https://linux.doompdf.dev (fetched 2026-08-29T08:57:23.904404+00:00, sha fa7f87e9cd95)
- Data as of 2026-08-30T08:39:29.467469+00:00.
