1
2 Comments

Github to API

Hey hackers,

I have an idea for making a tool that lets you connect a github repository and serve the certain files over an API. The URL will be the file path and the content will be, well, the file content itself. Configuration will be done via a YAML file in the root of the repo to setup which directories to traverse.

I came up with this idea after looking for a way to host my blog posts (in markdown) in a private repository so it's easy to version control. I wanted to consume the blog posts as an API so it plays nice with the react frontend. I'm don't want to host my own solution like ghost, and ideally I don't want to pay for consuming the API.

Would something like this be of use to others?

on March 13, 2020
  1. 1

    I am unclear on how the proposal is unique compared to what is offered by Github already...

    For example how does it differ from Github's existing 'raw content' URLs? Example

    Alternatively, how does it differ from 'Github Pages'?

  2. 1

    How is it better then the simple git pull?

    Remember, that having it remote you add more points of failure. I vote for the KISS principle.