Re:Show HN: Postleaf – Open source blogging platform
by claviska on Thursday July 28, 2016 @06:04PM
(#12183543)
I think what you're referring to is called a "headless CMS", which is an interesting idea and something we can discuss as the project evolves. It may not be a good candidate for core, but a plugin that outputs the data in the format you're looking for wouldn't be that hard to build (once plugins land).
For example, the existing internal API has a backup method that exports all MySQL tables to JSON files. The heavy lifting is already done for you. (It also wraps all your themes and uploads into a TAR along with the JSON files so you have a real, full backup — not just your post content.)
I'd love to explore this more down the road :)
Re:Show HN: Postleaf – Open source blogging platform
by mklappstuhl on Thursday July 28, 2016 @03:57PM
(#12182722)
MobileDoc might be interesting to you: https://github.com/bustlelabs/mobiledoc-kit
Re:Show HN: Postleaf – Open source blogging platform
by subpixel on Thursday July 28, 2016 @06:15PM
(#12183602)
What you describe closely resembles Webhook (webhook.com), where the CMS updates Firebase, which spits out Json, triggering a build and a static site on Google cloud storage.
Re:Show HN: Postleaf – Open source blogging platform
by paultannenbaum on Thursday July 28, 2016 @04:58PM
(#12183102)
Agreed. I had a project recently and was looking for something like this. There are "API first CMS" systems like Contentful and Prismic that could allow this, but they are paid services. A cool open source version that has plugins for middleman and other static site generators would be really cool.
This way, anytime someone updates and saves content through the GUI, a script will trigger and re-build your static site based on the new JSON file, and publish to s3. To completely decouple the editing experience (and those who create and maintain content) from the actual design and code, is the real ticket.
One day when I get some more time...