HNHacker News
TopNewBestAskShowJobs

kmf

821 karma · joined January 5, 2012

Man in the arena.
submissionscomments
kmf··on Containers are available in public beta for simple, and programmable compute
(I work at Cloudflare) We shipped a Containers 101 video today showing how to get up and running. YT: https://www.youtube.com/watch?v=oyOaxMY4eNo
kmf··on Ask HN: Share Your YouTube Channel
Programming tutorials, mostly JS/webdev: https://youtube.com/@CodewithKristian

Haven’t uploaded for a bit but just set up the new studio and hoping to begin again in the next month or so.

kmf··on How to set up a blog with Hugo and Cloudflare, and why you should
Hey, I’m on Cloudflare’s Developer Advocacy team — this is a top priority for the Pages team right now and big improvements to the build time are being actively worked on!
kmf··on Issues with Cloudflare Images
Wow, this looks so awesome! Really simple UI too — gonna have to give this a try. I was just struggling with some client-side image upload stuff last week, and I love the idea of doing the full service integration from client to backend as a product.

BTW - I’m part of the dev advocate team at Cloudflare, would you want to chat sometime about your experience with Images? Definitely would love to hear your perspective as a dev on what could be better!

kmf··on An Open-Source CMS on the Cloudflare Stack
The code is on GitHub: https://github.com/cloudflare/production-saas
kmf··on Netlify raises $105M and acquires OneGraph
Pages has actually been GA since April of this year[1] - since then, we've released support for deploy hooks, redirect/custom header files, GitLab support, and as you mentioned above, a Workers function integration.

We have a really excellent team building Pages, and we still think there's a lot of unexplored territory around Pages/Jamstack and how it interacts with serverless and edge functions. Exciting times!

[1]: https://blog.cloudflare.com/cloudflare-pages-ga/

kmf··on Automatically generating types for Cloudflare Workers
The story around types in Workers should be leaps-and-bounds better than it was a few months ago (thanks to the work outlined in this blog post) - would love to hear your thoughts on this new work, and hope it helps!
kmf··on Durable Objects now Generally Available
Quick plug I'll drop in here (I manage Cloudflare's Developer Advocacy team) - in addition to Durable Objects reaching GA, we also released a great open-source codebase today to help scale your Durable Objects-based projects.

It has built-in sharding and communication between connections/shards - basically how we would recommend people build with DO if they want to hit the ground running.

Check it out on GitHub! https://github.com/cloudflare/dog

kmf··on Cloudflare Pages is now Generally Available
kristian from pages team here - just DM-ed you, let's get this sorted!
kmf··on Ask HN: Cheapest/easiest way to host a static site?
> With pages.dev, I believe, you pay per every domain you host

nope, we do unlimited sites on pages! here's the free plan [1]:

> 1 build at a time

> 500 builds per month

> Unlimited sites

> Unlimited requests

> Unlimited bandwidth

you can upgrade to the pro ($20/mo) or business ($200/mo) plans for more concurrent builds and builds per month. still not priced per domain or site!

[1]: https://pages.cloudflare.com/#pricing

kmf··on Ask HN: Cheapest/easiest way to host a static site?
hey, kristian from the workers team here - i wrote these docs, so this is good feedback :)

we don't have any plans to get rid of workers sites! but we do think that for most people deploying static sites, pages is a better fit than workers sites.

when we do talk about the future of pages versus workers sites, we're generally talking about making it easier to deploy serverless functions /with/ your pages sites - providing better tooling and DX around that is a super high priority for us.

the interplay between workers serverless functions and static asset serving via workers sites is still a really strong use case (and IMO a thing that workers is uniquely capable of doing) that we don't have any plans to shelf. again, i wrote the docs here so this is on me if it came across as "we're getting rid of workers sites" - i'll take a shot at improving these docs and helping clarify that next week!

kmf··on Ask HN: What (side-)project are you working on?
Bytesized - my newsletter deep diving into a software topic every week: https://www.bytesized.xyz/

The YouTube channel of the same name, trying to keep my streak of weekly videos going through the end of this year: http://youtube.com/c/bytesizedxyz

Jobs in DevRel, my job board for developer relations: https://jobsindevrel.com

kmf··on Ask HN: What are you working on?
Working on https://jobsindevrel.com, a job board for developer advocates and devrel jobs.

