
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Note: Guide is Not Complete yet, Only read and try to set it up if you have enought time and experience

A new standard for accessing AI in Applications.
Clone the repo, and install the dependencies:
npm install ai-wallet
Start the stencil dev server:
npm start
If you would like to build the application:
npm run build
The ai-wallet is a Stencil web component that can be used in any React application.
import { useEffect, useRef, useState } from 'react';
import { defineCustomElements } from 'ai-wallet/loader';
// Register the web components
defineCustomElements();
function App() {
const walletRef = useRef(null);
const [config, setConfig] = useState(null);
useEffect(() => {
// Listen for configuration changes
const handleConfigChange = (event) => {
console.log('Config changed:', event.detail);
setConfig(event.detail);
};
const element = walletRef.current;
element?.addEventListener('configChanged', handleConfigChange);
return () => {
element?.removeEventListener('configChanged', handleConfigChange);
};
}, []);
return <ai-wallet ref={walletRef} />;
}
For a better React integration, use the provided hooks and context:
import { AIWalletProvider, useAIWallet } from 'ai-wallet/react';
function App() {
return (
<AIWalletProvider>
<YourComponent />
</AIWalletProvider>
);
}
function YourComponent() {
const { config, wallet } = useAIWallet();
// Access configuration
console.log('Current endpoint:', config?.endpoint);
console.log('Selected LLM:', config?.llm);
return <div>AI is configured!</div>;
}
import { AIWalletProvider } from 'ai-wallet/react';
import RemoteStorage from 'remotestoragejs';
function App() {
const rs = new RemoteStorage();
rs.access.claim('ai-wallet', 'rw');
return (
<AIWalletProvider remoteStorage={rs}>
<YourApp />
</AIWalletProvider>
);
}
interface AIWalletConfig {
endpoint?: string; // API endpoint URL
apiKey?: string; // API key
vlm?: string; // Selected Vision Language Model
llm?: string; // Selected Language Model
sst?: string; // Selected Speech-to-Text Model
tts?: string; // Selected Text-to-Speech Model
enabledCapabilities?: string[]; // Array of enabled capabilities
}
useAIWallet(): Returns { config, wallet, renderWallet } with current configuration, wallet ref, and render functionuseAIConfig(): Returns just the configuration objectuseAIWalletComponent(): Returns a function to render the wallet component anywhere in your appBy default, the wallet floats in the bottom right corner. You can control this behavior:
// Floating in corner (default)
<AIWalletProvider floating={true} remoteStorage={rs}>
<YourApp />
</AIWalletProvider>
// Disable floating - render it manually wherever you want
<AIWalletProvider floating={false} remoteStorage={rs}>
<YourApp />
</AIWalletProvider>
Choose between shadow (default) or border styling:
// Shadow variant (default)
<AIWalletProvider variant="shadow" remoteStorage={rs}>
<YourApp />
</AIWalletProvider>
// Border variant
<AIWalletProvider variant="border" remoteStorage={rs}>
<YourApp />
</AIWalletProvider>
Use the useAIWalletComponent() hook to render the wallet anywhere:
import { AIWalletProvider, useAIWalletComponent, useAIConfig } from 'ai-wallet/react';
function App() {
return (
<AIWalletProvider floating={false} variant="border" remoteStorage={rs}>
<MyCustomLayout />
</AIWalletProvider>
);
}
function MyCustomLayout() {
const renderWallet = useAIWalletComponent();
const config = useAIConfig();
return (
<div>
<header>
<h1>My App</h1>
{/* Render wallet in header */}
<div style={{ maxWidth: '400px' }}>
{renderWallet()}
</div>
</header>
<main>
{config?.llm && <p>Using model: {config.llm}</p>}
</main>
</div>
);
}
For use without the context provider:
import { AIWalletComponent } from 'ai-wallet/react';
function MyComponent() {
return (
<AIWalletComponent
variant="border"
capabilities={['llm', 'vlm']}
onConfigChange={(config) => {
console.log('Config updated:', config);
}}
style={{ maxWidth: '500px' }}
/>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
remoteStorage | any | undefined | RemoteStorage instance for syncing |
capabilities | string[] | ['llm', 'vlm', 'sst', 'tts'] | Enabled AI capabilities |
floating | boolean | true | Whether wallet floats in corner or is manually placed |
variant | 'shadow' | 'border' | 'shadow' | Visual style variant |
onConfigChange | (config: AIWalletConfig) => void | undefined | Callback when config changes |
FAQs
AI Wallet
The npm package ai-wallet receives a total of 21 weekly downloads. As such, ai-wallet popularity was classified as not popular.
We found that ai-wallet 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.