Skip to content

ghwmelite-dotcom/OS-Browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

350 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Version Platform Electron AI Ghana


๐Ÿ›ก๏ธ OS Browser
Ghana's AI-Powered Desktop Browser

Built for civil servants. Designed for Ghana. Powered by AI.

OS Browser is a standalone desktop browser built specifically for Ghana's public sector. It combines a full Chromium-based browsing experience with built-in AI assistance, government portal quick-access, Twi language translation, network-level ad blocking, and government-grade privacy โ€” all in a beautiful Ghana-inspired interface.


โœจ Key Features

๐Ÿ‡ฌ๐Ÿ‡ญ Ghana-First Design

  • Ghana flag color palette โ€” Gold, Red, Green & Black woven into every surface
  • Pre-loaded government portals โ€” Ghana.gov, GIFMIS, CAGD, GRA, SSNIT, OHCS, E-SPAR and more
  • Bookman Old Style typography โ€” Classic, authoritative, distinguished
  • Atmospheric backgrounds โ€” Ghana colors as ambient lighting in dark & light modes

๐Ÿค– Built-in AI Assistant

  • 6 AI models โ€” Llama 3.3 70B, DeepSeek R1, Mistral, Qwen 2.5, Gemma via Cloudflare Workers AI
  • AI Sidebar โ€” Chat, summarize pages, translate to Twi, draft letters, compare options
  • AskOzzy Integration โ€” One-click access to Ghana's sovereign AI platform
  • Custom AI Agents โ€” Create specialized assistants with custom system prompts
  • Offline queue โ€” AI requests queue when offline, process on reconnect

๐Ÿ›ก๏ธ Privacy & Security

  • Local-first architecture โ€” All data stays on your device by default
  • Encrypted database โ€” SQLite with encryption at rest
  • Network-level ad blocking โ€” Blocks ads, trackers, and malware before they load
  • Government domain whitelist โ€” Auto-whitelists *.gov.gh to prevent breakage
  • Certificate handling โ€” Graceful handling of government site certificate issues
  • Download protection โ€” Warns on executable downloads, blocks insecure sources
  • Privacy mode โ€” Zero-trace browsing with no history, no cache, no logs

โšก Performance

  • Tab suspension โ€” Inactive tabs auto-suspend after 5 minutes to save memory
  • Max 10 concurrent tabs โ€” Prevents memory bloat on government PCs
  • Page caching โ€” Previously visited pages available offline
  • Delta auto-updates โ€” Small patches (~5-15MB) instead of full downloads

๐Ÿ›๏ธ Enterprise Ready

  • MSI installer โ€” Deploy via Group Policy across government networks
  • Silent install โ€” msiexec /i OS-Browser.msi /qn
  • Configurable defaults โ€” Pre-set privacy mode, portals, and sync settings
  • Bookmark import โ€” Import from Chrome, Edge, and Firefox

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              OS Browser (Electron)               โ”‚
โ”‚                                                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚  Main Process   โ”‚   โ”‚  Renderer (React)     โ”‚  โ”‚
โ”‚  โ”‚                 โ”‚   โ”‚                       โ”‚  โ”‚
โ”‚  โ”‚  โ€ข SQLite DB    โ”‚   โ”‚  โ€ข Browser Chrome     โ”‚  โ”‚
โ”‚  โ”‚  โ€ข Ad Blocker   โ”‚   โ”‚  โ€ข AI Sidebar         โ”‚  โ”‚
โ”‚  โ”‚  โ€ข Tab Manager  โ”‚   โ”‚  โ€ข New Tab Page       โ”‚  โ”‚
โ”‚  โ”‚  โ€ข Page Cache   โ”‚   โ”‚  โ€ข Settings/Panels    โ”‚  โ”‚
โ”‚  โ”‚  โ€ข Credentials  โ”‚   โ”‚  โ€ข Zustand Stores     โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚          โ”‚      IPC Bridge      โ”‚                  โ”‚
โ”‚          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                      โ”‚ HTTPS
           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
           โ”‚  Cloudflare Worker  โ”‚
           โ”‚  (Stateless AI)     โ”‚
           โ”‚  โ€ข Chat / Summarize โ”‚
           โ”‚  โ€ข Translate / Searchโ”‚
           โ”‚  โ€ข No user data     โ”‚
           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Desktop Shell Electron 33 (Chromium)
Frontend React 18, Tailwind CSS 3, Zustand 5
Backend AI Cloudflare Workers AI (Hono)
Database SQLite (sql.js)
Tab Rendering WebContentsView
Icons Lucide React
Build Vite 6, esbuild, electron-builder
Language TypeScript 5 (strict)

