An Alternative Medium Frontend
Find a file
2022-08-21 23:10:40 +05:30
.github feat: use cargo-tarpaulin for generating coverage 2022-01-05 13:03:27 +05:30
config create tmp cache directory if one is not specified 2021-11-02 16:03:10 +05:30
schemas light weight graphql query to fetch data to construct post URL 2021-11-25 12:35:47 +05:30
scripts use grcov to get rust code coverage 2021-11-25 14:09:42 +05:30
src fix: flatten content and then apply markup rules 2022-08-21 23:10:40 +05:30
templates fix: flatten content and then apply markup rules 2022-08-21 23:10:40 +05:30
.dockerignore pkg docker 2021-10-31 22:55:47 +05:30
.gitignore feat: use cargo-tarpaulin for generating coverage 2022-01-05 13:03:27 +05:30
build.rs - run build script when CSS file is changed 2021-11-02 12:00:32 +05:30
Cargo.lock feat: bump deps and switch to actix-web-codegen-const-routes 2022-08-21 17:57:45 +05:30
Cargo.toml feat: bump deps and switch to actix-web-codegen-const-routes 2022-08-21 17:57:45 +05:30
Dockerfile chore: update docker base rust img 2022-02-17 20:27:02 +05:30
libmedium.user.js userscript: proxy using post ID 2021-11-25 13:50:57 +05:30
LICENSE.md add license 2021-10-31 15:11:25 +05:30
Makefile use grcov to get rust code coverage 2021-11-25 14:09:42 +05:30
README.md feat: add syntax highlighting to feature list 2022-04-28 14:41:13 +05:30
sailfish.yml Cache post data using sled 2021-11-02 15:30:25 +05:30

LibMedium

Privacy-focused proxy for medium.com

Awesome Humane Tech Build dependency status codecov

Status

Usable. Should you run into a HTTP 500 Internal Server Error, please file a bug report with the URL of the post you were trying to read and the git commit hash of the build. Git commit hash can be obtained from /api/v1/meta/build.

This proxy works by interacting with Medium's undocumented(probably private but unauthenticated) API. So I've had to make assumptions and tweak API schematics as I run into errors.

Features

  • proxy images
  • proxy GitHub gists
  • render posts
  • syntax highlighting for gists
  • user pages(WIP)
  • RSS feeds

Why?

Knowledge is the true wealth of humanity. If it weren't for our ancestors, who chose to pass down their knowledge and experiences, we would still be a primitive species. Whatever advancement that we as a species have achieved is because we chose to share information.

To put a paywall on knowledge like that is both obscene and goes against the very nature of humanity.

It is possible to run a sustainable publication business while still respecting freedom. LWN.net is one of my favourite publications that has been around forever. So it is possible. I hope medium.com comes up with other, non-harmful ways to run a sustainable business.

Deploy

  1. Grab ./config/default.toml and make necessary changes

  2. AMD64 pre-compiled images are available on DockerHub.

docker run -d \
  -v ./config/default.toml:/etc/libmedium/config.toml \
  -p 8082:7000 \
  --restart always \
  --name libmedium \
  realaravinth/libmedium

If you are on a different architecture, run make docker and then run the above command.

make docker

Inspired by Scribe - An Alternative Medium Frontend