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.
š¤
#htmx #svelte #javaScript #js #nodeKit #smallWeb #prototyping
#prototyping #SmallWeb #NodeKit #js #javascript #svelte #htmx
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
Just moved NodeKit over to @codeberg from G****b.
Old: https://github.com/small-tech/nodekit
New: https://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
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.)
#dev #web #NodeKit #deno #nodejs #bun #javascript #js
Anyone fluent with tree sitter grammars (and/or LSPs) want to help me with implementing NodeKit (https://github.com/small-tech/nodekit) code intelligence for Helix editor?
https://github.com/helix-editor/helix/discussions/2951
#NodeKit #smallTech #smallWeb #languageServerProtocol #lsp #treeSitter #helix #editor #dev
#dev #editor #helix #treesitter #lsp #languageServerProtocol #SmallWeb #smalltech #NodeKit
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 (https://github.com/small-tech/nodekit#readme)
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:š
Yay! WebSocket routes (and the simple chat example) are working again too :)
w00t, just got the major refactor branch of NodeKit (https://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
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
If you want to play with it yourself, I just checked in the code here:
https://github.com/small-tech/nodekit/blob/main/examples/streaming-fediverse-posts/index.page
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.
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.
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.
Introducing the NodeKit for Codium extension.
By the way, when I say thatās all the code. I mean thatās ALL the code in the whole project:
https://github.com/small-tech/nodekit/tree/main/examples/make-fetch-happen
Run `nodekit` on that folder, get the result in the browser.
No scaffolding. No configuration. No bundlers.
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
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?