Latest revision |
Your text |
Line 1: |
Line 1: |
| {{InfoboxProject | | {{InfoboxProject |
| |project=Post Print | | |project= |
| |image=[[File:Missingthumb2.png]] | | |image= |
| |topic= | | |topic= |
| |leader=cam#4507 | | |leader= |
| |startdate=25 July 2020 | | |startdate= |
| |customlabel1= | | |customlabel1= |
| |customdata1= | | |customdata1= |
Line 13: |
Line 13: |
| |customlabel4= | | |customlabel4= |
| |customdata4= | | |customdata4= |
| |link1title=Production | | |link1title= |
| |link1=[https://postprint.org/ Website] | | |link1= |
| |link2title=GitHub | | |link2title= |
| |link2=[https://github.com/hyferg/docs Repo] | | |link2= |
| |link3title= | | |link3title= |
| |link3= | | |link3= |
Line 23: |
Line 23: |
| }} | | }} |
|
| |
|
| Post Print is a homage to the free (as in freedom) and open internet, Aaron Schwartz, and Ted Nelson.
| |
|
| |
|
| Can you edit a text file? You can make a timeline! Post Print turns text files in git(hub) repos into timelines. You can even edit the files using the github website if you don't know how to use git.
| |
|
| |
| Post Print is a set of instructions to crawl and display data from a web of these repos. I've added a basic timeline of technology already.
| |
|
| |
| Other ideas would be to make timelines
| |
| * The life of Aaron Schwartz
| |
| * Portal Community
| |
| * Coronavirus
| |
| * IDW Content
| |
|
| |
| Drop a pull request on the repo or talk to me if you want to add to these or have your own ideas for timelines.
| |
|
| |
| <gallery mode="slideshow">
| |
| File:Postprint-sample.png
| |
| File:Postprint-docs.png
| |
| </gallery>
| |
|
| |
|
| == Goals == | | == Goals == |
| * Turn plain text into timelines.
| |
|
| |
| == Design ==
| |
| What's a simple way to collaboratively build a timeline or series of blogposts?
| |
| Host the data as a plaintext file in a accessible git repository.
| |
| Use a 'website' to distribute client side code (react) to query and display the data as a website.
| |
|
| |
|
| |
|
| |
| 1 Data concerns
| |
|
| |
| βββββββββββββββ
| |
|
| |
| Β <https://pc.net/helpcenter/answers/how_much_text_in_one_megabyte>
| |
| Β 500 pages of 2000 characters is about 1 megabyte
| |
| Β 10 years of blogposts, 60 posts a year, 500 words per posts about 1 megabyte
| |
| Β β’ website main pages
| |
| Β Β β’ bbc.com: 5.90 MB
| |
| Β Β β’ npr.com: 6.95 MB
| |
| Β Β β’ reddit.com: 17.07 MB
| |
| Β Β β’ cnn.com: 14.00 MB
| |
| Β Β β’ twitter blank login page: 3.34 MB
| |
| Β Β β’ twitter user page 3.99 MB
| |
|
| |
|
| |
| 2 What does this mean
| |
|
| |
| βββββββββββββββββββββ
| |
|
| |
| Β β’ You can store an entire blog or timeline in a plaintext file
| |
| Β β’ This file can be hosted in a github repo
| |
| Β β’ The client can cache the file and only update when the git repo
| |
| Β Β reports a different hash for the file
| |
|
| |
|
| |
| 3 How to get the data
| |
|
| |
| βββββββββββββββββββββ
| |
|
| |
| Β β’ REST api docs:
| |
| Β Β <https://docs.github.com/en/rest/reference/repos#get-repository-content>
| |
|
| |
|
| |
| 3.1 View root level stuff
| |
|
| |
| βββββββββββββββββββββββββ
| |
|
| |
| Β GET <https://api.github.com/repos/hyferg/time/contents>
| |
| Β β’ Accept: application/vnd.github.v3+json
| |
|
| |
|
| |
| 3.2 View a raw document
| |
|
| |
| βββββββββββββββββββββββ
| |
|
| |
|
| Β GET
| |
| Β <https://api.github.com/repos/hyferg/time/contents/aaron-swartz.md>
| |
| Β headers Accept: application/vnd.github.v3.raw
| |
|
| |
|
| == Members == | | == Members == |
| * cam#4507
| |
|
| |
|
| __NOTOC__ | | __NOTOC__ |
| [[Category:Projects]] | | [[Category:Projects]] |