Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: js Clear Filter

Running TypeScript Natively in Node.js

Since v23.6.0, Node.js enables "type stripping" by default. If you are using v23.6.0 or later and your source code contains only erasable typescript syntax, you do not need this article. Since V22.6.0, Node.js has experimental support for some TypeScript syntax via "type stripping". You can write code that's valid TypeScript directly in Node.js without the need to transpile it first. The --experimental-strip-types flag tells Node.js to strip the type annotations from the TypeScript code before

Run TypeScript code without worrying about configuration

TypeScript Execute (tsx) ​ tsx stands for TypeScript Execute and it's a Node.js enhancement to run TypeScript. For starters, think of tsx as an alias to node and use it the same way: sh node file.js →↓ sh tsx file.ts You can pass in Node CLI flags and JS files too: sh tsx --env-file=.env ./file.js Seamless TypeScript execution ​ Run TypeScript code without worrying about configuration! tsx runs your TypeScript code with modern and sensible defaults, making it user-friendly and especially

Windows 11 now uses JScript9Legacy engine for improved security

Microsoft announced that it has replaced the default scripting engine JScript with the newer and more secure JScript9Legacy on Windows 11 version 24H2 and later. The decision is driven by security concerns, as JScript9Legacy is expected to offer better protection against web threats, such as cross-site scripting (XSS), and also improved performance. "To provide a more secure experience, beginning with Windows 11, version 24H2, JScript9Legacy is enabled by default to handle all scripting proces

Compression Dictionary Transport

Algorithms like Brotli compression and Zstandard compression achieve even greater efficiency by allowing the use of dictionaries of commonly encountered strings, so you don't need any copies of them in the compressed resource. These algorithms ship with a predefined default dictionary that is used when compressing HTTP responses. Compression Dictionary Transport builds on this by enabling you to provide your own dictionary which is especially applicable to a particular set of resources. The com

Gmailtail – Command-line tool to monitor Gmail messages and output them as JSON

A command-line tool to monitor Gmail messages and output them as JSON, designed for automation, monitoring, and integration with other tools. # Clone and setup the project # Install uv if you haven't already # Monitor all new emails # JSON Lines format (one JSON per line) # Resume from last checkpoint

gmailtail: tail -f Your Gmail

A command-line tool to monitor Gmail messages and output them as JSON, designed for automation, monitoring, and integration with other tools. # Clone and setup the project # Install uv if you haven't already # Monitor all new emails # JSON Lines format (one JSON per line) # Resume from last checkpoint

Chatbot Flow Editor – Visual tool for designing conversation flows

Chatbot Flow Editor Visual development tool for creating chatbot conversation flows A GUI tool that opens in your browser. Design, test, and export chatbot conversation flows as JSON. Quick Start # Install as development dependency npm install --save-dev @enumura/chatbot-flow-editor # Launch the visual editor npx @enumura/chatbot-flow-editor Your browser will automatically open with the visual flow editor at http://localhost:3001 . Installation & Usage Method 1: Using npx npm install --s

1KB JavaScript Demoscene Challenge Just Launched

I just launched JS1024 — a creative coding challenge with a strict limit: 1024 bytes of JavaScript. No libraries. No frameworks. Just raw code. You can submit visual effects, generative art, tiny games, synths, or whatever you can fit into 1KB of JavaScript. → https://js1024.fun/ Think of it as a spiritual successor to JS1k or the 4k demoscene — with a modern twist. Would love feedback, ideas, or help spreading the word. And if you’ve ever made a tiny JS demo, please share — I’d love to see

Parsing JSON in Forty Lines of Awk

JSON is not a friendly format to the Unix shell — it’s hierarchical, and cannot be reasonably split on any character (other than the newline, which is not very useful) as that character might be included in a string. There are well-known tools such as jq that let you correctly parse JSON documents in the shell, but all require an additional dependency. Another option is to use Python, which is ubiquitous enough that it can be expected to be installed on virtually every machine, and for new proje

Show HN: To-Userscript: Chrome Extension to Userscript Converter

Demo 2x Speed (conversion takes 4s total normal speed, incl. downloading) to-userscript.mp4 Demo but normal speed Screen.Shot.2025-06-20.at.7.59.06.AM.mov A powerful CLI for converting browser extensions into standalone userscripts. What is this? to-userscript bridges the gap between complex, packaged browser extensions and simple, portable userscripts. It takes an extension from the Chrome or Firefox store, a local directory, or a zip/xpi, and creates a single .user.js file that can be run i

Unexpected security footguns in Go's parsers

In Go applications, parsing untrusted data creates a dangerous attack surface that’s routinely exploited in the wild. During our security assessments, we’ve repeatedly exploited unexpected behaviors in Go’s JSON, XML, and YAML parsers to bypass authentication, circumvent authorization controls, and exfiltrate sensitive data from production systems. These aren’t theoretical issues—they’ve led to documented vulnerabilities like CVE-2020-16250 (a Hashicorp Vault authentication bypass found by Goog

Tuxracer.js play Tux Racer in the browser

You can play Tux Racer directly in your browser here: Play TuxRacer.JS TuxRacer.js is a port / rewrite of Extreme Tux Racer, which itself is based on the original Tux Racer game. This project allows you to enjoy Tux Racer directly in your web browser, supporting all major desktop and mobile browsers. Note: This project is in an early development stage and far from complete. However, some courses are already functional enough to provide a fun experience (at least for me!). How to Run TuxRacer.

YouTube's new anti-adblock measures

Over the past few months, YouTube has been trying another round of anti-adblock measures. Currently the anti-adblock stuff is being A/B tested, and one of my accounts is in the experimental group. I wrote a filter that partially avoids one of the anti-adblock measures, fake buffering, on uBlock Origin (and Brave browser, since it uses the same filter rules). (It’s already in the default filter lists, you don’t need to manually add the filter.) One thing that people have ran into is “fake buffer

Topics: ad gvs json video youtube

Next.js 15.1 is unusable outside of Vercel

If you use Next.js anywhere but Vercel, here's some bad news: Next.js 15.1+ is broken. tl;dr: Starting with version 15.1.8, Next.js might break metadata handling for non-Vercel deployments, potentially devastating your search rankings. This is not a bug. When Did This Happen? In 2024, Vercel introduced metadata streaming as an experimental feature. This fundamentally changes how Next.js handles metadata. Traditional approach: Metadata tags (title, description, Open Graph tags) are rendered d

Show HN: S3mini – Tiny and fast S3-compatible client, no-deps, edge-ready

s3mini is an ultra-lightweight Typescript client (~14 KB minified, ≈15 % more ops/s) for S3-compatible object storage. It runs on Node, Bun, Cloudflare Workers, and other edge platforms. It has been tested on Cloudflare R2, Backblaze B2, DigitalOcean Spaces, and MinIO. (No Browser support!) [github] [issues] [npm] Dev: Performance tests was done on local Minio instance. Your results may vary depending on environment and network conditions, so take it with a grain of salt. The library support

Why Ruby on Rails still matters

I found vinyl records from my late grandfather recently. It struck me how this media from the previous millennium played without issues. Vinyl represented a key shift in music distribution - it made printing and sharing sounds accessible, establishing a standard that persists. While audio sharing methods evolved, the original approaches remain functional. In our increasingly complex world, many people return to vinyl because it offers simplicity, stability, and longevity . Amidst the constant c