
Research
/Security News
16 Malicious Firefox Extensions Steal Cryptocurrency Wallet Credentials
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.
@open-hive/sdk
Advanced tools
The official TypeScript/JavaScript SDK for the **[OpenHive Platform](https://openhive.sh)**. It provides a lightweight, powerful toolkit for developers to interact with the OpenHive agent registry.
The official TypeScript/JavaScript SDK for the OpenHive Platform. It provides a lightweight, powerful toolkit for developers to interact with the OpenHive agent registry.
This SDK is designed to complement any A2A (Agent-to-Agent) compliant agent. While you can use any A2A SDK (like @a2a-js/sdk) to build your agent's core logic, the OpenHive SDK provides the necessary tools for agent discovery and management within the OpenHive ecosystem.
OpenHive class for discovering and managing A2A-compliant agents.npm install @open-hive/sdk
The OpenHive class is the main entry point for all registry operations. By default, it uses a volatile in-memory registry.
import { OpenHive } from '@open-hive/sdk';
import { AgentCard } from '@open-hive/sdk';
async function main() {
// 1. Initialize the registry.
// By default, it uses an in-memory store.
const hive = new OpenHive();
// 2. Define an agent card
const myAgent: AgentCard = {
name: 'MyAwesomeAgent',
protocolVersion: '0.3.0',
version: '1.0.0',
url: 'http://localhost:8080',
skills: [{ id: 'chat', name: 'Chat' }],
};
// 3. Add the agent to the registry
const registeredAgent = await hive.add(myAgent);
console.log('Agent added:', registeredAgent);
// 4. Search for agents with the 'chat' skill
const results = await hive.search('skill:chat');
console.log('Search results:', results);
}
main();
To connect to a remote registry, provide the registryUrl in the constructor. This is the standard choice for multi-agent clusters where a dedicated agent or service acts as a discovery hub.
import { OpenHive } from '@open-hive/sdk';
const hive = new OpenHive({
registryUrl: 'http://localhost:11100', // URL of the remote registry
authToken: 'your-optional-auth-token'
});
// All operations will now be performed against the remote registry.
const agentList = await hive.list();
console.log(agentList);
For persistence across restarts without a dedicated registry server, you can use the SqliteRegistry. The OpenHive class can be configured to use any compliant registry adapter.
Note: The SqliteRegistry is not included in the main OpenHive bundle and needs to be imported separately.
import { OpenHive, SqliteRegistry } from '@open-hive/sdk';
// 1. Create an instance of the SqliteRegistry.
const sqliteRegistry = new SqliteRegistry('main-db', './agents.db');
// 2. Pass the custom registry to the OpenHive constructor.
const hive = new OpenHive({ registry: sqliteRegistry });
// The agent will now use the SQLite database for all registry operations.
await hive.add({
name: 'PersistentAgent',
// ... other agent card properties
});
The query engine allows you to find agents with specific skills or attributes using a simple yet powerful syntax.
Provide a single term to search across an agent's name and description.
// Finds agents where 'Awesome' is in the name or description
const results = await hive.search('Awesome');
Target specific fields using field:value syntax. You can also wrap values with spaces in quotes.
// Finds agents with the name "My Awesome Agent"
const results = await hive.search('name:"My Awesome Agent"');
You can find agents that possess a specific skill.
// Finds agents with the 'chat' skill
const results = await hive.search('skill:chat');
Combine multiple filters to create more specific queries.
// Finds agents named "MyAwesomeAgent" that also have the 'chat' skill
const results = await hive.search('name:MyAwesomeAgent skill:chat');
Contributions are welcome! Please read our Contributing Guidelines to get started.
This project is licensed under the Apache 2.0 License. See the LICENSE.md file for full details.
FAQs
The official TypeScript/JavaScript SDK for the **[OpenHive Platform](https://openhive.sh)**. It provides a lightweight, powerful toolkit for developers to interact with the OpenHive agent registry.
The npm package @open-hive/sdk receives a total of 0 weekly downloads. As such, @open-hive/sdk popularity was classified as not popular.
We found that @open-hive/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Research
/Security News
Socket uncovered two malicious VS Code themes in a GlassWorm-linked cluster with thousands of installs across VS Code Marketplace and Open VSX.