I haven’t officially launched it yet, but starting to build up the Twitter (https://twitter.com/@jobsindevrel) and the mailing list so that when there is some actual traffic coming in, it should (ideally) be profitable pretty quickly. Hoping to launch this month!

kmf··on Ask HN: What's a side project you built to make money that hasn't?
Working on https://jobsindevrel.com, a job board for developer advocates and devrel jobs. So far it’s only cost ~$310: $300 for a nice lifetime deal on the job board software and $10 for the domain.

I haven’t launched it yet, but starting to build up the Twitter (https://twitter.com/@jobsindevrel) and the mailing list so that when there is some actual traffic coming in, it should (ideally) be profitable pretty quickly. Hoping to launch next month!

kmf··on Cloudflare Pages: the best way to build JAMstack websites
hey, dev advocate for workers here!

you can definitely do something similar with workers sites.

we recently added workers kv - the storage mechanism behind workers sites - to our free workers tier, so you can host your static sites on workers for free as well.

pages is an evolution of that with better tooling/dx for people who want to get a static site up on our network and want things like deploy previews and pre-configured github integration.

if you want to just have workers do the hosting and want to do all the CI stuff yourself, you can use something like wrangler-action[1] to simplify the process on github actions, or just install wrangler[2] (our CLI) as part of your CI workflow and do `wrangler publish` at the end.

i wrote our github action, so if you decide to go that route, happy to help debug or look over the project to make sure it'll do what you want - i'm @signalnerve on twitter, DMs are open :)

[1] https://github.com/cloudflare/wrangler-action

[2] https://github.com/cloudflare/wrangler

kmf··on Cloudflare Pages: the best way to build JAMstack websites
thanks steve :) <3
kmf··on Craigstarter: DIY Replacement for Kickstarter
Not parent commenter, but Ghost is a pretty great way to “own your stack” - custom domain, software is open-source, supports paid memberships, and it can send blog posts as newsletters. (No association with Ghost either - just a happy user)

I wrote a blog post on how to accomplish a Stratechery-style newsletter/blog with paid memberships on my blog[1] — you can hook into Zapier so there’s lots of opportunity to build a full community around Ghost’s built-in membership system, in case you want to send Slack invites, add them to a Mailchimp newsletter, etc.

[1]: https://www.mailinglisthackers.com/creating-a-member-support...

kmf··on Slack Is Fumbling Developers
agreed on all of this - Slack is really tough to build a community on top of! Kurt’s quote in that post is very true; the moderation/role stuff in Discord makes it super appealing for building any sort of large community.

i’ve been working on a new discord server for people building mailing lists[1] and newsletters and built out an opt-in software channel section where people can opt into #mailchimp, #convertkit, etc. channels without any sort of moderation/admin input needed. it’s a really nifty “self-serve” thing that i’m pretty sure i wouldn’t have been able to pull off with slack.

fully expecting “discord communities-as-product” to be a big thing over the next few years as they’ve built a great platform to do that sort of thing.

[1]: https://www.mailinglisthackers.com/chat

kmf··on Show HN: User authentication at the edge using Auth0 and Cloudflare Workers
hey hn! i'm the author of this tutorial, here to answer any questions.

as i wrote on twitter [1] i'm super excited about complex and interesting stuff like user authorization/authentication on the edge, and this tutorial was written after doing some explorations on that front over the last few months.

i'm particularly excited about one of the later parts of the tutorial, which shows how to take user info from auth0 and inline it directly into your application using Cloudflare Workers' streaming HTML rewriter. it's a very cool way to dynamically inject data into your static applications at the edge!

[1]: https://twitter.com/signalnerve/status/1266023600718520321

kmf··on GitHub Actions: Organization secrets
this is a really awesome improvement - a bunch of my projects all deploy w/ actions using the same api token to cloudflare workers (using wrangler-action[1]), so this makes it super easy to add new projects or re-roll the key without having to go in and change each project's config.

btw, if you're looking for an intro to github actions, i put out a video last december covering publishing your first github action workflow: https://youtu.be/J4EhgEskSZA

[1]: https://github.com/cloudflare/wrangler-action

kmf··on Byteconf React, remote React.js conf, streaming on YouTube [video]
Day two of Byteconf React, a free remote React.js conference, is streaming on YouTube now!

The full schedule is available here; https://news.ycombinator.com/item?id=23052564

Join us in the live chat to hang out with other attendees!

kmf··on Show HN: Byteconf React, free remote React conf streaming on YouTube [video]
hey all! byteconf is a two-day remote React conference streaming for free on youtube. ton of great speakers – kent c. dodds, ali spittel, shawn wang, and many others. we're about halfway through day one and the reception so far has been awesome. tune in!
kmf··on Tailwind UI has made over $500k in sales in its first three days
+1 on all of this. refactoring ui is an awesome resource for developers who want actionable ways to improve their design skills, was a must-buy for me.

