• Stars
    star
    391
  • Rank 110,003 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go Terminal Feed Reader

GORSS - Go RSS Reader

Go Report Card MIT License

About

Simple RSS/Atom reader written in Golang. Highly configurable and with themes.

Overview

Screenshots

Usage

Tarballs with prebuilt binaries for both Linux and OSX can be found under release page.

Just start by running either gorss_linux or gorss_osx binary from the tarballs.

You can also specify theme, configuration and database manually.

./gorss -config gorss.conf -theme default.theme -db mydb.db

If either the configuration or theme files are not specified, gorss will attempt to use$XDG_CONFIG_HOME/gorss/gorss.conf and $XDG_CONFIG_HOME/gorss/themes/default.theme, respectively. These files will be created from the defaults if not present.

To build and run use the makefile.

make run

In order to cross-compile make release for Linux on OSX you need to install the following:

brew install FiloSottile/musl-cross/musl-cross

The database gorss.db will be automatically created in your systems 'Data Home' directory. You can specify which database to use with the argument -db to the binary.

Features

  • OPML Support for loading feed URLs (opmlFile in gorss.conf)
  • Support for XDG configuration
  • RSS and Atom support (via github.com/mmcdole/gofeed)
  • Highlights for configurable words
  • Keyboard shortcuts highly configurable
  • Custom keys for custom execution of external applications
  • Open links in browser
  • Mark articles and open all marked in bulk in webbrowser
  • Theme support
  • Preview content of the RSS
  • Backed by SQLite database
  • Mark articles as read
  • Mark all as read/unread
  • Undo last read (mark it as unread)
  • Search titles
  • System notifications

Configuration Example (Default config)

It's possible to specify configuration file as a flag, default is gorss.conf.

The configuration file can specify URLs of feeds as strings, or, if you want to customise the name of the feed as it is shown in your Gorss, as objects with url and name fields. (See the example below for supported options).

./gorss -config my.conf
{
    "highlights": [
        "emulation",
        "truck",
        "google",
        "network",
        "math",
        "toyota"
    ],
    "OPMLFile": "../example_ompl.xml",
    "feeds": [
        "https://news.ycombinator.com/rss",
        {"url": "https://www.sweclockers.com/feeds/nyheter", "name": "Swedish Overclocking"},
        {"url": "https://www.reddit.com/r/homeassistant/.rss", "name": "Home Assistant"},
        {"url": "https://www.reddit.com/r/golang/.rss"},
        {"url": "https://www.reddit.com/r/programming/.rss"}
    ],
    "feedWindowSizeRatio": 2,
    "articlePreviewWindowSizeRatio": 5,
    "articleWindowSizeRatio": 2,
    "previewWindowSizeRatio": 1,
    "daysToKeepDeletedArticlesInDB": 1,
    "daysToKeepReadArticlesInDB": 1,
    "skipArticlesOlderThanDays": 10,
    "secondsBetweenUpdates": 300,
    "skipPreviewInTab": true,
    "keyOpenLink": "Backspace2",
    "keyMarkLink": "Enter",
    "keyOpenMarked": "o",
    "keyDeleteArticle": "d",
    "keyMoveDown": "s",
    "keyMoveUp": "w",
    "keySortByDate": "r",
    "keySortByUnread": "e",
    "keySortByTitle": "t",
    "keySortByFeed": "y",
    "keyUpdateFeeds": "Ctrl+U",
    "keyMarkAllRead": "Ctrl+R",
    "keyMarkAllUnread": "Ctrl+T",
    "keyMarkAllReadFeed": "Ctrl+F",
    "keyMarkAllUnreadFeed": "Ctrl+G",
    "keyTogglePreview": "q",
    "keySelectFeedWindow": "1",
    "keySelectArticleWindow": "2",
    "keySelectPreviewWindow": "3",
    "keyToggleHelp": "h",
    "keySwitchWindows": "Tab",
    "keyQuit": "Esc",
    "keyUndoLastRead": "u",
    "keySearchPromt": "/",
    "notifications": true,
    "customCommands": [
        {
            "key": "j",
            "Cmd": "echo 'ARTICLE.Content' 'ARTICLE.Link' > /tmp/test2.txt"
        },
        {
            "key": "k",
            "Cmd": "echo 'ARTICLE.Title' 'ARTICLE.Feed' > /tmp/test.txt"
        }
    ]
}

