Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@lightbase/lightbot
Advanced tools
Lightbot.js is a client javascript SDK
It allows the developer to easily communicate with any lightbot agent.
import { LightbotMessenger } from "lightbot";
const lightbotMessenger = new LightbotMessenger({
hostURL: "http://localhost:9000",
agentId: "agent-id",
});
lightbotMessenger.toggleMessenger();
lightbotMessenger.sendMessage({
type: "plain",
sender: "human",
label: "Hello, I need some help!",
});
Property | Description | Type |
---|---|---|
messages | Message history | Message |
sendMessage | Send a message to the service | Function(message: Message): void |
toggleMessenger | Toggle messenger open state | Function() |
isOpen | Current open state | Boolean |
onChange | Called when any primitive property gets updated | Function(): void |
withLightbotMessenger
React HOCLightbot.js exports a React HOC which can be used to provide a communication interface to your React components.
import {
LightbotMessage,
LightbotMessengerDecoratedProps,
withLightbotMessenger
} from "lightbot/lib/lightbot-react";
class AppDisconnected extends Component {
render() {
const { messages, sendMessage } = this.props;
return (
<Chat
messages={messages}
onMessageSend={sendMessage}
/>
);
}
}
export const App = withLightbotMessenger<AppProps>({
hostURL: "https://localhost:9000,
agentId: "agent-id"
})(AppDisconnected);
withLightbotMessenger
injects the same props as the one defined by the Lightbot API except the onChange is implemented in order to update your React components when any update is available.
[1.0.0] - 2019-01-24
First release
FAQs
Javascript Client for Lightbot API
The npm package @lightbase/lightbot receives a total of 0 weekly downloads. As such, @lightbase/lightbot popularity was classified as not popular.
We found that @lightbase/lightbot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.