
Security News
pnpm 12’s Rust Rewrite Cuts Install Times by Up to 90%
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.
@thiennq/docs-viewer
Advanced tools
Standalone Docs Viewer CLI — static HTTP server & browser reader for Markdown, MDX, HTML and Mermaid diagrams
@thiennq/docs-viewer)Zero-dependency, standalone HTTP server & browser document viewer for Markdown (
.md), MDX (.mdx), HTML (.html), KaTeX formulas, Mermaid diagrams, and interactive inline comments.
http, fs, path, crypto)..md): Full GFM support, task lists, tables, auto-generated Table of Contents (TOC)..mdx): Client-side transpilation via Babel & React with dynamic no-build .jsx component loader (loader.js, mdx.js)..html, .htm): Sanitized inline HTML rendering via DOMPurify.<Callout>, <Card>, <StyledCard>, <Badge>, <Button>, <StatCard>, <StatGrid>, <ThresholdViewer>).<ThresholdViewer>).Run @thiennq/docs-viewer (or docs-viewer) instantly inside any repository without installing anything globally:
# Run in current directory on default port 8888
npx @thiennq/docs-viewer
# Run on a custom port (e.g., 9000)
npx @thiennq/docs-viewer 9000
# Run on a specific target directory
npx @thiennq/docs-viewer --port 9000 --dir ./docs
Open your browser at http://localhost:8888.
💡 Tip: If no configuration file is present,
docs-viewerwill automatically scan and display top-level directories in your project.
docs-viewer.json)You can customize branding, directory mappings, and quicklinks by adding a docs-viewer.json file to your repository root:
{
"branding": {
"title": "My Technical Docs",
"logoIcon": "⚡",
"logoText": "Tech Docs"
},
"directories": [
{ "name": "Architecture", "path": "docs/architecture" },
{ "name": "API Specification", "path": "docs/api" },
{ "name": "User Guides", "path": "docs/guides" }
],
"quicklinks": [
{
"name": "System Architecture",
"urlPath": "/docs/Architecture/overview.md"
},
{
"name": "Getting Started Guide",
"urlPath": "/docs/User Guides/getting-started.md"
}
]
}
All fields are optional. If directories is omitted, auto-discovery will automatically find your project folders.
To protect sensitive internal documentation in staging/production environments, set the following environment variables when starting the server:
BASIC_AUTH_USER=admin BASIC_AUTH_PASS=supersecret npx docs-viewer 8888
You can install @thiennq/docs-viewer directly from GitHub or NPM into any project's dependencies:
# Via GitHub shorthand (Recommended):
npm install github:thiennq/docs-viewer
# Via HTTPS:
npm install git+https://github.com/thiennq/docs-viewer.git
# Via SSH Key:
npm install git+ssh://git@github.com:thiennq/docs-viewer.git
MIT License © thiennq
FAQs
Standalone Docs Viewer CLI — static HTTP server & browser reader for Markdown, MDX, HTML and Mermaid diagrams
The npm package @thiennq/docs-viewer receives a total of 12 weekly downloads. As such, @thiennq/docs-viewer popularity was classified as not popular.
We found that @thiennq/docs-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.

Research
/Security News
Thirteen malicious Packagist themes expose visitors on unpatched iPhones to a WebKit-to-kernel exploit chain that steals device data and wallet seeds.