in the same way, tailwind UI has been really useful over the last week since i bought it. some of the integration stuff isn’t ideal - you have to copy-paste huge snippets of code w/ alpine.js code you need to manually remove - but overall i’ve already found it to be useful to help me get unstuck on designing my apps.

i made a little vid on my channel about getting started with tailwind ui if anyone wants to see what it looks like in practice: https://youtu.be/quhvuOTlrwA

(note that since then i’ve added a lot more of the components in this project: my feedback has stayed pretty consistent, and i think some of the copy-paste problems are easily solvable)

kmf··on Persisting React State in LocalStorage
this is great - i implemented something similar in a recent project, where we have some state being persisted "at the edge" (in cloudflare workers' key-value store product, workers kv) and cached in-browser using local storage. we wrote a bit about it here[1], though our approach[2] has changed a bit even since this post went out.

instead of directly interfacing with window.localStorage, we opted to use lscache[3], which allows us to expire keys: `lscache.set(key, value, 5)` (expires in 5 minutes)

[1]: https://blog.cloudflare.com/jamstack-at-the-edge-how-we-buil... [2]: https://github.com/cloudflare/workers.cloudflare.com/blob/ma... [3]: https://github.com/pamelafox/lscache

kmf··on GitHub Actions is my new favorite free programming tool [video]
hey, thank you so much! I’m super proud of it, been trying to improve every aspect of my vids from scripting/storyboarding, recording, editing, etc - I think it all really came together well here!
kmf··on Cloudflare Workers
Hey - developer advocate for Workers here. Thinking a lot about this right now, prototyping a few ideas too. If you have ideas, happy to chat: kristian@cloudflare
kmf··on Cloudflare CTO: “If we did [take on GitHub] what features would you like?”
FWIW, our Workers product is pretty good at allowing you to define custom caching rules. We have a section in the Workers docs specifically focused on the Cache API: https://developers.cloudflare.com/workers/reference/cache-ap...

If that doesn’t help you build what you’re looking for, happy to chat via email and hear more about what you need: kristian@cloudflare

kmf··on I'm concerned with the move that FreeCodeCamp just pulled by leaving Medium
One thing mentioned in Ben’s post that’s worth talking about explicitly: if you add a post to Medium using their import feature, Medium will set the canonical URL to your original URL. This meant that when if you imported a post from your personal blog and submitted it to FreeCodeCamp, you’d get a big SEO benefit: your post was shared on one of the biggest Medium publications, but any backlinks and ranking boosts would apply back to your original post, on your website.

As part of this migration, FreeCodeCamp has removed canonical URLs from submitted posts - your original post is now competing with freecodecamp.org, and Google (and other search engines) is going to do a duplicate content check. Considering that FCC is in the top 2000 sites in the world according to Alexa[1], there’s a _strong_ chance your site will be penalized. This is a big deal for authors.

[1]: https://www.alexa.com/siteinfo/freecodecamp.org

kmf··on The Lost Futures of Mark Fisher
Capitalist Realism is an incredible read. Since discovering him just a couple years ago, his ideas and his work have impacted me probably more than any other cultural/political theorist has. His death was a real loss, but his work is more vital than ever. Can’t recommend his work enough, and I’m excited to have seen his name pop up a couple times on HN over the last few days.
kmf··on Diving into Technical SEO Using Cloudflare Workers
Yes, it's a super rad product. Using it for a few things, so far:

1) Working on a project right now that provides edge-level analytics for your sites w/ a focus on privacy: more accurate than Google Analytics (JS blockers remove ~1/3 of your traffic stats) and less icky for your users. Funny this comes up, I'm putting together a list for people who are interested in beta testing, if that sounds appealing: https://xyz.us16.list-manage.com/subscribe?u=0b8a0e873d096aa...

2) Extreme caching on a Wordpress site – using Cloudflare's edge cache WP plugin[1] and the worker from the workers-example repo[2] – currently at a 97% cache hit rate across the site.

update: just double-checked the cache hit stat on Cloudflare, after writing this comment - actually have a 99.95% cache rate as of today (!)

[1] https://wordpress.org/plugins/cloudflare-page-cache/

[2] https://github.com/cloudflare/worker-examples/tree/master/ex...

Page 1 of 4Next →