r/javascript • u/ValerioAgeno • Aug 20 '24
r/javascript • u/Affectionate_Cow9359 • Feb 16 '26
I made a drop-in replacement for Mermaid.js that renders every diagram in isometric 3D
Swap one import and your flat Mermaid diagrams become isometric with floating shadows, smooth
pan/zoom, and fly-to animations.
- ~10 KB, zero runtime deps
- Pure SVG transform (no CSS 3D, no canvas) β stays crisp at any zoom
- All 11 diagram types supported
- All 5 Mermaid themes work
Live demo: https://sunnydark.github.io/mermaid-3d/
npm install mermaid-3d mermaid
Happy to answer any questions about the implementation.
r/javascript • u/fagnerbrack • Jan 02 '24
Was Javascript really made in 10 days?
r/javascript • u/Coffeephile • Sep 05 '16
help Is it me or is it a pure madness? - React ecosystem
Dont get me wrong, I like React, I even like Redux, but what i see is people are making the hot pile of shit out of it. I wanted to follow some standards, I thought that since React is hardly new that there are some standards by now but boy i was wrong. There are basically 2 kinds of boilerplates available, the first ones are just empty empty project with react imported (absolutely useless) and the second ones are some ((overengineered)2)2 Godzilla projects. Seriously, all i ever wanted was some kind of React + Router + maaaybe light Redux + simple testing + some internationalization, what I found was projects with 30 different config files, with some compiled internals, complicated APIs, many different levels of build and many different webpack configs, shitload of middleware config code, 250mb of libs. Thats just insane, i cant imagine anyone actually using it, i hope they will release final Angular 2 soon because i feel like React Ecosystem is a disgrace for sane web devs.
r/javascript • u/_Pho_ • Dec 25 '20
AskJS [AskJS] Mild intuition annoyance: Async and Await
This isn't a question as much as bewilderment. It recently occurred to me (more than half a decade into my JS career, no less) that the requirement of exclusively using await from inside async functions doesn't really make sense.
From the perspective of control flow, marking a function execution with await signifies running the function synchronously. In other words, making synchronous use of an (async) function requires wrapping the function in a manner which ensures the outermost executor is run asynchronously.
Of course it's this way because of "JS is for the web" reasons. Obviously traditional (Node) design patterns create ways around this, but it is counter intuitive on a procedural level..
Edit: some fantastic explanations here!
r/javascript • u/octavdruta • Apr 09 '15
JavaScript will lead a massive shift in enterprise development
r/javascript • u/cport1 • Jan 14 '26
The RAG Bot Problem: When AI Fetches Content Real-Time and how to catch them with Javascript
webdecoy.comr/javascript • u/afshinmeh • Apr 01 '26
Zerobox: Lightweight, cross-platform process sandboxing. Sandbox any command with file, network, and credential controls.
I'm excited to introduce Zerobox, a cross-platform, single binary process sandboxing CLI written in Rust. It uses the sandboxing crates from the OpenAI Codex repo and adds additional functionalities like secret injection, TypeScript SDK, etc.
Zerobox follows the same sandboxing policy as Deno which is deny by default. The only operation that the command can run is reading files, all writes and network I/O are blocked by default. No VMs, no Docker, no remote servers.
Want to block reads to /etc?
$ zerobox --deny-read=/etc -- cat /etc/passwd
cat: /etc/passwd: Operation not permittedOr with the TypeScript SDK:
import { Sandbox } from "zerobox";
const sandbox = Sandbox.create({
denyRead: ["/etc"]
});
await sandbox.sh`cat /etc/passwd`.output();How it works:
Zerobox wraps any commands/programs, runs an MITM proxy and uses the native sandboxing solutions on each operating system (e.g BubbleWrap on Linux) to run the given process in a sandbox. The MITM proxy has two jobs: blocking network calls and injecting credentials at the network level.
Think of it this way, I want to inject "Bearer OPENAI_API_KEY" but I don't want my sandboxed command to know about it, Zerobox does that by replacing "OPENAI_API_KEY" with a placeholder, then replaces it when the actual outbound network call is made, see this example:
$ zerobox --secret OPENAI_API_KEY=$OPENAI_API_KEY --secret-host OPENAI_API_KEY=api.openai.com -- bun agent.tsOr with the TypeScript SDK:
import { Sandbox } from "zerobox";
const sandbox = Sandbox.create({
secrets: {
OPENAI_API_KEY: {
value: process.env.OPENAI_API_KEY,
hosts: ["api.openai.com"],
}
},
});
await sandbox.sh`node agent.js`.text();Zerobox is different than other sandboxing solutions in the sense that it would allow you to easily sandbox any commands locally and it works the same on all platforms. I've been exploring different sandboxing solutions, including Firecracker VMs locally, and this is the closest I was able to get when it comes to sandboxing commands locally.
I'd love to hear your feedback, especially if you are running AI Agents (e.g. OpenClaw), MCPs, AI Tools locally.
r/javascript • u/modalist • Sep 14 '26
Trained the fly to close B2B enterprise deals (with Three.js)
Our AI research team trained a fruit fly to close B2B enterprise deals. We're incredibly excited to release Specimen AE-001, the world's first frontier AI fly model for end-to-end deal execution. It rips cold calls, books demos, fills security questionnaires, and wins deals, all using Opine. Built on Three.js!
r/javascript • u/AnonymZ_ • Nov 25 '25
Bogorg/sha1-hulud-installer: Simple package.json containing all packages affected by the sh1-hulud worm attack.
r/javascript • u/gpmag • Mar 03 '18
A good write up on callback hell... we've been dealing with this at work a lot lately after switching to react...
r/javascript • u/magenta_placenta • Feb 24 '20
The economics of of JavaScript - Your single page JavaScript app probably doesn't make you as much money as its old-school alternative. Sorry
r/javascript • u/SkyTemple77 • Jun 11 '23
AskJS [AskJS] Is JavaScript actually incredibly simple?
Background: I struggled to learn JS for years, mostly because I found the syntax strangely burdensome = () => {} coming from Python ():
But now I have been using chatGPT to program frontend and the more I have GPT generate the reactjs for me, the more repetitive and simple I am finding it.
So I started to gain some confidence and today I searched on Amazon for a cheat sheet (I was actually looking for a css cheat sheet first and found one that is like 4 pages long.)
The only JS cheat sheet I could find is one page and really just has some basic info. Which felt like it was starting to confirm to me that once you get past the Γ lien syntax, JS is actually pretty simple.
Am I missing something here?
r/javascript • u/skillcode • May 09 '14
MEAN.JS - Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js
r/javascript • u/html6dev • May 21 '14
"Considered Harmful" considered harmful
Seriously. This phrase in every javascript article is getting asinine. I will no longer grace your articles with my presence if you use it. If you use it I will assume you are so early 2000s you are writing an article on how to use meta tags to refresh content on your page instead of using new fangled Ajax calls or are still using coffescript instead of discount - gas - station -mocha script like the professionals.