
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
@synonymdev/web-relay
Advanced tools
Slashtags Web Relay is a powerful abstraction library designed to simplify the management of data on Slashtags.
Slashtags Web Relay is a powerful abstraction library designed to simplify the management of data on Slashtags.
To install the package, use the following npm command:
npm install @synonymdev/web-relay
Copy and customize the configuration file.
cp config/config.example.json config/config.json
Run npm start or use pm2 pm2 start ecosystem.config.json
Setup proxy:
Web-relay uses Server-sent Events to subscribe for updates, which needs HTTP/2 to work best (especially in browsers).
If you are using Nginx, consider using the following configuration:
location <path here> {
proxy_pass <relay host:port here>;
proxy_http_version 1.1;
proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
const { Client } = require("@synonymdev/web-relay/client");
const alice = new Client({ relay: "http://localhost:3000" });
(async () => {
const url = await alice.createURL("/foo");
console.log("Generated URL:", url);
await alice.put("/foo", Buffer.from("bar"));
const saved = await alice.get("/foo");
console.log("Saved Data:", saved.toString());
const bob = new Client();
const resolved = await bob.get(url);
console.log("Resolved Data:", resolved.toString());
})();
const client = new Client({
keyPair: { secretKey: Uint8Array, publicKey: Uint8Array },
relay: "http://your-relay-address.com",
storage: "./path/to/storage",
});
console.log(client.url); // Outputs: slash:<client.id>/[?relay=<relay address>]
const myURL = await client.createURL("/examplePath");
console.log(myURL); // Outputs: Generated Slashtags URL
const options = {
encrypted: true,
awaitRelaySync: true,
};
await client.put("/examplePath", Buffer.from("Hello World"), options);
const deleteOptions = {
awaitRelaySync: true,
};
await client.del("/examplePath", deleteOptions);
const getOptions = {
skipCache: true,
};
const data = await client.get(myURL, getOptions);
console.log(data); // Outputs: Retrieved data
const onupdate = (value) => {
console.log("Updated Value:", value);
};
const unsubscribe = coreData.subscribe(myURL, onupdate);
// To stop monitoring:
// unsubscribe();
await client.close();
FAQs
Slashtags Web Relay is a powerful abstraction library designed to simplify the management of data on Slashtags.
The npm package @synonymdev/web-relay receives a total of 8 weekly downloads. As such, @synonymdev/web-relay popularity was classified as not popular.
We found that @synonymdev/web-relay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.