GithubHelp home page GithubHelp logo

tom-james-watson / detoxed.news Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 3.0 1.3 MB

The important news, without the toxicity.

Home Page: https://detoxed.news

License: MIT License

JavaScript 4.83% HTML 19.43% TypeScript 55.59% CSS 20.15%

detoxed.news's Introduction

The important news, without the toxicity.

The Why

I try stay informed about current events and important world affairs, but I find the modern always-on, always-dramatic news cycle both tiring and anxiety-inducing. The news industry has an incentive to keep readers coming back - the more time they spend on their sites, the more ad-revenue they can generate. This tends to lead to addiction-forming UX, clickbait, over-dramatization and all-round information overload for the user.

Most news I end up reading ends up being either uninformative speculation or unnecessary tweeted-to-the-minute drama, neither of which are truly worth my time and energy.

What I would like is to stay informed, but in the least draining way possible.

The How

A fantastic source for a balanced, low-drama summary of news is the Wikipedia Current Events Portal. It is a user-curated list of current events per day, with items being tagged under a series of nested categories.

https://detoxed.news scrapes this page, collating the entries and associating them with their categories, which are treated as "tags", and the linked source article. Whilst the Current Events Portal is informative, it's extremely text-heavy and a bit of a chore to read. https://detoxed.news attempts to present this same information in a more user-friendly and digestable way.

The Tech

The site is a static site built using 11ty. A build dynamically scrapes the current events portal and generates JSON which is then used to compile the index.html file.

The site is hosted on Cloudflare Pages and a new build is kicked off via a webhook that is called from a cronjob every four hours. This means the content of the site will keep in sync with the content of the current events portal without any kind of manual intervention ever being necessary.

Development

Install dependencies:

npm i

Run in development mode, with live reloading:

npm run dev

Run tests:

npm t

detoxed.news's People

Contributors

dependabot[bot] avatar theamazing0 avatar tom-james-watson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

detoxed.news's Issues

Dark Mode

Light text on dark background, triggered by browser dark setting. Would also be optimal to have some button to toggle by the user.

Some news outlet names missing in text

I noticed two stories today which read like this:

"The removes all its journalists from Russia, fearing arrests due to the recent changes"

and

"A report from the said that the United Nations told its employees in a communications guidance"

The full text on the Wikipedia Portal should read, respectively:

"The New York Times removes all its journalists from Russia, fearing arrests due to the recent changes"

and

"A report from the Irish Times said that the United Nations told its employees in a communications guidance"

Other stories which mention ABC news, for example, don't seem to have this bug. Maybe there's something in the parsing of the page that needs looked at?

RSS Feed

Would it be possible to include an RSS feed with the page so that it could be used with newsreader apps?

Consider maintaining inline wikipedia links of entries

We should consider maintaining the inline wikipedia links within each entry.

We would want the link style to be a subtle as possible. The wikipedia-style high-contrast blue links make reading the text harder.

Maybe either a subtle underline or a very subtle font colour difference.

Links not immediately visible on mobile

Love this site. Thank you for making it!

I'm using firefox for android, so maybe this is just my problem, but when visiting the site on mobile it's not easy to tell what is a link and what is just text.

I really love how it works on desktop, where you hover the mouse over a paragraph and it shows the links. But on mobile you have to long touch the paragraph, and then the links show up.

Maybe something like this could help? https://css-tricks.com/styling-based-on-scroll-position/ Or just make links always visible when the viewport is smaller than a certain size?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.