glance README

The project's README from github.com/glanceapp/glance. As one markdown file: README.md.

Glance

Install • Configuration • Discord • Sponsor

Community widgets • Preconfigured pages • Themes

A lightweight, highly customizable dashboard that displays
your feeds in a beautiful, streamlined interface

Features

Various widgets

Fast and lightweight

Tons of customizability

Optimized for mobile devices

Because you'll want to take it with you on the go.

Themeable

Easily create your own theme by tweaking a few numbers or choose from one of the already available themes.


Configuration

Configuration is done through YAML files, to learn more about how the layout works, how to add more pages and how to configure widgets, visit the configuration documentation.

Preview example configuration file
pages:
  - name: Home
    columns:
      - size: small
        widgets:
          - type: calendar
            first-day-of-week: monday

          - type: rss
            limit: 10
            collapse-after: 3
            cache: 12h
            feeds:
              - url: https://selfh.st/rss/
                title: selfh.st
                limit: 4
              - url: https://ciechanow.ski/atom.xml
              - url: https://www.joshwcomeau.com/rss.xml
                title: Josh Comeau
              - url: https://samwho.dev/rss.xml
              - url: https://ishadeed.com/feed.xml
                title: Ahmad Shadeed

          - type: twitch-channels
            channels:
              - theprimeagen
              - j_blow
              - piratesoftware
              - cohhcarnage
              - christitustech
              - EJ_SA

      - size: full
        widgets:
          - type: group
            widgets:
              - type: hacker-news
              - type: lobsters

          - type: videos
            channels:
              - UCXuqSBlHAE6Xw-yeJA0Tunw # Linus Tech Tips
              - UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
              - UCsBjURrPoezykLs9EqgamOA # Fireship
              - UCBJycsmduvYEL83R_U4JriQ # Marques Brownlee
              - UCHnyfMqiRRG1u-2MsSQLbXA # Veritasium

          - type: group
            widgets:
              - type: reddit
                subreddit: technology
                show-thumbnails: true
              - type: reddit
                subreddit: selfhosted
                show-thumbnails: true

      - size: small
        widgets:
          - type: weather
            location: London, United Kingdom
            units: metric
            hour-format: 12h

          - type: markets
            markets:
              - symbol: SPY
                name: S&P 500
              - symbol: BTC-USD
                name: Bitcoin
              - symbol: NVDA
                name: NVIDIA
              - symbol: AAPL
                name: Apple
              - symbol: MSFT
                name: Microsoft

          - type: releases
            cache: 1d
            repositories:
              - glanceapp/glance
              - go-gitea/gitea
              - immich-app/immich
              - syncthing/syncthing

Installation

Choose one of the following methods:

Docker compose using provided directory structure (recommended)

Create a new directory called glance as well as the template files within it by running:

mkdir glance && cd glance && curl -sL https://github.com/glanceapp/docker-compose-template/archive/refs/heads/main.tar.gz | tar -xzf - --strip-components 2

click here to view the files that will be created

Then, edit the following files as desired:

  • docker-compose.yml to configure the port, volumes and other containery things
  • config/home.yml to configure the widgets or layout of the home page
  • config/glance.yml if you want to change the theme or add more pages
Other files you may want to edit
  • .env to configure environment variables that will be available inside configuration files
  • assets/user.css to add custom CSS

When ready, run:

docker compose up -d

If you encounter any issues, you can check the logs by running:

docker compose logs

Docker compose manual

Create a docker-compose.yml file with the following contents:

services:
  glance:
    container_name: glance
    image: glanceapp/glance
    restart: unless-stopped
    volumes:
      - ./config:/app/config
    ports:
      - 8080:8080

Then, create a new directory called config and download the example starting glance.yml file into it by running:

mkdir config && wget -O config/glance.yml https://raw.githubusercontent.com/glanceapp/glance/refs/heads/main/docs/glance.yml

Feel free to edit the glance.yml file to your liking, and when ready run:

docker compose up -d

If you encounter any issues, you can check the logs by running:

docker logs glance

Manual binary installation

Precompiled binaries are available for Linux, Windows and macOS (x86, x86_64, ARM and ARM64 architectures).

Linux

Visit the latest release page for available binaries. You can place the binary in /opt/glance/ and have it start with your server via a systemd service. By default, when running the binary, it will look for a glance.yml file in the directory it's placed in. To specify a different path for the config file, use the --config option:

/opt/glance/glance --config /etc/glance.yml

To grab a starting template for the config file, run:

wget https://raw.githubusercontent.com/glanceapp/glance/refs/heads/main/docs/glance.yml

Windows

