10 ms·
Show HN: Pgs.sh – A zero-install static site hosting service for hackers
- jrnkntl 3y agoIs this fronted by a CDN? Or where is the content served from? I can't find any mention of it in the FAQ or the services description.
- qudat 3y agoHi! It's hosted on oracle in a VM for now. When we scale this out we will provide multi-regions and a "real" CDN.
- tonyoconnell 3y agoVery clever. Good luck with your venture
- abound 3y agoVery cool! Seems like a similar aesthetic to Sourcehut: open-source, written in Go, a collection of tools geared for hacker-types. There's even some overlap with the paste bin and static site hosting.
- bogwog 3y agoLooks cool. Does this offer/have plans to offer server side analytics? Many places offer free static hosting already, but as far as I know none of them offer even basic insights into site traffic.
- qudat 3y agoSite analytics is on the very short list! Thanks for reaching out!
- mminer237 3y agoNetlify offers server-side analytics for $9/mo.
- superkuh 3y agoNetlify also offers unlimited billing per DDOS like yesterday's story about the guy charged $100,000+ for his free tier netlify account. https://old.reddit.com/r/webdev/comments/1b14bty/netlify_just_sent_me_a_104k_bill_for_a_simple/ https://old.reddit.com/r/webdev/comments/1b14bty/netlify_jus... Good time to offer alternatives.
- avarun 3y agoNetlify confirmed the person affected was fully refunded, so this is misinformation at this point.
- zipping1549 3y agoWasn't without some serious hassle that is.
- fetzu 3y agoTechnically he was not refunded (because he never paid), what they did was reduce the bills multiple times and then finally waived the bill (“manually”) when it blew up on Reddit/HN. So it is absolutely not “misinformation” that they could bill you 100’000+ kUSD for traffic on a “free static site”, the misinformation is rather that they might cancel your bill (because it’s “their unwritten policy” and that means nothing more than a 7 year old’s pinky swear).
- cloverich 3y agoTo add on to the other replies, the thing missing there and in most (all?) cloud hosting services is a way to say "Never charge me more than X, no matter what." I think it is the thing that stops many a hobby project from starting.
- XCSme 3y ago> Never charge me more than X, no matter what. Doesn't defeat the purpose of "cloud" and its auto-scaling feature? What if you get featured on HN?
- captn3m0 3y agoAre there any bandwidth limitations?
- qudat 3y agoWe are on oracle, so we get 10TB / mo included. If we hit that point collectively then we will start charging.
- cckk 3y agolooks very cool prob a dumb q, but why is this geared specifically for hackers?
- antoniomika 3y agoMost of the services we've developed at https://pico.sh https://pico.sh are more-so geared to "power users". It was difficult to quantify that in a single word so hackers is where we landed. Being users of HN ourselves, it felt like the right term but any pico.sh service is open to anyone!
- jsheard 3y agoSlight nitpick: the set of allowed web formats is missing AVIF, which is supported across all evergreen browsers now.
- antoniomika 3y agoThanks for the feedback! This should definitely be supported so we'll get on fixing that!
- qudat 3y agoThanks for the feedback! We deployed a change to support avif: https://github.com/picosh/pico/commit/570514201d926a664c88cb12e1060d1f0032d332 https://github.com/picosh/pico/commit/570514201d926a664c88cb...
- detuur 3y agoCan we add jxl to that list? Doesn't have nearly as wide support but you could be part of a turning tide.
- alias_neo 3y agoMy preferred way to deploy my websites is to push the changes to git and have a web hook handle a deployment. I don't see anything about web hooks being supported, that'd be pretty nice since version control is pretty much a non-negotiable, zero extra steps is the winner.
- antoniomika 3y agoWe don't presently have webhooks, but do have a GitHub action for this (https://github.com/marketplace/actions/pgs-action https://github.com/marketplace/actions/pgs-action). The goal was to make it easy to deploy using off the shelf tools and not require anything to be installed for usage. I could see us thinking about making this a feature/addon down the road.
- alias_neo 3y agoThe Github action is probably good enough if one is happy/willing for Github to hold the SSH private key to access their site. I see your point about not wanting to add extra tools; can I ask what you use for serving the sites? I've used things like Caddy server in the past to do things like generating the static site from my Markdown with Hugo, but I currently use "Apps" on Digital Ocean which uses web hooks to detect commits and deploy my Hugo static sites.
- antoniomika 3y agoWe do use Caddy, but just for reverse proxying and handing TLS. We utilize custom http/ssh servers on the backend to handle everything. All of our work is open source and we do development in the open / discuss features over IRC on Libera. You could self host pgs if you wanted! Here's the repo: https://github.com/picosh/pico https://github.com/picosh/pico
- alias_neo 3y agoThanks for the info, that's really cool to hear! I'll check it out.
- _ZeD_ 3y agomy dyslexic eyes made me think of a shell script to watch Paris Saint-Germain matches
- dang 3y agoRelated: Show HN: Pgs.sh – A zero-dependency static site hosting service for hackers - https://news.ycombinator.com/item?id=37392013 https://news.ycombinator.com/item?id=37392013 - Sept 2023 (38 comments)
- memset 3y agoThis is really cool! I just uploaded my documentation site that I'm working on. Some quick feedback: - The "ssh to create account" is cool and I'm thinking of copying this idea. Can you share other feedback you've gotten, is this something people find intuitive? - The UI for creating an account was slighly non-intuitive: I didn't realize that i could just start typing my username since there wasn't a cursor and there was a default name. It also didn't work very well in the vscode terminal. - I will probably forget my username. When I exit after creating an account, the contents of the window are lost so I can't even scroll back to write it down. Honestly I'd gladly give my email address (I realize that you're probably intentionally not requiring it but it is an easy thing for me to give if I actually want to use the service.) - Uploading the site worked but finding the right URL was a challenge. I was able to run the rsync command but it took me a while to figure out what exactly my URL was. I was able to look at the rsync output and conjure that my URL is https://jayhotswap-scratchdata.pgs.sh/public/ https://jayhotswap-scratchdata.pgs.sh/public/ - It would be nice if sshing into pgs.sh told me what my sites were. - I totally respect your pricing at $20/month. Unfortunately - like slices of NYC pizza - static hosting is super super cheap and I'd pay on the order of $5/month or less for it. Anyway, this is really cool, love that you're building open-source software in go (as I am) that simplifies the entire setup process. Definitely going to copy some ideas here around simplicity!
- detuur 3y agoThe pricing is $20/year if I'm not mistaken.
- memset 3y agoAh, I missed that! I'm reminded of when we bought floor tiles for our home. Some are priced per piece, and others per sq foot. You can imagine our shock when we loaded up the cart and our bill was astronomical. Feedback-wise: I'd emphasize the year part because it's easy to gloss over it since I assume monthly. Maybe "$20 annually"?
- antoniomika 3y agoThanks for the feedback and trying things out! - We like the "ssh to create an account" idea too. Makes it easy to confirm a user's identity which is nice and uses tried and true auth/encryption methods. Feedback has been good overall for the experience, main issue is managing account reset methods as that is a bit difficult. - Noted on the account signup UI, we'll look into how we can work on making that cleaner (a blinking cursor is probably a good start). - Once you signup, you can actually ssh to pgs without any username set and it will find the account for the public key used on signup. - The site URL is a bit hard to deal with when uploading multiple files. We'll think of how to make this more clear. - There's a "cli" based workflow with pgs. You can list your sites with `ssh pgs.sh ls`, you can replace `ls` with `help` for a list of other commands. We want to move away from the TUI a bit and have commands that are easy to be scripted. - $20/year :) Thanks again for all of the feedback, always appreciated!
- dr_dimitru 3y agoLove the idea and developer/hacker-centric UI/UX; Very clever approach with authentication via SSH keys, hope you will find a way to provide account recovery; IMHO prompting email verification as second factor and recovery option is something users used to (just don't send short-code/pin asking to enter it, old-school links would always work; or leave it as an option receive link or code)
- mcapodici 3y agoThat is very neat! Seems like a lot of thought went into how this works, from the user's point of view. And $20/y is a good price point, you could then go higher for heavy users. Pro tip: cut off sites that get DDOS, rather than send them a $100k bill :-).
- mleonhard 3y agoI'm interested in using pgs.sh or prose.sh to host a service status page. What datacenters do you use?
- 38 3y ago25MB is low enough to prevent me from even trying it. Should be at least 100, cmon.
- qudat 3y agoHey everyone! We are excited to announce that pgs.sh is now generally available and happy to answer any questions about the tech involved.