Scripts2026年4月10日·1 分钟阅读

Glance — Beautiful Self-Hosted Dashboard for All Your Feeds

Glance is a self-hosted dashboard that puts RSS feeds, Reddit, YouTube, weather, stocks, GitHub releases, and more in one beautiful, customizable page.

SC
Script Depot · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

docker run -d --name glance -p 8080:8080 
  -v ./glance.yml:/app/glance.yml 
  glanceapp/glance:latest

Create glance.yml configuration and open http://localhost:8080.

介绍

Glance is a self-hosted dashboard that aggregates all your information feeds into a single, beautiful page. Built with Go, it's a fast, lightweight alternative to Heimdall, Homer, and Dashy, featuring RSS feeds, Reddit, Hacker News, YouTube, weather, stocks, GitHub releases, Twitch streams, and more — all configurable via a single YAML file.

With 33.2K+ GitHub stars and AGPL-3.0 license, Glance has rapidly gained popularity in the homelab community for its stunning design, minimal resource usage (~15MB RAM), and simple configuration.

What Glance Does

Glance provides configurable widgets for:

  • RSS Feeds: Any RSS/Atom feed with thumbnails and summaries
  • Reddit: Subreddit posts with thumbnails and engagement metrics
  • Hacker News: Top stories, new, best, ask, and show
  • YouTube: Channel videos with thumbnails
  • Weather: Current conditions and forecast (via Open-Meteo)
  • Stocks/Crypto: Real-time market data for any ticker
  • GitHub Releases: Latest releases from any repository
  • Twitch: Live streams and channel status
  • Calendar: iCal/webcal integration
  • Bookmarks: Quick link collections
  • Search: Custom search widget with multiple engines
  • Clock: Multiple time zones
  • Custom Iframe: Embed any web page or service
  • Monitor: HTTP endpoint health checks

Configuration

Everything in a single YAML file:

# glance.yml
pages:
  - name: Home
    columns:
      - size: small
        widgets:
          - type: weather
            location: Shanghai, China
            units: metric

          - type: bookmarks
            groups:
              - title: Dev Tools
                links:
                  - title: GitHub
                    url: https://github.com
                  - title: GitLab
                    url: https://gitlab.com

          - type: stocks
            stocks:
              - symbol: AAPL
              - symbol: GOOG
              - symbol: BTC-USD

      - size: full
        widgets:
          - type: rss
            title: Tech News
            style: horizontal-cards
            feeds:
              - url: https://hnrss.org/frontpage
                title: Hacker News
              - url: https://www.theverge.com/rss/index.xml
                title: The Verge

          - type: reddit
            subreddit: selfhosted
            show-thumbnails: true

      - size: small
        widgets:
          - type: releases
            repositories:
              - immich-app/immich
              - jellyfin/jellyfin
              - glanceapp/glance

          - type: youtube
            channels:
              - UCHnyfMqiRRG1u-2MsSQLbXA  # Veritasium

Self-Hosting

Docker Compose

services:
  glance:
    image: glanceapp/glance:latest
    ports:
      - "8080:8080"
    volumes:
      - ./glance.yml:/app/glance.yml:ro
    restart: unless-stopped

Binary (No Docker)

# Download single binary
curl -L https://github.com/glanceapp/glance/releases/latest/download/glance-linux-amd64 -o glance
chmod +x glance
./glance --config glance.yml

Key Features

Themes & Customization

Built-in themes with full CSS customization:

theme:
  background-color: 20 20 30
  primary-color: 200 170 110
  contrast-multiplier: 1.2
  font-size-base: 16

Multiple Pages

Organize widgets across multiple pages:

pages:
  - name: Home
    # main dashboard widgets...
  - name: Development
    # dev-focused widgets...
  - name: Finance
    # stock & crypto widgets...

Responsive Layout

Glance automatically adjusts layout for mobile, tablet, and desktop viewports.

Resource Usage

  • RAM: ~15MB idle
  • CPU: Negligible
  • Docker image: ~15MB
  • Startup time: <1 second

Glance vs Alternatives

Feature Glance Homer Dashy Heimdall
Config YAML file YAML YAML/UI Web UI
RSS Feeds Built-in No Plugin No
Reddit/HN Built-in No No No
Weather Built-in No Widget No
Stocks Built-in No Widget No
Themes CSS + built-in Limited 50+ Limited
RAM usage ~15MB ~5MB ~150MB ~100MB
Docker size ~15MB ~10MB ~200MB ~150MB

常见问题

Q: Glance 和 Homer/Dashy 有什么区别? A: Homer 和 Dashy 主要是应用链接仪表盘(书签页面)。Glance 是信息聚合仪表盘,内置 RSS、Reddit、天气、股票等实时内容 widget。如果你只需要应用链接,Homer 更简单。如果你想看新闻、动态和数据,Glance 更合适。

Q: 可以自定义 CSS 吗? A: 可以。Glance 支持通过 YAML 配置颜色主题,也支持自定义 CSS 文件进行深度定制。

Q: 支持认证保护吗? A: Glance 本身不内置认证。推荐使用反向代理(Nginx、Caddy、Traefik)的基本认证或 OAuth 代理(如 Authelia、Authentik)保护访问。

来源与致谢

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产