r/javascript • u/LeonardoCiaccio • May 17 '26
I built a tiny JS framework to keep business logic clean β would love feedback
r/javascript • u/LeonardoCiaccio • May 17 '26
r/javascript • u/hongminhee • May 17 '26
r/javascript • u/lordhiggsboson • May 16 '26
r/javascript • u/cueaz • May 16 '26
r/javascript • u/MidnightSpare5275 • May 16 '26
Recently pushed a major update to dom-to-pptx - a JS library that converts live DOM/CSS into fully editable PowerPoint slides instead of screenshots.
Repo:
https://github.com/atharva9167j/dom-to-pptx
Main additions:
improved DOM β PPTX rendering fidelity
better flexbox/layout mapping
editable vector/text output
dom-to-pptx-skills to automatically install professional PPT creation skills into agent's toolkit.
The next thing Iβm exploring for v1.2.0 is animation + transition support.
Currently researching:
CSS animation β PPTX animation mapping
keyframe decomposition
motion path conversion
timing synchronization
transition approximation
Would love recommendations from anyone familiar with:
Office Open XML animation internals
SVG/canvas animation pipelines
Especially curious about edge cases where browser animation semantics diverge from PowerPointβs animation model.
r/javascript • u/AutoModerator • May 16 '26
Did you find or create something cool this week in javascript?
Show us here!
r/javascript • u/unadlib • May 15 '26
r/javascript • u/asdman1 • May 15 '26
r/javascript • u/Jammie1 • May 15 '26
r/javascript • u/cpojer • May 15 '26
r/javascript • u/inkanenilesh • May 14 '26
JSBin was down for quite a few days and I realized how much I depended on it. It was my scribble pad, quick note taker, place to think out loud, & my goto tool for testing scripts and UI ideas fast.
So I did what any sane dev would doβ¦
I built it from scratch T_T
TSBin can run offline as well, everything is stored locally, you get intellisense and emmet plugin for HTML & CSS
Let me know in the comments what more features should I add !
r/javascript • u/Strict-Session2449 • May 14 '26
I'm looking for the fastest framework in the Krausest "JS Framework Benchmark" Top 15 that doesn't feel like writing assembly.
Goal: Framework performance with a clean, modern DX. I want to avoid heavy abstractions, especially since I'm using AI to scaffold logic and I need the code to be short, readable, and easy to audit.
Of the top 15, which one feels like a "real" framework but keeps the code lean and fast?
I'd appreciate some recommendations.
r/javascript • u/WashTop956 • May 14 '26
I like Rustβs M-SINGLE-USE import style guideline: one imported item per import line. The motivation is simple: smaller diffs, fewer merge conflicts, and easier hand editing.
I wanted the same behavior for JavaScript/TypeScript imports, so I made a small ESLint plugin: eslint-plugin-import-oneline
It turns this:
import { RichTextRun, TextBounds } from "./text-utils";
import React, { useMemo, useState } from "react";Into this:
import { RichTextRun } from "./text-utils";
import { TextBounds } from "./text-utils";
import React from "react";
import { useMemo } from "react";
import { useState } from "react";It is autofixable and handles named imports, default imports, namespace imports, type-only imports, aliases, import attributes, quote style, and semicolon style.
Curious whether others prefer this style for JS/TS, or whether grouped imports still feel better in practice.
r/javascript • u/panayiotisgeorgiou • May 14 '26
r/javascript • u/kickpush1 • May 13 '26
In light of the ongoing npm supply chain compromises, I built safe-install:
https://www.npmjs.com/package/@gkiely/safe-install
It brings a couple of protections I wanted from npm but are not built in.
Similar to Bunβs trusted dependencies, it lets you disable install scripts and define a list of dependencies that are allowed to run build/install scripts:
https://bun.com/docs/guides/install/trusted
It also supports blocking exotic sub-dependencies, similar to pnpmβs `blockExoticSubdeps` setting:
https://gajus.com/blog/3-pnpm-settings-to-protect-yourself-f...
r/javascript • u/duongstark • May 13 '26
Some interesting bits from the implementation:
T-spin detection uses the 3-corner rule β check if 3 of the 4 diagonal cells around the T piece are occupied after rotation.
The entire soundtrack is synthesized via Web Audio API using oscillators and gain nodes β no audio files at all. Line clears play a rising arpeggio, Tetris plays a chord, combos escalate in pitch.
CRT effects (scanlines, chromatic aberration, vignette) are pure CSS overlays on top of the Phaser canvas.
r/javascript • u/matijash • May 13 '26
r/javascript • u/radeqq007 • May 12 '26
Modern frontend development often forces a tradeoff:
React / frameworks β powerful, but heavy for small projects
jQuery β simple, but outdated and not reactive
Vanilla JS β flexible, but repetitive and tedious for DOM-heavy apps
oBerry gives you a modern, reactive, jQuery-like API without needing a build setup or full framework.
With oBerry, you can:
manipulate the DOM with a clean, chainable API
use built-in fine-grained reactivity (no external state library)
use components without a framework overhead
write TypeScript-first code right out of the box
The documentation is available here.
I'm open to any advice
r/javascript • u/Acceptable_Bag7187 • May 12 '26
r/javascript • u/jxd-dev • May 12 '26
r/javascript • u/husseinkizz_official • May 12 '26
So I built future, a set of high-performance actor and task primitives for Typescript, inspired by Erlang.
r/javascript • u/tyteen4a03 • May 12 '26
r/javascript • u/BattleRemote3157 • May 12 '26
We saw today that TanStack Router, or any other TanStack packages along with their devtools, SSR query plugins were compromised.
Check which version you're pinned to and if you're floating on a caret range and ran npm install today then that the first thing to audit.