Download and extract the executable from the latest release (most likely the file called glance-windows-amd64.zip if you're on a 64-bit system) and place it in a folder of your choice. Then, create a new text file called glance.yml in the same folder and paste the content from here in it. You should then be able to run the executable and access the dashboard by visiting http://localhost:8080 in your browser.


Other

Glance can also be installed through the following 3rd party channels:



Common issues

Requests timing out

The most common cause of this is when using Pi-Hole, AdGuard Home or other ad-blocking DNS services, which by default have a fairly low rate limit. Depending on the number of widgets you have in a single page, this limit can very easily be exceeded. To fix this, increase the rate limit in the settings of your DNS service.

If using Podman, in some rare cases the timeout can be caused by an unknown issue, in which case it may be resolved by adding the following to the bottom of your docker-compose.yml file:

networks:
  podman:
    external: true
Broken layout for markets, bookmarks or other widgets

This is almost always caused by the browser extension Dark Reader. To fix this, disable dark mode for the domain where Glance is hosted.

cannot unmarshal !!map into []glance.page

The most common cause of this is having a pages key in your glance.yml and then also having a pages key inside one of your included pages. To fix this, remove the pages key from the top of your included pages.


FAQ

Does the information on the page update automatically? No, a page refresh is required to update the information. Some things do dynamically update where it makes sense, like the clock widget and the relative time showing how long ago something happened.
How frequently do widgets update? No requests are made periodically in the background, information is only fetched upon loading the page and then cached. The default cache lifetime is different for each widget and can be configured.
Can I create my own widgets?

Yes, there are multiple ways to create custom widgets:

  • iframe widget - allows you to embed things from other websites
  • html widget - allows you to insert your own static HTML
  • extension widget - fetch HTML from a URL
  • custom-api widget - fetch JSON from a URL and render it using custom HTML
Can I change the title of a widget?

Yes, the title of all widgets can be changed by specifying the title property in the widget's configuration:

- type: rss
  title: My custom title

- type: markets
  title: My custom title

- type: videos
  title: My custom title

# and so on for all widgets...

Feature requests

New feature suggestions are always welcome and will be considered, though please keep in mind that some of them may be out of scope for what the project is trying to achieve (or is reasonably capable of). If you have an idea for a new feature and would like to share it, you can do so here.

Feature requests are tagged with one of the following:


Building from source

Choose one of the following methods:

Build binary with Go

Requirements: Go >= v1.23

To build the project for your current OS and architecture, run:

go build -o build/glance .

To build for a specific OS and architecture, run:

GOOS=linux GOARCH=amd64 go build -o build/glance .

click here for a full list of GOOS and GOARCH combinations

Alternatively, if you just want to run the app without creating a binary, like when you're testing out changes, you can run:

go run .

Build project and Docker image with Docker

Requirements: Docker

To build the project and image using just Docker, run:

(replace owner with your name or organization)

docker build -t owner/glance:latest .

If you wish to push the image to a registry (by default Docker Hub), run:

docker push owner/glance:latest


Contributing guidelines

[1] [2] [3]

[1] The feature likely already has work put into it that may conflict with your implementation

[2] The demand, implementation or functionality for this feature is not yet clear

[3] No plans to add this feature for the time being


Thank you

To all the people who were generous enough to sponsor the project and to everyone who has contributed in any way, be it PRs, submitting issues, helping others in the discussions or Discord server, creating guides and tools or just mentioning Glance on social media. Your support is greatly appreciated and helps keep the project going.

glance (glanceapp/glance)

Searching Database…

37.5K ·GitHub
这是什么东西?Glance 是一个自托管的信息面板,把你所有的信息源集中在一个地方:一个简洁的网页上排列着 RSS、Reddit、天气、YouTube、行情价格和服务器状态等小部件。
所以它是我自己在服务器上跑的网站,不是装在电脑上的应用?对——你把它部署成一个小型 Web 服务器(最常见的方式是 Docker 容器),然后在浏览器里打开面板。它的设计非常轻量:内存占用低、依赖少、只用了极少量的原生 JS。
我怎么把它跑起来?推荐用 Docker compose:根据提供的模板文件创建一个 glance 目录,然后编辑 docker-compose.yml(端口、挂载目录)、config/home.yml(小部件和布局)和 config/glance.yml(主题、附加页面),最后启动整套服务。
我还需要安装别的东西吗?用 compose 方式的话只需要 Docker。如果你想从源码构建,需要 Go 1.23 或更新版本;也有独立二进制版本,只需在它旁边放一个 glance.yml 配置文件就能运行。
面板会自动刷新信息源吗?不会——需要手动刷新页面。Glance 不在后台发请求:每个小部件在页面加载时才获取数据,并把结果缓存一段时间(每个小部件的缓存时长可以单独配置)。只有时钟和相对时间会实时更新。
它能跑在哪里——只能装在 Linux 服务器上,还是我自己的电脑也行?只要能跑 Docker 的地方都行,也可以用原生二进制运行:针对 x86、x86_64、ARM 和 ARM64 架构的 Linux、Windows 和 macOS 都有预编译版本。另外还有 Proxmox VE、NixOS、Coolify.io 和 Hostinger 的第三方安装渠道。
页面上可以放哪些小部件?开箱即用的有:RSS 订阅、subreddit 帖子、Hacker News、天气预报、YouTube 频道更新、Twitch 频道、行情价格、Docker 容器状态和服务器状态——还支持你自定义的小部件。
如果没现成的小部件,我能自己写一个吗?可以,有四种方式:用 iframe 小部件嵌入其他网站,用 html 小部件放静态 HTML,用 extension 小部件从某个 URL 抓取 HTML,或者用 custom-api 小部件从 URL 获取 JSON 并用你自己写的 HTML 模板来渲染。
外观能改多少?能改的挺多:主题在 glance.yml 里配置,可以通过 assets/user.css 注入自定义 CSS,每个小部件的标题也能用配置里的 title 属性来覆盖。
运行时有哪些常见的坑?Pi-Hole 或 AdGuard Home 这类广告拦截 DNS 可能导致请求超时(调高它的速率限制),Dark Reader 扩展会弄乱小部件布局(在面板的域名上禁用它),另外多个被引入的 YAML 文件里如果重复出现 pages 键,配置就会解析失败。
What are similar projects?dashy, homepage, FreshRSS, RSSHub, Crucix, Horizon, invidious, labtether
Creator
glanceapp
Size
20 MB
Stars
37.5K
Age
2y
Commits · 90 Days