HNHacker News
TopNewBestAskShowJobs

cjr

583 karma · joined February 4, 2011

Founding developer at urlbox.com - screenshots as a service API YC S12 alum (Quillu/OctaveWealth) Previously bluebook academy
submissionscomments
cjr··on Show HN: Offrun – manage every coding agent from one workspace
And https://openrig.dev/
cjr··on The Ferrari of Espresso Machines Is Fueling a Hot Resale Market
Nice! Which one do you use most often?
cjr··on Used La Marzocco machines are coveted by cafe owners and collectors
Isn’t Kees van der Westen the ferrari of coffee machines?!
cjr··on Show HN: Achromatic – AI Ready Next.js 16 Starter Kit
Looks brilliant, well done! How about oRPC instead? And mikro-orm
cjr··on Show HN: WebTiles – create a tiny 250x250 website with neighbors around you
also reminds me of https://onemillionscreenshots.com

(full disclosure - my screenshot api takes the screenshots :) )

cjr··on Claude outage
Switch to codex? :)
cjr··on A stateful browser agent using self-healing DOM maps
document.elementFromPoint to get the elem at co-ordinates, then use npm package similar to optimal-select to come up with a unique css selector.
cjr··on New open-source React component library: Untitled UI React
Congratulations on the launch, this looks really nice.

I feel quite locked-in to Shadcn components now, especially after I found tweakcn.com.

Is there anything similar for untitled ui in the pipeline? A way to update the css variables and preview it across different components/layouts.

cjr··on Making Software
looks great, i'd definitely pay for a coffee table style version of a book like this!
cjr··on Show HN: An API that takes a URL and returns a file with browser screenshots
There are browser extensions you could run like consent-o-matic to try to click and hide the cookies from your screenshots:

https://chromewebstore.google.com/detail/consent-o-matic/mdj...

Otherwise using a combination of well-known class names, ‘accept’ strings, and heuristics such as z-index, position: fixed/sticky etc can also narrow down the number of likely elements that could be modals/banners.

You could also ask a vision model whether a screenshot has a cookie banner, and ask for co-ordinates to remove it, although this could get expensive at scale!

cjr··on How types make hard problems easy
nice post :)

I’m surprised there’s not been any mention of effect (http://effect.website/) yet, as it is kind of the next level up if you really want to model things like errors, dependencies and side effects in the type system, using functional concepts borrowed from more pure functional languages.

It would be a bit of a risk adopting this into a shared code base depending on your team and the kinds of devs you’re looking to hire, but it could be useful to some folk that feel like they want even more type safety.

cjr··on Kubernetes on Hetzner: cutting my infra bill by 75%
What about cluster autoscaling?
cjr··on Rewrite it in Rails
I'd say adonisjs[1] is the closest thing in TS land to rails. There's also sailsjs[2].

Neither are as trendy as nextjs/sveltekit etc, but those are not really comparable to rails.

[1]: https://adonisjs.com

[2]: https://sailsjs.com

cjr··on Ask HN: Best Tools for Monorepo?
This might be more suited to monorepos where all projects are in JS/TS, but check out https://onerepo.tools
cjr··on Multisatellite data depicts a record-breaking methane leak from a well blowout
3.93 megatons of CO2 is roughly equivalent to:

  • About 149,714 short-haul flights, or
  • About 37,429 long-haul flights.
cjr··on Developing Inside a Container (2022)
https://devspace.sh also gives a similar workflow but where the container is running in a remote k8s cluster
cjr··on Monolith – CLI tool for saving complete web pages as a single HTML file
No - we don't currently support this feature as nobody has asked for it so far :)

You could append a new meta tag by running some custom JS to add it, but we don't modify exif, metadata or pdf description at the moment.

cjr··on Monolith – CLI tool for saving complete web pages as a single HTML file
I work on a paid screenshot api[0] where we have features to either hide these banners and overlays using css, or alternatively we run some javascript to send a click event to what we detect as the 'accept' button in order to dismiss the popups.

It's quite a painful problem and we screenshot many millions of sites a day, our success rate at detecting these is high but still not 100%.

We have gotten quite far with heuristics and are exploring whether we can get better results by training a model.

[0]:https://urlbox.com

cjr··on FastUI: Build Better UIs Faster
Have you checked out https://kirimase.dev?
cjr··on Show HN: Pages CMS – A CMS for GitHub
This looks and sounds great...

I'm currently using contentlayer [https://github.com/contentlayerdev/contentlayer] to manage docs and blog content, mostly .mdx files on urlbox.com.

It works well with next.js but unfortunately is abandonware now.

I also have a few custom remark/rehype plugins.

You're right it is a pain to update articles buried in your repo especially with less technical team members. I already tried out TinaCMS to try and solve the editing issues, but their editor wasn't so nice, and it seemed to implicitly make a commit on every tiny change to any content, so I'm really hoping I could use something like this to edit my already existing content...

cjr··on Ask HN: Why do some YC companies keep posting the same job bi-weekly?
jerry, svix, lago etc.. clear growth hack :)
cjr··on Why a spritz of water before grinding coffee yields better results
Or removing the right sized bean to go from 18.1g to 18g
cjr··on A Node, TypeScript, TS-Node and ESM experience that works
Hard agree, especially with your first two paragraphs :)

