
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@pointerdevks/pointerai-client
Advanced tools
Official JavaScript client for PointerAI chat APIs.
# after publishing
npm install @pointerdevks/pointerai-client
# local development (from monorepo root)
npm install ./packages/pointerai-client
import { createPointerAIClient, createAnonUid } from '@pointerdevks/pointerai-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/pointerai-client
npm publish --access public
FAQs
Official JavaScript client for PointerAI chat APIs.
We found that @pointerdevks/pointerai-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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.