
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
This contains a reference implementation in Javascript of the Braid protocol, which adds synchronization to HTTP.
This implementation is not yet complete, but aims to be fully-functioning and robust enough for production sites.
Read more about braid at https://braid.news!
If you have nodejs installed, then set it up with:
npm install
You can run the chat server with:
cd demos/chat
node chat-server.js
Then open a web browser to http://localhost:3009/braidchat
(for a websocket connection) or .../braidchat?protocol=http
for a backwards-compatible http/1.1 connection.
You can run the wiki server with:
node demos/wiki/wiki-server.js
And then open http://localhost:3009/<any-path-here>
.
For any command, you can tell it to print out all network traffic in a table
by adding the command-line argument --network
to it, like this:
node chat-server.js --network
Then you'll see something like this:
ws: server --> C-j2lm GET {"key":"/usr","parents":null,"subscribe":{"keep_alive":true}}
ws: server --> C-j2lm WELCOME {"key":"/usr","versions":[{"version":null,"parents":{},"changes":[" = {\"B-0bnyC1mdA9\":\"FirefoxHTTP\"}"]}
ws: C-j2lm --> server WELCOME {"key":"/chat","versions":[],"fissures":[],"parents":null}
ws: C-j2lm --> server WELCOME {"key":"/usr","versions":[],"fissures":[],"parents":null}
ws: C-j2lm --> server SET {"key":"/usr","patches":["[\"B-0bnyC1mdA9\"] = \"FrefoxHTTP\""],"version":"bz2gyet9cv6","parents":{"66mn2f0vco8":true}}
npm test
If you want to see what it's doing, print out the network traffic with:
npm test network
What if one of the trials crashes? To debug it, re-run that particular trial with:
npm test solo 68
This will re-run trial 68, and print out debugging info so you can find the problem and fix it.
You can also configure parameters to test at the top of test/tests.js
.
FAQs
Synchronization for the Web (reference implementation)
We found that braidjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.