
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
@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.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.