
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
stratumn-agent-js
Advanced tools
This NodeJS module exposes functions to create Stratumn agents using Javascript.
This NodeJS module exposes functions to create Stratumn agents using Javascript.
var express = require('express');
var agent = require('stratumn-agent-js');
// Assumes your transition functions are in ./lib/transitions.
var transitions = require('./lib/transitions');
// The server is an Express server.
var app = express();
// Create an HTTP store client to save segments.
// Assumes an HTTP store server is available on env.STRATUMN_STORE_URL or http://store:5000.
var storeHttpClient = agent.storeHttpClient(process.env.STRATUMN_STORE_URL || 'http://store:5000');
app.disable('x-powered-by');
// Create an agent HTTP server from the transition functions and the store client.
var agentHttpServer = agent.httpServer(transitions, storeHttpClient);
// Mount agent on the root path of the server.
app.use('/', agentHttpServer);
// Start the server.
app.listen(3000, function() {
console.log('Listening on :' + this.address().port);
});
httpServer
creates an HTTP server for an agent.storeHttpClient
creates an instance to work with stores via HTTP.agent
creates an instance to work directly with an agent without a server.FAQs
This NodeJS module exposes functions to create Stratumn agents using Javascript.
The npm package stratumn-agent-js receives a total of 0 weekly downloads. As such, stratumn-agent-js popularity was classified as not popular.
We found that stratumn-agent-js 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.