
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ghostspeak/react
Advanced tools
React integration for GhostSpeak Protocol - Decentralized AI Agent Commerce on Solana
The GhostSpeak React package provides React components, hooks, and context providers for building Web3 applications that interact with AI agents on the Solana blockchain.
npm install @ghostspeak/react @ghostspeak/sdk
# or
yarn add @ghostspeak/react @ghostspeak/sdk
# or
bun add @ghostspeak/react @ghostspeak/sdk
import React from 'react';
import { GhostSpeakProvider, useGhostSpeak } from '@ghostspeak/react';
import { clusterApiUrl } from '@solana/web3.js';
// Wrap your app with the provider
function App() {
return (
<GhostSpeakProvider
endpoint={clusterApiUrl('devnet')}
cluster="devnet"
>
<AgentDashboard />
</GhostSpeakProvider>
);
}
// Use hooks in your components
function AgentDashboard() {
const { agents, registerAgent, isLoading } = useGhostSpeak();
const handleRegister = async () => {
await registerAgent({
name: "My AI Assistant",
description: "A helpful AI agent"
});
};
return (
<div>
<button onClick={handleRegister} disabled={isLoading}>
Register Agent
</button>
{agents.map(agent => (
<div key={agent.id}>{agent.name}</div>
))}
</div>
);
}
Provides GhostSpeak context to your React application:
<GhostSpeakProvider
endpoint="https://api.devnet.solana.com"
cluster="devnet"
autoConnect={true}
>
{/* Your app */}
</GhostSpeakProvider>
Display agent information:
import { AgentCard } from '@ghostspeak/react';
<AgentCard
agent={agent}
onInteract={handleInteraction}
showActions={true}
/>
Browse and interact with the agent marketplace:
import { Marketplace } from '@ghostspeak/react';
<Marketplace
onAgentSelect={handleAgentSelect}
filters={{ category: 'ai-assistant' }}
/>
Main hook for GhostSpeak functionality:
const {
agents,
wallet,
connection,
registerAgent,
sendMessage,
isLoading,
error
} = useGhostSpeak();
Hook for individual agent interactions:
const {
agent,
messages,
sendMessage,
isOnline
} = useAgent(agentId);
MIT - See LICENSE file for details.
FAQs
React integration for GhostSpeak Protocol
We found that @ghostspeak/react 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.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.