
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
@pointerdevks/ai-chat-client
Advanced tools
Official JavaScript client for PointerAI chat APIs.
# after publishing
npm install @pointerdevks/ai-chat-client
# local development (from monorepo root)
npm install ./packages/ai-chat-client
import { createPointerAIClient, createAnonUid } from '@pointerdevks/ai-chat-client';
const client = createPointerAIClient({
baseUrl: 'https://pointerdev.ai',
projectId: '<PROJECT_ID>',
publishableKey: '<PUBLISHABLE_KEY>',
});
const anonUid = createAnonUid();
const session = await client.createSession({ anonUid });
const result = await client.chat({
message: 'Hello',
sessionUid: session.uid,
anonUid,
metadata: { source: 'npm-client' },
});
console.log(result);
client.setEndUserToken('<END_USER_JWT>');
// Exchange once for short-lived runtime session token
await client.exchangeSessionToken();
const result = await client.chat({
message: 'Hello as end-user',
metadata: { source: 'secured-flow' },
});
// 1) Set end-user token from your backend
client.setEndUserToken('<END_USER_JWT>');
// 2) Exchange to runtime session token
const sessionAuth = await client.exchangeSessionToken();
console.log(sessionAuth.expires_at);
// 3) Use chat normally (client prefers session token automatically)
const response = await client.chat({ message: 'Hello' });
// 4) Optional explicit refresh/revoke
await client.refreshSessionToken();
await client.revokeSessionToken();
createSession({ anonUid?, metadata?, endUserToken? })listSessionsByAnon(anonUid, { limit?, endUserToken? })listSessionsByUser({ limit?, endUserToken? })listMessages(sessionUid, { limit?, endUserToken? })chat({ message, sessionUid?, anonUid?, metadata?, endUserToken? })exchangeSessionToken({ endUserToken?, sessionId? })refreshSessionToken({ token?, persist? })revokeSessionToken({ token?, clearSession? })setSessionToken(token, meta?)clearSessionToken()getSessionTokenState()setEndUserToken(token)clearEndUserToken()cd packages/ai-chat-client
npm publish --access public
FAQs
Official JavaScript client for PointerAI chat APIs.
The npm package @pointerdevks/ai-chat-client receives a total of 0 weekly downloads. As such, @pointerdevks/ai-chat-client popularity was classified as not popular.
We found that @pointerdevks/ai-chat-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.