How apanzinc/moonfog works
MoonFog is a Chrome new-tab replacement. The user opens the page, configures its appearance and content, then uses search and shortcut navigation from the customized start page. Runtime capabilities include multiple background sources, image-derived themes, greetings, editable search engines, bookmark import, typography and preference backup/reset. The sampled app excerpt shows deferred initialization of search, shortcuts, settings and background; several other links below reflect README descriptions rather than inspected implementation. The README documents localStorage as the preference store.
Main entry points: app.js Runtime coordinator · background.js Background modes · settings.js Settings and data · boot-paint.js First-paint boot
Components 25
Page startup
- New-tab page
newtab.html - Runtime coordinator
js/app.js - First-paint boot
js/boot-paint.js - Boot state
js/boot-state.js - Boot configuration
js/boot-config.js - Boot utilities
js/boot-utils.js
Appearance
- Background modes
js/background.js - Bing image cache
js/background.js - Grain renderer
js/oobe-grain.js - Theme manager
js/theme-manager.js - Theme controls
js/theme.js - Color utilities
js/color-utils.js
Page content
- Greeting and quotes
js/greeting.js - Search and engines
js/search.js - Search suggestions
js/search.js - Shortcut navigation
js/shortcuts.js - First-run onboarding
js/oobe.js
Preferences
- Settings and data
js/settings.js - Preference configuration
js/config.js - Local preferences
Other components
- Browser user
- Bing image service
- Quote service
- Suggestion service
- Browser bookmarks
Connections 27
- Browser user → New-tab page: opens
README.md - New-tab page → Runtime coordinator: starts
- Runtime coordinator → Greeting and quotes: initializes
js/app.js - Runtime coordinator → Search and engines: initializes
js/app.js - Runtime coordinator → Shortcut navigation: renders
js/app.js - Runtime coordinator → Settings and data: initializes
js/app.js - Runtime coordinator → Background modes: initializes
js/app.js - Runtime coordinator → First-run onboarding: checks
js/app.js - First-paint boot → New-tab page: paints early
- Boot state → First-paint boot: provides state
- Boot configuration → First-paint boot: provides settings
- Boot utilities → First-paint boot: supports startup
- Background modes → Bing image cache: loads
README.md - Bing image cache → Bing image service: fetches image
README.md - Background modes → Grain renderer: supports mode
README.md - Background modes → Theme manager: sets image palette
README.md - Theme manager → Color utilities: generates palette
- Theme controls → Theme manager: applies theme
- Greeting and quotes → Quote service: fetches quote
README.md - Search and engines → Search suggestions: requests suggestions
js/search.js - Search suggestions → Suggestion service: queries
README.md - Search and engines → Browser user: opens search result
js/search.js - Shortcut navigation → Browser bookmarks: imports HTML
README.md - Settings and data → Preference configuration: configures options
- Settings and data → Local preferences: imports and exports
README.md - Preference configuration → Local preferences: stores preferences
README.md - First-run onboarding → Settings and data: guides setup