r/javascript • • 9h ago

Template engine EJS vs Eta for a new Node.js project with SSR(don't want to use NextJS), which to choose?

Thumbnail npm-compare.com
4 Upvotes

Hi,
I am about to start a new project with SSR (Node.js); previously, I have used ejs/handlebars. Currently, I am not very familiar much eta.

eta claims to be faster than ejs, anyone worked with both?

Highly appreciate your suggestions/comments.

ejs: https://www.npmjs.com/package/ejs
eta: https://www.npmjs.com/package/eta

Thanks


r/javascript • • 3h ago

AskJS [AskJS] Good resources for using JS/TS for simple real-time multiplayer games/interfaces, web-based?

3 Upvotes

I have designed a game in real life and thought of creating a very simple online version of it so I can play it with more people at any time. I don't have much experience with JS, just basic webpage functionality, though I have a lot of experience with programming in general.

The game is not very complicated in terms of mechanics, just turn-based in a real-time updating board and I'd probably be looking to something similar to what chess websites implement, if not an identical implementation. I'd just like resources related to designs I could get "inspiration" from and how the web clients would communicate with the server. I do not want to use automated assistance.


r/javascript • • 22h ago

KernelPlay JS v0.6.0 Released — Modular Architecture, Universal Renderer Cores & Decoupled Physics!

Thumbnail github.com
2 Upvotes

I'm excited to announce that KernelPlay JS v0.6.0 is officially released!

This update introduces an important architectural shift toward a more modular engine, focusing on decoupling the Renderer and Physics systems.

Here's what's new:

1. Universal Renderer Architecture

Previously, switching rendering pipelines could require developers to replace generic components such as `BoxRenderer` with pipeline-specific components like `PixiBoxRenderer`.

With the new architecture, universal components can work across all supported rendering pipelines without requiring developers to manually switch rendering components.

This makes changing renderers much easier and keeps game logic independent of the rendering pipeline.

2. Decoupled Physics Engine Core

Physics logic has now been moved into a separate Physics Engine Core.

The default physics engine remains integrated and ready to use, but the new structure makes it possible to plug in custom physics engines.

This gives developers more flexibility over how physics is handled in their projects.

3. Future Physics Plugins

We're also planning to expand the plugin ecosystem.

High-end physics engines such as Matter.js will be available as separate plugins in the future. They won't be bundled into the core engine, helping keep KernelPlay JS lightweight.

4. Official TypeScript Support

This release also introduces official TypeScript support through `.d.ts` declaration files.

Developers can now benefit from type information, better editor support, and autocomplete when working with KernelPlay JS in TypeScript projects.

---

This architectural change is a major step toward making KernelPlay JS more flexible, modular, and lightweight.

There's still a lot planned for the project, and I'd love to hear your thoughts.

What do you think about this new modular architecture? Would you be interested in building custom renderer or physics cores?

Thank you to everyone following and supporting KernelPlay JS!


r/javascript • • 13h ago

LazyPromise: an async primitive that has familiar semantics of a native promise, but supports auto-propagating cancellation, type-safe errors, and dependency injection

Thumbnail lazypromise.com
0 Upvotes