
Security News
upm Launches as a Fast, Tiny Package Manager Written in TypeScript
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.
@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.
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
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.

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.