A lightweight Chromium-based viewer for websites, HTML files, and various document formats built with Electron.
- Web View: Browse websites and view HTML files in a Chromium-based webview
- Document Viewer: View PDF, DOC, DOCX, XLS, XLSX, ODS files with formatting
- Plain Text Mode: View any file as plain text with word wrap option
- Source & Metadata Analysis: Inspect source code and file metadata including:
- File size, creation date, modification date
- Character count, line count, word count
- Document-specific metadata (PDF info, spreadsheet sheet names, etc.)
On Arch Linux, install Node.js and npm:
sudo pacman -S nodejs npm- Navigate to the project directory:
cd SimpleChromeViewer- Install dependencies:
npm install- Build the application:
npm run build:pacmanThis will create a .pacman package in the dist directory.
After building, install the package:
sudo pacman -U dist/simplechromeviewer-*.pacmanRun from terminal:
simplechromeviewerOr start with npm (from project directory):
npm startMethod 1: URL Bar
- Type a URL (e.g.,
github.com) and click "Go" or press Enter - Type a file path and click "Go" or press Enter
Method 2: File Browser
- Click "Open File" button
- Browse and select a file
- Web: HTML, HTM files and URLs
- Documents: PDF, DOC, DOCX
- Spreadsheets: XLS, XLSX, ODS (OpenDocument Spreadsheet)
- Text: TXT, MD, JSON, XML, CSV, and any plain text format
Switch between tabs to change viewing mode:
-
Web View:
- Displays websites and HTML files in a browser
- Full Chromium rendering engine
-
Document:
- Formatted view of documents
- Spreadsheets show interactive sheet tabs
- Preserves document structure and formatting
-
Plain Text:
- View any file as plain text
- Toggle word wrap on/off
- Copy text to clipboard
-
Source & Metadata:
- View raw source code/content
- File metadata (size, dates, type)
- Content statistics (characters, lines, words)
- Document-specific metadata
- Enter in URL bar: Load URL or file
- Ctrl+C: Copy (in plain text mode with Copy button)
- For legacy DOC files, convert to DOCX for better compatibility
- Large files may take a moment to parse
- Spreadsheets display all sheets with tab navigation
- URLs without protocol (http://) are automatically prefixed with https://
- Ensure Node.js and npm are installed
- Run
npm installto verify dependencies
- Check file isn't corrupted
- Try viewing in Plain Text or Source mode
- For old DOC files, consider converting to DOCX
- Check internet connection
- Verify URL is correct
- Some sites may block embedding in webviews
sudo pacman -R simplechromeviewer- Framework: Electron 28
- PDF Parsing: pdf-parse
- Word Documents: mammoth
- Spreadsheets: xlsx (SheetJS)
- UI: Custom HTML/CSS with dark theme
MIT