photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

244
active users

#NodeKit

0 posts0 participants0 posts today
Continued thread

Right, thanks to your feedback, this is what the “hello, world” would look like in htmx versus the equiavelent of what I have now in Svelte.

But there’s one big drawback to htmx… no ES modules and thus no components. That’s a biggie.

🤔

Continued thread

Question to JavaScript folks who have experience with Node.js… how does the following (theoretical) code listing for a server-side route that renders an index page with a count that’s persisted in memory on the server and updated any time someone loads the page read to you?

Bun (a new JS runtime ala Node.js and Deno) sounds interesting. Not least of all because it doesn’t use V8.

(I can’t use it for NodeKit at the moment as it doesn’t support custom ESM loaders but I’ll be keeping an eye on it.)

bun.sh/

BunBun — A fast all-in-one JavaScript runtimeBundle, transpile, install, and run JavaScript & TypeScript — all in Bun. Bun is a new JavaScript runtime with a native bundler, transpiler, task runner, and npm client built-in.
#js#javaScript#bun

Phew, finally merged my “major refactor” NodeKit branch into main. The previous main branch is now archived in the prototype branch.

Only production mode is functional right now but it’s a maintainable codebase (not like the jumble the prototype was as I was working to get things working for the first time).

Also: So. Little. Code. 😍

Now to add more tests and the development mode server functionality as I go.

Yay, progress! :awesome:👍

github.com/small-tech/nodekit/

GitHubGitHub - small-tech/nodekit: A Small Web server.A Small Web server. Contribute to small-tech/nodekit development by creating an account on GitHub.

w00t, just got the major refactor branch of NodeKit (github.com/small-tech/nodekit) running the Hello Count example for the first time.

Been refactoring the hell out of NodeKit recently to take it from prototype to maintainable app.

Nice to have a little win.

Now to find all the other things that are no doubt broken :)

GitHubGitHub - small-tech/nodekit: A Small Web server.A Small Web server. Contribute to small-tech/nodekit development by creating an account on GitHub.
Continued thread

By the way, when I say that’s all the code. I mean that’s ALL the code in the whole project:

github.com/small-tech/nodekit/

Run `nodekit` on that folder, get the result in the browser.

No scaffolding. No configuration. No bundlers.

GitHubGitHub - small-tech/nodekit: A Small Web server.A Small Web server. Contribute to small-tech/nodekit development by creating an account on GitHub.