๐Ÿ“ Project Structure

os-browser/
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ main/          # Electron main process
โ”‚   โ”‚   โ””โ”€โ”€ src/
โ”‚   โ”‚       โ”œโ”€โ”€ db/           # SQLite + migrations + seeds
โ”‚   โ”‚       โ”œโ”€โ”€ ipc/          # IPC handlers (tabs, history, bookmarks, AI, settings, agents, credentials)
โ”‚   โ”‚       โ”œโ”€โ”€ net/          # Cloudflare client + connectivity monitor
โ”‚   โ”‚       โ””โ”€โ”€ services/     # Ad blocking, page cache, downloads, tray, auto-update
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ renderer/      # React UI (Vite)
โ”‚   โ”‚   โ””โ”€โ”€ src/
โ”‚   โ”‚       โ”œโ”€โ”€ components/   # Browser chrome, content, sidebar, panels
โ”‚   โ”‚       โ”œโ”€โ”€ store/        # Zustand state (9 stores)
โ”‚   โ”‚       โ”œโ”€โ”€ hooks/        # Keyboard shortcuts
โ”‚   โ”‚       โ””โ”€โ”€ styles/       # Ghana design system (CSS variables)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ preload/       # Secure IPC bridge (contextBridge)
โ”‚   โ””โ”€โ”€ shared/        # Types, models, constants, IPC channels
โ”‚
โ”œโ”€โ”€ worker/            # Cloudflare AI microservice
โ”‚   โ””โ”€โ”€ src/
โ”‚       โ”œโ”€โ”€ routes/          # AI chat, summarize, translate, search, compare
โ”‚       โ”œโ”€โ”€ middleware/      # Device auth, rate limiting
โ”‚       โ””โ”€โ”€ services/       # Workers AI wrapper with model fallback
โ”‚
โ””โ”€โ”€ docs/              # Design spec + implementation plan

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm 9+
  • Git

Development

# Clone the repository
git clone https://github.com/ghwmelite-dotcom/OS-Browser.git
cd OS-Browser

# Install dependencies
npm install

# Build all packages
npm run build

# Start the renderer dev server
cd packages/renderer && npx vite

# In another terminal, launch Electron
cd OS-Browser
NODE_ENV=development npx electron packages/main/dist/main.js

Deploy the AI Worker

# Update wrangler.toml with your Cloudflare resource IDs
cd worker
npx wrangler deploy

Package for Distribution

# Build Windows .exe installer
npm run package:exe

# Build .msi for enterprise deployment
npm run package:msi

โŒจ๏ธ Keyboard Shortcuts

Shortcut Action
Ctrl+T New tab
Ctrl+W Close tab
Ctrl+Tab Next tab
Ctrl+Shift+T Reopen closed tab
Ctrl+L Focus address bar
Ctrl+J Toggle AI sidebar
Ctrl+Shift+O Open AskOzzy
Ctrl+H History
Ctrl+B Bookmarks
Ctrl+D Bookmark page
Ctrl+P Print
F5 Refresh
F11 Fullscreen

๐Ÿ‡ฌ๐Ÿ‡ญ Government Portals (Pre-loaded)

Portal URL Category
Ghana.gov ghana.gov.gh General
GIFMIS gifmis.finance.gov.gh Finance
CAGD Payroll cagd.gov.gh Payroll
GRA Tax Portal gra.gov.gh Tax
SSNIT ssnit.org.gh Pensions
Public Services Commission psc.gov.gh HR
Ghana Health Service ghs.gov.gh Health
Ministry of Finance mofep.gov.gh Finance
OHCS Platform ohcs.gov.gh HR
E-SPAR Portal ohcsgh.web.app HR/Appraisal

๐Ÿ”ฎ Roadmap

  • v1.1 โ€” Cloud sync (bookmarks, tabs, settings via Cloudflare D1)
  • v1.1 โ€” Ga and Ewe language translation
  • v1.2 โ€” Dagbani, Hausa, Fante translation
  • v1.2 โ€” Ghana NLP Khaya API integration for better Twi quality
  • v2.0 โ€” macOS and Linux builds
  • v2.0 โ€” Browser extension support

๐Ÿ“„ License

Proprietary โ€” Hodges & Co. Limited / ohwpstudios


Built with โค๏ธ in Accra, Ghana
Hodges & Co. Limited / ohwpstudios

About

๐Ÿ›ก๏ธ OS Browser โ€” Ghana's AI-Powered Desktop Browser for Civil & Public Servants. Built with Electron, React, Cloudflare Workers AI. Features: AI sidebar, AskOzzy integration, Twi translation, government portal quick-access, network-level ad blocking, offline support, and Ghana-inspired design.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors