Hacker News new | ask | show | jobs
by mikece 2537 days ago
Something I've been wanting to write but will quite honestly never have time is a lightweight replacement for WordPress where all editing happens locally in an Electron app and a static site is published/rsynched to a web server with backups stored in a git or hg repo. The big nut to crack, in my mind, is to support multiple distributed content editors at once, which is why I was thinking that the publish action is really pushing to Git and invoking an API on the web server to do a `git fetch` or equivalent. Does anyone know of a project that does what I'm describing? ImportDoc sort of does this but with a reliance on Google Docs it's not 100% portable.
8 comments

Kind of sounds like Publii (https://getpublii.com/).
Well, not exactly electron-based, but Lektor (python-based) for the most part DOES provide conceptually what you asked for:

* lightweight replacement for wordpress

* static site generator

* ability to deploy/publish through various channels such as rysnc, github, gitlab, etc.

* not dependent on google docs.

Here are the details around Lekot's deployment options (you'll want to review the left-hand nav under this section too): https://www.getlektor.com/docs/deployment/

I've been using hugo for my personal site, and it has been ok-ish...but I will be moving to Lektor...because jinja templating seems to be easier for me to understand as opposed to hugo's/Go's templating. But, this is of course a personal choice, and YMMV.

Cheers!

The idea I've got is that anyone could use the editor/publisher I'm trying to describe after watching a 10 minute YouTube video and pulling down the Electron app. Another goal would be to help people in repressive regimes spread news and information that the government wants suppressed: that's why I was thinking of building this on a git/hg model but with all of the hairy aspects of distributed source control abstracted or made easy so the content creators can focus on creating content instead of learning MIS minutiae.
I see what you mean...and i definitely would NOT want to dissuade you from any such activities in building what you described - the more attention around providing options for tech and non-techs alike is for the best! However, i wonder if part of what you wish for, might already be built? Have you scoured options via the following? https://www.staticgen.com/

If not the whole stack, maybe components and modules might already exist, and you can build upon them? Again, the more options that exist for people to more easily post and host their own content (and in my opinion not beholden to the walled garden silos) is best! In any case, good luck! Cheers!

I kinda hope all of the Legos exist and just need to be snapped together in the right way! Would a high-level write-up of the concept be appropriate to post as an "Ask HN" in order gauge (1) whether all of the needed parts exist and (2) what the level of interest would be in assembling the parts/creating what is missing? Regarding part 2, I suck at JavaScript so me creating an electron app will happen the day after Linus Torvalds and Steve Ballmer create a tech startup together...
In response to your items...

1. I mean, i guess you could post an "Ask HN"; you could certainly get other insights and intel from others...but if it were me, i think I'd just dive in and start researching things on my own. Or, maybe just get all meta on this topic, and post your thoughts around this to your own existing blog (assuming you have one now?)...about how you wish to go through this endeavor!

2. I vote for you to just "scratch your own itch".

Hey, I'm not a javascript guru either...But if this were the approach that i would want to take - i.e. to leverage electron - and it doesn't/didn't exist, i might be compelled to learn enough javascript to at least get the ball rolling myself ("dangerous" though it might feel)...and along the way - assuming you've already posted about this effort of yours - maybe others will join in to help you - that is, others who might be better javascript practitioners, and who want the same platform as you want. I think that's worth a shot! I encourage you to go for it! What is it that Ghandi said: "Be the change that you wish to see in the world." Good luck and cheers!

Ghost (https://ghost.org) is a lightweight WordPress with an Electron app for editing/writing. However, it isn't statically generated, I think all the content is stored in a database.
Damn, that's a great idea. I'm going to seriously look into building that. I think the power of this, is it gives the tools the ability to grow as the team does. Initially it's a simple wordpress like get it done thing. But then as the team grows, they can start building and customizing their own content pipeline without having to go through a massive redesign. The downside, is the power of wordpress is the ecosystem. Trying to compete with it in 2019 is no small task.
I mean, sans Electron, you basically described my current static site model using Hugo and NetlifyCMS.
Quite the one I'm going to release soon: https://docxmanager.com

The template engine is Mustache, and it generate pure static sites, and it will support multiple publishing targets.

Jekyll + a remote git server can do this via post receive hooks. iirc GitHub pages functions this way (where the electron app is atom + markdown preview).
Notion comes close, perhaps?

https://www.notion.so/