boundaries
Skill3k starsChanged 6 days agoBSD-3-ClauseView on GitHub
Learn about application runtime boundaries and codebase structure
2 other projects use a version of this.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- cpuboundeng/SexSkillstheir own version, first seen Oct 25, 2026
- lbdremy/phaxtheir own version, first seen Oct 20, 2026
Who's talking about edrlab/thorium-reader
- A Hacker News story“Help port Thorium Reader to mobile to fight freemium accessibility”Hacker News · Aug 19, 2026 · 3 points
- CachyOS/cachyos-aur-derived“[Package Request] Thorium Reader”GitHub · Oct 9, 2026 · 1 reactions
- NixOS/nixpkgs“thorium-reader: init at 3.2.2”GitHub · Sep 17, 2025 · 1 reactions
- Alex313031/Thorium-MacOS“There is another app called "Thorium"”GitHub · Jul 8, 2025 · 1 reactions
- electron/apps“feat: add thorium-reader”GitHub · Apr 9, 2021 · 1 reactions
The biggest 5 of 39 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 39
Talked about on GitHub, Hacker News and Stack Overflow (39 times).
On GitHub · 36
- Oct 9, 2026[Package Request] Thorium Reader — CachyOS/cachyos-aur-derived1 reaction
- Sep 17, 2025thorium-reader: init at 3.2.2 — NixOS/nixpkgs1 reaction · 14 comments
- Jul 8, 2025There is another app called "Thorium" — Alex313031/Thorium-MacOS1 reaction
- Apr 9, 2021feat: add thorium-reader — electron/apps1 reaction · 1 comment
- Nov 30, 2026feat(win): EDRLab.Thorium (Thorium Reader) の winget 固定版導入と pin-updates 監視を追加 — pollenjp/dotfiles0 reactions
31 more on GitHub
- Oct 11, 2026Update Thorium_Reader — AppImage/appimage.github.io0 reactions · 1 comment
- Sep 15, 2026Security architecture: sandbox untrusted PDF/EPUB parsing before release — tuunanet/exoshelf0 reactions · 2 comments
- Aug 6, 2026Add a PDF Selector for Multi-Rectangle Annotations — readium/annotations0 reactions · 11 comments
- Jul 4, 2026Performance issues with large libraries (>200 books) — Fundaments-Work/Theorem0 reactions
- Jun 25, 2026apple-app-site-association (AASA) for Thorium Desktop please — edrlab/thorium-reader-website0 reactions · 4 comments
- Jun 17, 2026Proposal: Expose publication archive updates via LSD and refreshed LCPL — edrlab/lcp-server0 reactions
- Jun 15, 2026Test LCP license refresh when publication is updated — edrlab/lcp-server0 reactions
- May 21, 2026Support /download target redirection from query parameters — edrlab/thorium-reader-website0 reactions
- May 21, 2026Thorium apps should be able to open the website with a generic URL using a locale query parameter, without hardcoding localized paths in the app. — edrlab/thorium-reader-website0 reactions · 2 comments
- Mar 16, 2026thoriumreader_new_label — Installomator/Installomator0 reactions · 2 comments
- Feb 5, 2026Displaying image descriptions — edrlab/thorium-reader-doc0 reactions
- Dec 10, 2025thorium-reader: 3.2.2 -> 3.3.0 — NixOS/nixpkgs0 reactions · 3 comments
- Oct 1, 2025Error: read ECONNRESET — SocketDev/sfw-free0 reactions · 19 comments
- Sep 18, 2025PDF RWPM manifest missing pdf metadata information — readium/readium-lcp-server0 reactions
- Aug 19, 2025Update download links — edrlab/thorium-reader-doc0 reactions
- Aug 8, 2025Thorium Go back in history failing with NVDA — nvaccess/nvda0 reactions · 14 comments
- Aug 7, 2025Update links and references in README — readium/css0 reactions · 3 comments
- Jun 26, 2025Do not mark Traditional Chinese (zh-Hant and zh-TW) as a RTL language — edrlab/r2-shared-js0 reactions
- Jun 26, 2025Do not mark Traditional Chinese (zh-Hant and zh-TW) as a RTL language — edrlab/r2-navigator-js0 reactions
- Mar 12, 2025Footnotes in EPUB3 — w3c/epub-specs0 reactions · 14 comments
- Mar 10, 2025Annotating with a screen reader — edrlab/thorium-reader-doc0 reactions · 3 comments
- Dec 30, 2024Could we merge keyboard shortcut lists to have one only source. — edrlab/thorium-reader-doc0 reactions · 4 comments
- Sep 23, 2024Adds faq entry about transfer of a complete collection — edrlab/thorium-reader-doc0 reactions
- Jun 18, 2024GitHub notifications with a screen reader — GeorgeKerscher/Hello-World0 reactions
- May 29, 2024Fix japanese font settings — readium/css0 reactions · 5 comments
- May 17, 2024Catastrophic data loss (several translator pending Review Requests) after pushing JSON locale updates to GitHub — gitlocalize/feedback0 reactions · 3 comments
- May 16, 2024More often than not, "cover" images (first spine item in the reading order, full-page picture) cause excess blank before/after — readium/css0 reactions · 1 comment
- May 12, 2023Contents updates — edrlab/thorium-reader-doc0 reactions
- Feb 15, 2023I made a to-do list to maintain appimage.github.io — AppImage/appimage.github.io0 reactions · 13 comments
- Feb 28, 2022update in thorium — edrlab/ts_fetch0 reactions · 1 comment
- Jun 14, 2020Create Thorium_Reader — AppImage/appimage.github.io0 reactions
On Hacker News · 2
- Aug 19, 2026Help port Thorium Reader to mobile to fight freemium accessibility3 points
- May 19, 2020New ePub reader based on Electron/TypeScript/React1 point
On Stack Overflow · 1
- Jan 11, 2022How to build node.js projects against local versions of the dependencies?0 votes · 1 answer
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- cpuboundeng/SexSkills★ 4same name
- lbdremy/phax★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 59
When changing a boundary, update the relevant Webpack config and this file together.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Runtime boundaries and codebase scopes
Thorium is split into separate Webpack/Electron runtime bundles. Treat each bundle as an isolated runtime island. Runtime code must not import source from another runtime directly. Shared contracts, types, actions, and utilities must be moved to a common/shared area first.
Type-only imports count as imports for this rule: if two runtimes need the same type, the type belongs in common code.
Runtimes
| Runtime | Entry point | Owned source | Webpack config | Output |
| Electron main | src/main.ts | src/main.ts, src/main/** | webpack.config.main.js | dist/main.js |
| Library renderer | src/renderer/library/index_library.ts | src/renderer/library/** | webpack.config.renderer-library.js | dist/index_library.js, dist/index_library.html |
| Reader renderer | src/renderer/reader/index_reader.ts | src/renderer/reader/**, except PDF webview files and PDF shared files listed below | webpack.config.renderer-reader.js | dist/index_reader.js, dist/index_reader.html |
| PDF webview renderer | src/renderer/reader/pdf/webview/index_pdf.ts, src/renderer/reader/pdf/webview/index_pdf_extract.ts | src/renderer/reader/pdf/webview/** | webpack.config.renderer-pdf.js, webpack.config.renderer-pdf-extract.js | dist/index_pdf.js, dist/index_pdf_extract.js |
| Webview preload | src/r2-xxx-js/r2-navigator-js/electron/renderer/webview/preload.ts | The preload entrypoint only; other src/r2-xxx-js/** files are vendored/shared dependency code | webpack.config.preload.js | dist/preload.js |
Standalone Tooling
projects/customization-profile-cli/src/cli.ts is a separate Node.js CLI runtime, built with projects/customization-profile-cli/build.mjs. It must not import Electron runtimes, Thorium build-time constants, or development signing keys. Its bundle includes the shared manifest schema from src/common/readium/customization/profile.schema.ts; other Thorium runtime imports and unbundled npm dependencies are rejected by the build. Signing keys are supplied explicitly as PEM files at runtime.
projects/customization-profile-editor/src/editor.ts is a separate offline browser runtime, built with projects/customization-profile-editor/build.mjs into scripts/thorium-profile-editor.html. Its build embeds a validator generated from the shared manifest schema; the browser bundle must not import Thorium runtimes, Node.js modules, or signing keys. All JavaScript and CSS must be embedded, with no external dependencies or network requests.
Common And Shared Code
New Thorium-owned code used by more than one runtime should go in one of these common areas:
src/common/**: runtime-neutral app contracts, models, IPC definitions, Redux action/state types, and utilities that do not depend on DOM, React, or Electron renderer APIs.src/renderer/common/**: renderer-only shared React, DOM, keyboard, hook, component, and Redux glue code.src/utils/**: small generic helpers that stay runtime-safe.
Existing shared/support areas:
src/renderer/reader/pdf/common/**are PDF-specific shared code used by the reader-side PDF host and the PDF webview.src/r2-xxx-js/**andsrc/third_party/**are vendored/support dependency code. Do not add Thorium runtime glue there just to bypass runtime boundaries.src/resources/**,src/typings/**, and asset/style imports may be shared where the relevant Webpack config allows them.
Import Rules
src/main.tsandsrc/main/**may importsrc/common/**,src/utils/**, and vendored/support dependencies. They must not importsrc/renderer/**.src/renderer/library/**may import library-owned files,src/common/**,src/renderer/common/**,src/utils/**, assets/styles/resources, and vendored/support dependencies. It must not importsrc/renderer/reader/**orsrc/main/**.src/renderer/reader/**may import reader-owned files,src/common/**,src/renderer/common/**,src/utils/**, assets/styles/resources, and vendored/support dependencies. It must not importsrc/renderer/library/**,src/main/**, orsrc/renderer/reader/pdf/webview/**.src/renderer/reader/pdf/webview/**may import PDF webview-owned files, PDF-specific shared files, and vendored/support dependencies. Keep it independent from app renderer React components, app renderer Redux code,src/main/**, and general Thorium common modules unless the Webpack scope rules are intentionally changed.src/r2-xxx-js/r2-navigator-js/electron/renderer/webview/preload.tsmust stay isolated from Thorium app runtimes. It should not importsrc/main/**,src/renderer/library/**, reader React/Redux modules, or Thorium common/resources/typings unless the preload Webpack scope rules are intentionally changed.
Verification Notes
The current runtime separation is enforced during Webpack builds by scripts/webpack-loader-scope-checker.js:
webpack.config.main.jsforbidssrc/renderer.webpack.config.renderer-library.jsforbidssrc/renderer/readerandsrc/main.webpack.config.renderer-reader.jsforbidssrc/renderer/library,src/main, andsrc/renderer/reader/pdf/webview.webpack.config.renderer-pdf.js,webpack.config.renderer-pdf-extract.js, andwebpack.config.preload.jsapply stricter webview/preload isolation rules.
When changing a boundary, update the relevant Webpack config and this file together. After touching imports across runtime-adjacent code, run the relevant Webpack config so the scope checker can catch direct runtime-to-runtime imports.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