Custom Commands

Custom commands can be added such as the example in the example configuration above.

The variables given will be substituted with the content of the given article. There are no escaping going on so be careful!

Available variables are:

  • ARTICLE.Content - The content of the article
  • ARTICLE.Link - The link to the article
  • ARTICLE.Feed - Name of the feed
  • ARTICLE.Title - Title of the article

Themes

Themes are highly configurable and 3 example themes are included. You can start gorss with a specific theme as argument.

./gorss -theme my.theme

Themes are configured with JSON, default example below:

{
    "feedNames": [
        "#8ed2c8",
        "#46aa9f",
        "#2e6294",
        "#3b9293"
    ],
    "date": "#a25478",
    "time": "#f96bad",
    "articleBorder": "#4b7d81",
    "previewBorder": "#4b7d81",
    "feedBorder": "#4b7d81",
    "feedBorderTitle": "#fcedd5",
    "articleBorderTitle": "#fcedd5",
    "previewBorderTitle": "#fcedd5",
    "highlights": "#c90036",
    "tableHead": "#b2b37d",
    "title": "#fcedd5",
    "unreadFeedName": "#FFFFFF",
    "totalColumn": "#FFFFFF",
    "unreadColumn": "#FFFFFF",
    "previewText": "#FFFFFF",
    "previewLink": "#39537e",
    "statusBackground": "#4b7d81",
    "statusText": "#fcedd5",
    "statusKey": "#f6d270",
    "statusBrackets": "#bfceab",
    "feedIcon": "🔖",
    "articleIcon": "🗞",
    "previewIcon": "📰",
    "linkMarker": "🌍",
    "unreadMarker": "🌟"
}

[Screenshots]

default theme irssi theme night theme

License

This is distributed under the MIT License.

More Repositories

1

voxelengine3

Voxel-engine in Javascript
JavaScript
330
star
2

wizardwarz

WebGL Multiplayer game with NodeJS backend
JavaScript
292
star
3

VoxLords

VoxLords - ThreeJS WebGL game with a simple voxel engine
JavaScript
178
star
4

bintris

Binary Tetris
Go
155
star
5

vox2

Simple POC of PCG voxel-engine
JavaScript
142
star
6

gizmo

2D Pixel Destruction Game written in Go.
Go
138
star
7

Qake

Qake voxel-engine demo
JavaScript
132
star
8

voxelengine_urho3d

Voxel engine in C++ using Urho3D
C++
107
star
9

badsanta

BadSanta - Multiplayer HTML5 Game (http://santa.qake.se)
JavaScript
100
star
10

ParrotHunt

ParrotHunt - ThreeJS WebGL game (http://parrothunt.nergal.se)
JavaScript
91
star
11

doit

Simple Todo List - Wunderlist Replacement
Vue
80
star
12

rpicam

Raspberry PI Surveillance Automation
Shell
76
star
13

DungeonGenerator

Dungeon generator for games.
Perl
69
star
14

fireworks

WebGL Fireworks in VR
JavaScript
40
star
15

voxelengine_unity

Voxel engine made in C# for Unity
C#
39
star
16

spinc

Spark In Console - Cisco (WebEx)Spark Client for Linux/MacOS
Go
21
star
17

SavingNemo

SavingNemo - ThreeJS WebGL game with nodejs backend.
JavaScript
21
star
18

moonshot

Moonshot GitHubGameOff 2020 contribution
Go
16
star
19

smhialert

Home Assistant SMHI Warnings & Alerts
Python
10
star
20

hass-unifi

Unifi Person Detection with Home Assistant integration
Python
6
star
21

openfaas-demo

OpenFaaS demo using Function as a Service and object storage
Ruby
3
star
22

gruntbase

Grunt template for server/client NodeJS dev. environment.
JavaScript
2
star
23

varnish-visualizer

Varnish hit/pass visualisation in WebGL.
JavaScript
2
star
24

googlehome

Google Home (Assistant) Automation With NetHomeServer
Ruby
1
star
25

hydroponic

Hydroponic automation with ESP32 and sensors
C++
1
star
26

pointcloud

ThreeJS point cloud experiment
JavaScript
1
star