# Stringer [![CircleCI](https://circleci.com/gh/stringer-rss/stringer/tree/main.svg?style=svg)](https://circleci.com/gh/stringer-rss/stringer/tree/main) [![Code Climate](https://api.codeclimate.com/v1/badges/899c5407c870e541af4e/maintainability)](https://codeclimate.com/github/stringer-rss/stringer/maintainability) [![Coverage Status](https://coveralls.io/repos/github/stringer-rss/stringer/badge.svg?branch=main)](https://coveralls.io/github/stringer-rss/stringer?branch=main) [![GitHub Sponsors](https://img.shields.io/github/sponsors/mockdeep?logo=github)](https://github.com/sponsors/mockdeep) ### A self-hosted, anti-social RSS reader. Stringer has no external dependencies, no social recommendations/sharing, and no fancy machine learning algorithms. But it does have keyboard shortcuts and was made with love! ![](screenshots/instructions.png) ![](screenshots/stories.png) ![](screenshots/feed.png) ## Installation Stringer is a Ruby app based on Rails, PostgreSQL, Hotwire (Turbo and Stimulus) and GoodJob. [![Deploy to Heroku](https://cdn.herokuapp.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/stringer-rss/stringer) Stringer will run just fine on the Eco/Basic Heroku plans. Instructions are provided for deploying to [Heroku manually](/docs/Heroku.md), to any Ruby compatible [Linux-based VPS](/docs/VPS.md), to [Docker](docs/Docker.md) and to [OpenShift](/docs/OpenShift.md). ## Niceties ### Keyboard Shortcuts You can access the keyboard shortcuts when using the app by hitting `?`. ![](screenshots/keyboard_shortcuts.png) ### Using your own domain with Heroku You can run Stringer at `http://reader.yourdomain.com` using a CNAME. If you are on Heroku: ``` heroku domains:add reader.yourdomain.com ``` Go to your registrar and add a CNAME: ``` Record: CNAME Name: reader Target: your-heroku-instance.herokuapp.com ``` Wait a few minutes for changes to propagate. ### Fever API Stringer implements a clone of [Fever's API](http://www.feedafever.com/api) so it can be used with any mobile client that supports Fever. ![image](https://f.cloud.github.com/assets/56947/546236/68456536-c288-11e2-834b-9043dc75a087.png) Use the following settings: ``` Server: {path-to-stringer}/fever (e.g. http://reader.example.com/fever) Email: stringer (case-sensitive) Password: {your-stringer-password} ``` ### Translations Stringer has been translated to [several other languages](config/locales). Your language can be set with the `LOCALE` environment variable. To set your locale on Heroku, run `heroku config:set LOCALE=en`. If you would like to translate Stringer to your preferred language, please use [LocaleApp](http://www.localeapp.com/projects/4637). ### Clean up old read stories on Heroku You can clean up old stories by running: `rake cleanup_old_stories` By default, this removes read stories that are more than 30 days old (that are not starred). You can either run this manually or add it as a scheduled task. ## Development ### Getting Started You'll need the toolchain versions pinned in `.tool-versions` (Ruby, Node, PostgreSQL, and pnpm). With those installed, run: ```sh bin/setup ``` This installs dependencies, prepares the database, and launches the development server. The application will be running on port `3000`. On subsequent runs you can start the server directly with `bin/dev`, which boots Puma alongside the esbuild watchers for JavaScript and CSS. You can launch an interactive console (a la `rails c`) using `rake console`. ### Tests and linting Run the Ruby tests with `bundle exec rspec`. Run a single file or example with `bundle exec rspec spec/path/to/file_spec.rb:LINE`. Run the JavaScript tests with `pnpm test` (Vitest). This also type-checks and runs ESLint first. Other checks: `bundle exec rubocop` (Ruby lint), `pnpm eslint` (JS lint), `pnpm stylelint` (CSS lint), `pnpm tscheck` (type check), and `bundle exec brakeman` (security scan). ## Acknowledgments Most of the heavy-lifting is done by [`feedjira`](https://github.com/feedjira/feedjira) and [`feedbag`](https://github.com/dwillis/feedbag). General sexiness courtesy of [`Twitter Bootstrap`](http://twitter.github.io/bootstrap/) and [`Flat UI`](http://designmodo.github.io/Flat-UI/). ReenieBeanie Font Copyright © 2010 Typeco (james@typeco.com). Licensed under [SIL Open Font License, 1.1](http://scripts.sil.org/OFL). Lato Font Copyright © 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com). Licensed under [SIL Open Font License, 1.1](http://scripts.sil.org/OFL). ## Contact If you have a question, feature idea, or are running into problems, our preferred method of contact is to open an issue on GitHub. This allows multiple people to weigh in, and we can keep everything in one place. Thanks! ## Maintainers Robert Fletcher [boon.gl](https://boon.gl) ## Alumni Matt Swanson (creator), [mdswanson.com](http://mdswanson.com), [@_swanson](http://twitter.com/_swanson) Victor Koronen, [victor.koronen.se](http://victor.koronen.se/), [@victorkoronen](https://twitter.com/victorkoronen)