Live data from Hacker News

Show HN: A text-only blog engine using Cloudflare workers and KV store

github.com

51–54 of 54 posts

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#51

This is nice, apart from a quick play when they were new I've never really looked at CF Workers and KV again. This made me go and have a look at the docs and find that it's actually looks quite useful. I didn't know they'd added Python and other languages, so that's cool in itself. I like Jon's example here, a single and fairly short file that does just enough to demo this all, nice.

I'm building a blog directory/reader/search engine [1] on Cloudflare Workers with D1 as the main database. Very pleased with the ecosystem, including Queues and scheduled jobs. DB migrations are simple, local development is a breeze (scheduled jobs don't work though, but there's a simple workaround), and the DB is an SQLite implementation. I am worried about vendor lock in, but as long as I keep the app relatively straight-forward, it shouldn't be a huge deal to migrate to some other Node or Deno backend.

[1] https://minifeed.net/

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#52
post #29

Earlier quoted context omitted.

I'd have thought the SQLite database (D1) would be a more obvious fit for a blog?

I was stoked on D1 when it was announced. But the maximum DB size is 10GB ( https://developers.cloudflare.com/d1/platform/limits/ ). Really?

Note that you can create up to 50,000 databases.

Re: Show HN: A text-only blog engine using Cloudflare workers and KV store

#53
post #31

I like it but not that enthusiastic about JavaScript echoing html. What about having simple html templates that call back to the worker for the posts and the worker return json?

So, have some JavaScript on the client side just to retrieve text and put onto the page? Seems like unnecessary complexity.
Post reply on HN