2021-10-31 22:45:38 +05:30
|
|
|
<div align="center">
|
|
|
|
<h1> LibMedium </h1>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
**Privacy-focused proxy for medium.com**
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
2022-03-24 19:35:13 +05:30
|
|
|
[![Awesome Humane Tech](https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true)](https://github.com/humanetech-community/awesome-humane-tech)
|
2023-02-19 20:25:33 +05:30
|
|
|
[![status-badge](https://ci.batsense.net/api/badges/realaravinth/libmedium/status.svg)](https://ci.batsense.net/realaravinth/libmedium)
|
2021-10-31 22:45:38 +05:30
|
|
|
[![codecov](https://codecov.io/gh/realaravinth/libmedium/branch/master/graph/badge.svg)](https://codecov.io/gh/realaravinth/libmedium)
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2021-11-01 16:35:22 +05:30
|
|
|
## 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](https://libmedium.batsense.net/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.
|
|
|
|
|
2021-11-04 19:42:08 +05:30
|
|
|
## Features
|
|
|
|
|
|
|
|
- [x] proxy images
|
|
|
|
- [x] proxy GitHub gists
|
|
|
|
- [x] render posts
|
2022-04-28 14:41:13 +05:30
|
|
|
- [x] syntax highlighting for gists
|
2021-11-04 19:42:08 +05:30
|
|
|
- [ ] user pages(WIP)
|
|
|
|
- [ ] RSS feeds
|
|
|
|
|
2021-10-31 22:45:38 +05:30
|
|
|
## 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](https://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.
|
|
|
|
|
2022-11-01 22:36:43 +05:30
|
|
|
## Instances
|
|
|
|
|
2023-11-30 18:32:30 +05:30
|
|
|
| Instance | Country | Provider | Host |
|
|
|
|
| ------------------------------------------------------------------------- | ------- | ---------- | -------------------------------------- |
|
|
|
|
| https://libmedium.batsense.net | India | Airtel | @realaravinth |
|
|
|
|
| https://md.vern.cc | US | Hetzner | [~vern](https://vern.cc) |
|
|
|
|
| http://md.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/ | N/A | Hetzner | [~vern](https://vern.cc) |
|
|
|
|
| http://vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p/ | N/A | Hetzner | [~vern](https://vern.cc) |
|
|
|
|
| https://medium.hostux.net | France | Gandi | [hostux](https://hostux.net) |
|
2023-12-15 03:16:29 +05:30
|
|
|
| https://read.sudovanilla.com | US | Cloudflare | [SudoVanilla](https://sudovanilla.com) |
|
2024-04-24 22:47:18 +05:30
|
|
|
| https://libmedium.ducks.party | DE | Datalix | [ducks.party](https://ducks.party) |
|
2021-11-01 16:35:22 +05:30
|
|
|
## Deploy
|
|
|
|
|
|
|
|
1. Grab [`./config/default.toml`](./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
|
|
|
|
```
|
|
|
|
|
2021-10-31 22:45:38 +05:30
|
|
|
---
|
|
|
|
|
|
|
|
Inspired by [Scribe - An Alternative Medium Frontend](https://sr.ht/~edwardloveall/scribe)
|