ar.al🌻 · @aral
25014 followers · 19524 posts · Server mastodon.ar.al

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.

šŸ¤”

#prototyping #SmallWeb #NodeKit #js #javascript #svelte #htmx

Last updated 3 years ago

ar.al🌻 · @aral
25014 followers · 19524 posts · Server mastodon.ar.al

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?

#design #NodeKit #prototyping #htmx

Last updated 3 years ago

ar.al🌻 · @aral
25014 followers · 19524 posts · Server mastodon.ar.al

Just moved NodeKit over to @codeberg from G****b.

Old: github.com/small-tech/nodekit

New: codeberg.org/nodekit/app

Will be moving all my other currently active projects over as well in the coming days.

#hosting #git #github #codeberg #NodeKit

Last updated 3 years ago

ar.al🌻 · @aral
25014 followers · 19524 posts · Server mastodon.ar.al

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/

#dev #web #NodeKit #deno #nodejs #bun #javascript #js

Last updated 3 years ago

ar.al🌻 · @aral
25014 followers · 19524 posts · Server mastodon.ar.al

Anyone fluent with tree sitter grammars (and/or LSPs) want to help me with implementing NodeKit (github.com/small-tech/nodekit) code intelligence for Helix editor?

github.com/helix-editor/helix/

#dev #editor #helix #treesitter #lsp #languageServerProtocol #SmallWeb #smalltech #NodeKit

Last updated 3 years ago

ar.al🌻 · @aral
25014 followers · 19524 posts · Server mastodon.ar.al

Node’s built-in error reporting leaves a lot to be desired so I just spent some time improving the error output for NodeScript runtime errors in Nodekit (github.com/small-tech/nodekit#)

#smalltech #SmallWeb #NodeKit

Last updated 3 years ago

Ryuno-Ki · @RyunoKi
574 followers · 12542 posts · Server layer8.space
ar.al🌻 · @aral
25017 followers · 19526 posts · Server mastodon.ar.al

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/

#smalltech #SmallWeb #NodeKit

Last updated 3 years ago

ar.al🌻 · @aral
25017 followers · 19526 posts · Server mastodon.ar.al

Yay! WebSocket routes (and the simple chat example) are working again too :)

#refactor #smalltech #NodeKit

Last updated 3 years ago

ar.al🌻 · @aral
25017 followers · 19526 posts · Server mastodon.ar.al

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 :)

#server #nodejs #smalltech #NodeKit

Last updated 3 years ago

ar.al🌻 · @aral
25027 followers · 19526 posts · Server mastodon.ar.al

Yesterday’s NodeKit demo made me realise how much I want some sort of hot module reloading in NodeKit sooner rather than later. So, first step, you gotta map your dependencies… ;)

āœ… Step 1

#NodeKit

Last updated 4 years ago

ar.al🌻 · @aral
25026 followers · 19526 posts · Server mastodon.ar.al

#NodeKit #SmallWeb

Last updated 4 years ago

ar.al🌻 · @aral
25026 followers · 19526 posts · Server mastodon.ar.al

And when I say ALL the code, I mean ALL the code. That’s the only file in the project.

You run the project by running NodeKit:

nodekit

That’s it. No build stage, no configuration, nothing.

#NodeKit #SmallWeb

Last updated 4 years ago

ar.al🌻 · @aral
25026 followers · 19526 posts · Server mastodon.ar.al

This is ALL the code you need in NodeKit to create a server-side rendered STREAMING view of your Mastodon public timeline.

Join us at 5PM UTC today to see me recreate this live on Small Is Beautiful.

owncast.small-web.org

#NodeKit #SmallWeb

Last updated 4 years ago

ar.al🌻 · @aral
25026 followers · 19526 posts · Server mastodon.ar.al

And when I say ALL the code, I mean ALL the code. That’s the only file in the project.

You run the project by running NodeKit:

nodekit

That’s it. No build stage, no configuration, nothing.

#NodeKit #SmallWeb

Last updated 4 years ago

ar.al🌻 · @aral
25025 followers · 19526 posts · Server mastodon.ar.al

#SmallWeb #dev #NodeKit

Last updated 4 years ago

ar.al🌻 · @aral
25027 followers · 19527 posts · Server mastodon.ar.al

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.

#web0 #SmallWeb #NodeKit

Last updated 4 years ago

ar.al🌻 · @aral
25027 followers · 19527 posts · Server mastodon.ar.al

So I just got this running. This is all the code you need to display a basic fediverse public timeline using NodeKit right now.

(If you remove the CSS, that’s 31 lines. That’s it. That’s the WHOLE APP!) :)

#web0 #SmallWeb #NodeKit

Last updated 4 years ago

ar.al🌻 · @aral
25027 followers · 19527 posts · Server mastodon.ar.al

First rule of creating something simple for others: you need to take the complexity hit yourself. *returns to rummaging through the internals of V8 virtual machines and Node ESM Loaders…*

#itsGoingToBeWorthIt #NodeKit #fml

Last updated 4 years ago

ar.al🌻 · @aral
25027 followers · 19527 posts · Server mastodon.ar.al

Node’s (experimental) VM Module functionality is awesome. Just rewrote the NodeScript feature in NodeKit to use it (and replace my initial ā€œwrite to file system and importā€ hack).

What’s NodeKit?

ar.al/2022/01/26/nodekit-updat

#web0 #SmallWeb #NodeKit

Last updated 4 years ago