tj / sponsors

Open-source project suggestions powered by my GitHub sponsors
56 stars 5 forks source link

Static website pre-renderer #1

Closed tj closed 4 years ago

tj commented 4 years ago

In "Pre-rendering static websites with wget" I mentioned how to do this with wget, however, a small Go tool could be much more efficient at this, and it would be a cool little project.

Basically you'd start your web app, then run something like:

$ static-render http://localhost:3000

This would create a static copy of your site — to ./dist by default — ready for deployment.


ysm-dev commented 4 years ago

It's a bit different, but I saw a similar project monolith. Take a look. :)

stuartpb commented 4 years ago

I had an idea for a tool like this a while back that I planned to implement in Node.js, called "wjet" - if you implement this in Go, what do you think of calling it "wgot"?

tj commented 4 years ago

Definitely open to name ideas, I have none haha. It's more or less working, I just need to make it a bit nicer and I'll push a repo. With zero optimizations it renders around ~7000 pages per second on my machine

tj commented 4 years ago

still needs some polish but here we go! https://github.com/tj/staticgen