A VSCode-inspired static website showcasing Divengine Software Solutions' open-source projects. Built with vanilla HTML, CSS, and JavaScript - no frameworks or build tools needed.
- VSCode-Like Interface: Complete IDE shell with activity bar, explorer, tabs, editor, panel, and status bar
- Dark Theme: VSCode-inspired dark theme with proper fonts and colors
- Project Explorer: Navigate through featured repositories
- Markdown Rendering: README files rendered with syntax highlighting
- Quick Open: Ctrl+P to quickly search and open projects
- Responsive Design: Works on desktop and mobile devices
- GitHub Integration: Fetches live data from GitHub API with smart caching
- Hash Routing: Clean URLs without server dependencies
index.html- Main HTML structureconfig.json- Site configuration and project definitionsCNAME- Domain configuration for GitHub Pages
layout.css- Grid system and responsive layoutvscode.css- VSCode-inspired UI components and themeeditor.css- Editor area and markdown content styling
app.js- Application bootstrap and routingstate.js- Global state management with event systemui.js- UI rendering and interaction handlingdata.js- GitHub API integration with cachingrenderers.js- Markdown processing and sanitization
assets/- SVG icons matching VSCode's icon set
- Clone the repository
- Serve the files using any static server:
# Using Python python -m http.server 8000 # Using Node.js npx serve . # Using PHP php -S localhost:8000
- Open
http://localhost:8000
Edit config.json to:
- Add new projects to the explorer
- Modify theme colors and fonts
- Configure GitHub API settings
- Customize navigation and layout
Add items to the explorer.sections[].items array:
{
"slug": "project-name",
"label": "Project Name",
"type": "repo",
"repo": "repository-name",
"branch": "main",
"readmePath": "README.md",
"description": "Project description",
"tags": ["tag1", "tag2"]
}divengine.github.io/
โโโ index.html # Main HTML file
โโโ config.json # Site configuration
โโโ CNAME # Domain configuration
โโโ README.md # Documentation
โโโ layout.css # Layout and grid system
โโโ vscode.css # VSCode UI components
โโโ editor.css # Editor styling
โโโ app.js # Application entry point
โโโ state.js # State management
โโโ ui.js # UI rendering
โโโ data.js # Data fetching
โโโ renderers.js # Content processing
โโโ assets/ # Icons and images
โโโ explorer.svg
โโโ search.svg
โโโ source-control.svg
โโโ run.svg
โโโ settings.svg
โโโ git-branch.svg
โโโ cloud.svg
โโโ database.svg
The site uses CSS custom properties for theming:
:root {
--color-bg: #1e1e1e;
--color-panel: #252526;
--color-editor-bg: #1e1e1e;
--color-border: #3c3c3c;
--color-text: #d4d4d4;
--color-muted: #9da1a6;
--color-accent: #4fc1ff;
/* ... */
}- Push to the
mainbranch - Go to repository Settings โ Pages
- Set source to "Deploy from a branch" โ
mainโ/(root) - Custom domain:
divengine.com(already configured in CNAME)
- Add CNAME record:
divengine.comโdivengine.github.io - Enable "Enforce HTTPS" in GitHub Pages settings
- Repository metadata (stars, description, last update)
- README content fetching with branch fallback
- Recent commits display
- Rate limit monitoring
- localStorage cache with TTL (30 minutes default)
- Cache keys:
divengine.cache.{repo}.{type} - Automatic cache invalidation
Ctrl+P/Cmd+P- Open Quick Open modalEscape- Close modals
- Click activity bar icons to toggle panels
- Click explorer items to open README files
- Use tabs to switch between open files
- Panel tabs switch between Output and Commits
#/- Welcome view#/repo/{slug}- Open specific repository README
- Fetch from GitHub raw content API
- Process with marked.js for Markdown parsing
- Sanitize HTML with DOMPurify
- Apply syntax highlighting with highlight.js
- Render in editor area
- Graceful fallbacks for network issues
- Cache-first approach for offline resilience
- User-friendly error messages
- Content Security Policy headers (configure in hosting)
- HTML sanitization for user-generated content
- HTTPS enforcement
- No external script injection
- Lazy loading of repository data
- Efficient caching strategy
- Minimal external dependencies
- Optimized for Core Web Vitals
- Fork the repository
- Make your changes
- Test locally
- Submit a pull request
This project is open source. See individual repository licenses for details.
Divengine is an open-source initiative, not a company or legal entity. We create tools and libraries for web development, focusing on PHP, JavaScript, and modern web technologies.