
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.
@serviceagent/nextjs
Advanced tools
ServiceAgent Next.js integration — provider, server client, webhook handler, and middleware
Next.js integration for ServiceAgent — provider, server client, webhook handler, and all React components.
npm install @serviceagent/nextjs
// app/layout.tsx
import { ServiceAgentProvider } from '@serviceagent/nextjs';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html>
<body>
<ServiceAgentProvider>{children}</ServiceAgentProvider>
</body>
</html>
);
}
This adds the chat widget to every page. Set environment variables:
NEXT_PUBLIC_SERVICEAGENT_WIDGET_KEY=wid_xxxxx
NEXT_PUBLIC_SERVICEAGENT_API_URL=https://process.serviceagent.ai
SERVICEAGENT_API_KEY=your_api_key
// In server components or API routes
import { createServiceAgentClient } from '@serviceagent/nextjs/server';
const sa = createServiceAgentClient();
const results = await sa.searchKnowledgeBase('How to reset password?');
// app/api/serviceagent/webhooks/route.ts
import { handleWebhook } from '@serviceagent/nextjs/server';
export const POST = handleWebhook({
'contact.created': async (event) => {
console.log('New contact:', event.data);
},
'appointment.created': async (event) => {
console.log('New booking:', event.data);
},
});
import { CalendarBooking } from '@serviceagent/nextjs';
export default function BookingPage() {
return <CalendarBooking bookingKey="your_booking_key" />;
}
import { VoiceAgent } from '@serviceagent/nextjs';
export default function CallPage() {
return <VoiceAgent token="session_token" orgId="org_id" />;
}
@serviceagent/nextjs)ServiceAgentProvider — Layout provider with chat widgetChat, ChatIframe — Chat widget componentsCalendarBooking — Calendar booking widgetVoiceAgent — Voice agent componentuseServiceAgent — Chat control hook@serviceagent/nextjs/server)createServiceAgentClient() — Server-side SDK clienthandleWebhook(handlers) — Webhook route handler factoryServiceAgent — SDK class (re-exported)MIT
FAQs
Next.js SDK and components for ServiceAgent chat, low-latency voice agents, dialer workflows, booking, webhooks, and server-side API access
The npm package @serviceagent/nextjs receives a total of 0 weekly downloads. As such, @serviceagent/nextjs popularity was classified as not popular.
We found that @serviceagent/nextjs 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.

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.