The biggest tip I would add is to bin jest and start using vitest.

cjr··on Bare-Metal Kubernetes, Part I: Talos on Hetzner
Great write up and what I especially enjoyed was how you kept the bits where you ran into the classic sort of issues, diagnosed them and fixed them. The flow felt very familiar to whenever I do anything dev-opsy.

I’d be interested to read about how you might configure cluster auto scaling with bare metal machines. I noticed that the IP address of each node are kinda hard-coded into firewall and network policy rules, so that would have to be automated somehow. Similarly with automatically spawning a load-balancer from declaring a k8s Service. I realise these things are very cloud provider specific but would be interested to see if any folks are doing this with bare metal. For me, the ease of autoscaling is one of the primary benefits of k8s for my specific workload.

I also just read about Sidero Omni [1] from the makers of Talos which looks like a Saas to install Talos/Kubernetes across any kind of hardware sourced from pretty much any provider — cloud VM, bare metal etc. Perhaps it could make the initial bootstrap phase and future upgrades to these parts a little easier?

[1]: https://www.siderolabs.com/platform/saas-for-kubernetes/

cjr··on Error Handling Patterns
Very timely, was just trying to understand how to improve error handling with typescript recently and came across neverthrow (https://github.com/supermacro/neverthrow) which looks promising…
cjr··on What if ChatGPT was trained on decades of financial news and data?
interesting.. how would it explain bridgewater / ray dalio's track record etc?
cjr··on Forking Chrome to turn HTML into SVG
> figuring out how to set the page size to match what you see on the screen can be near-impossible

I run a little API that converts URLs and HTML into PNG/PDF/SVG.. MP4 too, and the quoted part resonates :)

I recently started delving into the chromium src code in order to try and figure out the reason why max-width media queries don't seem to trigger at the expected viewport/page width, when printing to PDF, but it is quite the rabbit hole.

When I saw html2svg the first thing I wondered was whether it would have the same issue as printing to PDF.

cjr··on Forking Chrome to turn HTML into SVG
ha, I'm also guilty of using this method on https://urlbox.io to power our SVG screenshots.

To be honest, it works quite well, but there are quite a few bugs in chromium's pdf rendering, especially when it comes to determining the correct page width to apply media queries to, which sometimes affects the accuracy of these SVG's.

cjr··on Forking Chrome to turn HTML into SVG
It's also possible to emulate screen media queries[0] so that the pdf output uses the regular screen css.

[0] https://chromedevtools.github.io/devtools-protocol/tot/Emula...

cjr··on Kinopio
it has very recently been acquired by fastly
Page 1 of 2Next →