Skip to content

About

I was just thought and done in vibe coded if you know or know any changes feel free to say and tell issues in the page and i wil try to learn how these are working

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

19 Commits

Folders and files

Repository files navigation

๐Ÿซง Glass Widget โ€” Apple Liquid Glass New Tab Extension

Manifest V3 Chrome Compatible Edge Compatible Brave Compatible Pure Vanilla JS CSS3 Glassmorphism License: MIT PRs Welcome

A futuristic, crystal-clear new tab dashboard for Chromium browsers featuring Apple WWDC 2025 Liquid Glass refraction physics, live Radar news, daily web browsing screen-time analytics, modular drag-and-drop widgets, and an intelligent Pomodoro focus shield.

Key Features โ€ข Installation Guide โ€ข Widgets & Capabilities โ€ข Liquid Glass Physics โ€ข Controls & Customization โ€ข Special Thanks & Credits โ€ข Privacy & Permissions


โœจ Key Features

  • โšก Animated Boot Reveal & Zero-FOUC: Zero flash of unstyled content on page refresh or tab open! Features an ultra-smooth animated splash unveil where a centered search/glass emblem scales down and glides upward directly into the search bar while dissolving the dark curtain to reveal your widgets.
  • ๐Ÿ“Š Dedicated Analytics & Focus Studio: A minimalist, high-contrast analytics dashboard (analytics.html) crafted with clean developer aesthetics ("vibe coded", non-glassmorphic, fast & distraction-free) to keep the home page uncluttered.
  • ๐Ÿท๏ธ Smart Website Categorization: Automatically groups visited domains into intuitive categories:
    • ๐Ÿ“š Study & Learning (Coursera, LeetCode, edX, Khan Academy, Wikipedia, .edu portals)
    • ๐Ÿ”ฌ Research & Academic (arXiv, Google Scholar, PubMed, ScienceDirect, ResearchGate)
    • ๐Ÿ’ป Development & Coding (GitHub, StackOverflow, MDN, Dev.to, Vercel, AWS)
    • โšก Productivity & Work (Notion, Google Docs, Figma, ChatGPT, Claude, Slack)
    • ๐ŸŽฌ Entertainment & Media (YouTube, Netflix, Twitch, Spotify, Disney+)
    • ๐Ÿ’ฌ Social Media (X / Twitter, Reddit, Instagram, Discord, LinkedIn)
    • ๐Ÿ“ฐ News & Reading (Hacker News, TechCrunch, The Verge, BBC)
    • ๐ŸŒ Other & Utilities + instant one-click custom category re-assignment!
  • ๐Ÿ“ˆ Interactive Visual Charts:
    • ๐Ÿฉ Category Donut / Pie Chart: SVG-rendered interactive wheel with slice hover highlights, central duration readout, and dynamic percentage legends.
    • ๐Ÿ“Š Category Time Bar Chart: Proportional horizontal distribution bars comparing minutes across categories.
  • ๐ŸŽฏ Post-Session Accomplishment Logger: Prompted immediately after every focus sprint on the New Tab page to log what you accomplished (e.g. solved 3 problems, summarized paper, fixed auth bug).
  • ๐Ÿ“œ Focus Accomplishment History & Management: Chronological timeline of all completed study sessions with duration pills, accomplishment quotes, category tags, search filters, single item removal, and one-click Clear History with confirmation.
  • โž• Manual Focus Session Logging & Data Export: Log offline study sessions manually and export your complete browsing analytics and focus history as JSON anytime.
  • ๐ŸŒ“ Instant Theme Switcher (Normal Liquid Glass โ†” OLED Dark Mode):
    • Normal Liquid Glass Mode (Default): Vibrant cosmic nebula / aurora background, atmospheric ambient lighting blobs, high-translucency glass cards, and luminous cyan/purple accents.
    • OLED Dark Mode (Optional Feature): Pitch-black minimal aesthetic (#080808), flat charcoal cards, tight 6px corners, zero distractions, and battery-friendly contrast.
    • Dedicated one-click topbar toggle button (#themeToggleBtn) and segmented theme controls in Settings.
  • โšก Zero-Dependency Vanilla Architecture: Built entirely with Vanilla HTML5, CSS3 Custom Properties, and ES2024 JavaScript. Zero npm runtime dependencies, sub-20ms instant cold boot.
  • ๐Ÿ›ก๏ธ Pomodoro Focus Shield with Site Blocker: Native Chrome declarativeNetRequest rule engine dynamically blocking distracting domains during focus sprints.
  • ๐Ÿ“ Modular Freeform Canvas: Seamlessly toggle between a structured responsive grid and a freeform drag-and-drop canvas where every widget can be freely positioned and resized (โŒŸ).

๐Ÿš€ Installation Guide

Works natively on Google Chrome, Microsoft Edge, Brave, Opera, Vivaldi, and Arc.

Step 1: Clone or Download the Repository

git clone https://github.com/Akash7037/Glass-Widget-.git

(Alternatively, click Code โ†’ Download ZIP on GitHub and extract the folder to your preferred directory).

Step 2: Load Unpacked into Chromium Browser

  1. Open your browser and navigate to the Extensions manager:
    • Chrome: chrome://extensions
    • Brave: brave://extensions
    • Edge: edge://extensions
    • Arc: arc://extensions
  2. Toggle on Developer mode (switch located in the top-right corner).
  3. Click the Load unpacked button in the top-left toolbar.
  4. Select the cloned folder (Glass-Widget- or liquid-glass-newtab).
  5. Open a new tab (Ctrl + T on Windows/Linux or Cmd + T on macOS) to experience your new liquid glass dashboard!

๐Ÿงฉ Widgets & Capabilities

Widget / Feature Capabilities
Google Lens Search Native visual reverse-image search integrated into the search bar. Drag & drop images, upload from disk, paste direct image URLs, or paste from clipboard (Ctrl + V).
Analytics & Focus Studio Dedicated standalone dashboard (analytics.html) featuring minimalist developer styling, auto domain categorization (Study, Research, Coding, etc.), and interactive charts.
Category Visual Charts Interactive SVG Donut / Pie chart with dynamic slice hover readouts and percentages, paired with comparative category duration bar graphs.
Accomplishment History Post-focus completion modal prompting you to log what you accomplished. Searchable history timeline with category badges, duration pills, and one-click Clear History.
Clock & Greetings Crisp liquid glass time display with live seconds, weekday, calendar date, timezone, quick 12H/24H toggle, and randomized inspirational vibe-coding quotes.
News Radar Live real-time headline aggregator featuring 3 categorized feeds (AI Tech, Vibe Coding, World Breaking) with Hacker News live API integration and manual refresh.
Weather Real-time weather and 5-day forecasts powered by Open-Meteo with zero API key required. Geolocation auto-detection or instant city search with ยฐC / ยฐF switching.
Today (Tasks) Lightweight task organizer featuring instant add, inline completion check, task deletion, and remaining task counter.
Saved Links Full CRUD bookmark manager: add new sites, click the pencil icon (โœŽ) to edit existing titles and URLs, delete items, and auto-fetch favicons.
Notes Autosaving liquid glass scratchpad for code snippets, markdown, or thoughts with immediate local storage synchronization.
Focus Timer Pomodoro session timer integrated with Chrome's native declarativeNetRequest rules to block distracting websites during focus sprints.

๐Ÿ”ฎ Liquid Glass Physics Architecture

Unlike standard CSS backdrop-filter: blur(), true Liquid Glass models how light actually bends when passing through curved convex optical glass:

                  Light Source (Ray at ฮธ = -60ยฐ)
                            \
                             \   Specular Highlight Peak
                              v  /
         _____________________.-''''-._____________________
        |                    /  Bevel \                    |
        |                   | Refract  |                   |
        |                   |  Shadow  |                   |
        |===================\==========/===================|
        |                Liquid Glass Body                 |
        |  Backdrop Wallpaper refracted by Snell's Law     |
        |__________________________________________________|

1. Snell's Law Refraction ($n_1 \sin\theta_1 = n_2 \sin\theta_2$)

Light incident from inside the glass medium ($n_1 = 1.5$) bends according to the local surface normal $(-f'(x), 1)$ of the bezel before emerging into ambient air ($n_2 = 1.0$).

2. Apple Squircle Profile

The bezel utilizes Apple's signature curvature profile: $$y = \left(1 - (1 - x)^4\right)^{1/4}$$ This produces a smooth, continuous transition from curvature into the planar center without harsh boundary creases.

3. Prismatic Chromatic Dispersion

Light splitting along the edges creates spectral rainbow dispersion:

  • Cyan Sheen (#38bdf8): Primary refractive dispersion on the light-facing rim.
  • Violet Sheen (#c084fc): Secondary chromatic refraction on the counter-angled rim.
  • Pure White Crest (#ffffff): Luminous specular reflection aligned to the light source vector.

๐ŸŽ›๏ธ Controls & Customization

Click the Gear Icon (โš™) in the top right to open the Settings Drawer:

  • Glass Appearance:
    • Blur (0px โ€“ 40px): Slide down to 0px for pure crystal transparency; slide up to 40px for deep frosted glass.
    • Opacity (2% โ€“ 90%): Adjusts optical glass density without muddy color tinting.
    • Radius (8px โ€“ 44px): Adjusts corner curvature from tight squircle to pill capsule.
    • Accent Color Picker: Dynamically re-themes buttons, progress bars, and highlights.
    • Wallpaper Engine: 4 curated gradients or upload any custom high-resolution photo.
  • Liquid Glass Physics:
    • Refraction Scale (5px โ€“ 60px): Calibrates internal optical caustic depth.
    • Bezel Width (10px โ€“ 44px): Expands or contracts the physical 3D bevel edge and chromatic rim stroke.
    • Rim Gleam (5% โ€“ 100%): Adjusts the intensity of the pure white specular reflection.
    • Rim Saturation (0x โ€“ 12x): Adjusts the vibrancy of the rainbow chromatic dispersion.
    • Light Angle (-180ยฐ โ€“ 180ยฐ): Rotates the physical 3D light vector around the widgets in real time.

Keyboard Shortcuts

Shortcut Action
E Toggle Edit Layout Mode (drag widgets and resize freely)
/ Instantly focus the Search Bar
Esc Close Settings Drawer / Exit Edit Mode
Click on Clock Instant toggle between 12-Hour and 24-Hour format
Click on ๐ŸŽฒ Reroll the inspirational Vibe Coding Greeting

๐Ÿ“ Project Structure

Glass-Widget-/
โ”œโ”€โ”€ manifest.json        # Chrome Extension MV3 Manifest
โ”œโ”€โ”€ newtab.html          # Semantic HTML5 layout and widget architecture
โ”œโ”€โ”€ newtab.css           # Hardware-accelerated CSS3 liquid glass design system
โ”œโ”€โ”€ newtab.js            # Core application state, Google Lens, Focus accomplishment prompt
โ”œโ”€โ”€ analytics.html       # Standalone minimalist Analytics & Focus Studio page
โ”œโ”€โ”€ analytics.css        # High-contrast, non-glassmorphic responsive dashboard styles
โ”œโ”€โ”€ analytics.js         # Category taxonomy engine, interactive SVG charts & history manager
โ”œโ”€โ”€ liquid.js            # Liquid glass physics engine, Snell's law SDF & ray-tracing
โ”œโ”€โ”€ background.js        # Service worker (screen time logging, Lens upload, focus blocker)
โ”œโ”€โ”€ blocked.html         # Custom motivational landing page for blocked sites
โ”œโ”€โ”€ blocked.css          # Styling for focus-blocked notification screen
โ”œโ”€โ”€ blocked.js           # Logic and countdown timer for blocked page
โ”œโ”€โ”€ icons/               # High-res extension icons (16px, 32px, 48px, 128px)
โ”œโ”€โ”€ .gitignore           # Git ignore rules for clean repository state
โ””โ”€โ”€ README.md            # Comprehensive project documentation

๐Ÿ”’ Privacy & Security

Glass Widget is built with a strict privacy-first architecture:

  • 100% Local Storage: All settings, notes, tasks, bookmarks, and screen time statistics are stored exclusively in your browser via chrome.storage.local.
  • Zero Telemetry: No third-party trackers, no tracking pixels, and no analytics SDKs.
  • Zero External CDNs: All scripts, fonts, and stylesheets are bundled locally for offline security and instant page loads.
  • Minimal Permissions:
    • storage: Preserves your layout, tasks, notes, and custom preferences.
    • declarativeNetRequest: Enables non-intrusive domain redirection for the Focus blocker.
    • topSites / tabs: Powers the private Web Screen Time analytics widget locally.

๐Ÿ™ Special Thanks & Credits

A massive, heartfelt shoutout and credit to:

  • kube.io for their seminal, ground-breaking research article:
    ๐Ÿ“– Liquid Glass in the Browser: Refraction with CSS and SVG
    Which laid out the foundational mathematics of Snell's Law ray-tracing, Apple Squircle surface normals, dynamic 2D displacement maps, and specular lighting in modern web browsers.
  • Z1Code/glass-refraction and the open-source web optics community for pioneering experiments translating physical refractive shaders into accessible CSS and SVG graphics.
  • Apple Design Team for the visionary Liquid Glass aesthetic introduced at WWDC 2025.

๐Ÿค Contributing

Contributions, feature suggestions, and bug reports are warmly welcomed!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m "Add some AmazingFeature")
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.

Crafted with passion for clean design, optical physics, and productivity. Vibe Code by Akash. with Antigravity

About

I was just thought and done in vibe coded if you know or know any changes feel free to say and tell issues in the page and i wil try to learn how these are working

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages