Better HN
topnewbestaskshowjobs
Log inSign up

ryanhefner

30 karma · joined Mar 26, 2012 (14y ago) · 17 submissions

Having fun, building stuff.

ryanhefner.com github.com/ryanhefner bsky.app/profile/ryanhefner.com

Building: opengraphs.com

Submissions

comment 7y ago · link · parent

Hi, Pkg Stats is a little tool that evolved from a quick day project that I threw together to help me monitor the downloads of my published packages. I wanted a way to easily scan how my packages were being used, and help me prioritize which of them I should focus on.

It was also an example project to help get my feet wet with Next.js + React for a client project that was on the horizon, so I decided to expand on it and make it more like a real project with various types of routing and endpoints.

The weird thing is, it’s now become my defacto way to search and browse packages while I’m working on projects since the data is condensed and surfaces more information, I can quickly see how popular and maintained a package is. I hope you find it as useful as I have.

2.

Show HN: Pkg Stats – NPM discovery and stats viewer(pkgstats.com ↗)

6 points · by ryanhefner · 7y ago · 1 comment

comment 7y ago · link · parent

Nice! I actually just released a Chrome extension that makes it really easy to render a grid–that includes a baseline grid–over any site. I hope others find this as useful as I have.

https://chrome.google.com/webstore/detail/grids-by-color-set...

comment 8y ago · link · parent

I’ve always loved this concept. I made this back in the day, kind of relevant. https://www.launchclock.co

comment 9y ago · link · parent

If you happen to have a product video in your site that has been formatted for a specific phone, you can make sure the container of the video is set as the same aspect ratio of the phone.

I also see the CSS as an add-on, the devices for me are more for reference, but I have used the CSS here and there for some of the Apple phones.

comment 9y ago · link · parent

On Product Hunt today, https://www.producthunt.com/posts/aspect-ratio!

comment 9y ago · link · parent

Thanks! Yeah, definitely going to be adding more devices and common resolutions.

comment 9y ago · link · parent

Also, I thinking that it could be handy to maybe default to the resolution/aspect ratio of the device visiting the page. Would that be handy?

comment 9y ago · link · parent

I'll be sure to add that as I expand the listing of devices/resolutions.

comment 9y ago · link · parent

Yeah, probably doesn't. I just found myself using it across a couple different projects and seemed like it would be easier than having to copy and paste it everywhere.

Also, it has a command line tool that you can use to get the aspect ratio from width/height. So, not just the code.

comment 9y ago · link · parent

Exactly.

comment 9y ago · link · parent

Thanks. Yeah, not really a "web service", just a reference tool, along with an NPM module you can use.

Also, I’ll be extending the device/resolutions listing, so hopefully it can be a handy reference for designers/developers.

comment 9y ago · link · parent

Yeah, that was the intention. Good to use for placeholder styling until the image/video has loaded. And for things like responsive embeds/iframes.

comment 9y ago · link · parent

Yeah, I need to beef up the devices/resolutions listing. What device(s) have 1920x1200?

comment 9y ago · link · parent

Yeah, this is really more of a reference and a tool when you’re comparing sizes and confirming they are the same aspect ratio without having to use code. There’s also an NPM module that will do the code part if you need to go that route.

comment 9y ago · link · parent

Whoops, just pushed up a fix. Just threw this together and didn't test it like I should have. Should be good now.

17.

Show HN: AspectRat.io – Aspect ratio calculator and device resolutions resource(aspectrat.io ↗)

35 points · by ryanhefner · 9y ago · 33 comments