Agent · ~/my-app
›Install Loops in my Next.js app
Using the loops-api skill
  1. Read package.jsonNext.js
  2. Ran npm install loopsJavaScript SDK
  3. Read LOOPS_API_KEY from .envServer only
  4. Edited lib/loops.tsContact sync
    const loops = new LoopsClient(process.env.LOOPS_API_KEY)
    + export const syncContact = (user) =>
    + loops.updateContact({ email: user.email, userId: user.id })
  5. Sent a test signup eventsuccess: true

Detected Next.js. I installed the JavaScript SDK, wired LOOPS_API_KEY from .env, set up a contact sync, and sent a test event. Loops returned success.

Ask a follow-up

npx skills add loops-so/skills --global

Installs the API, CLI, LMX, and email sending best-practices skills in one command. Choose an individual skill below if you only need one.

Four skills, one install

Each skill teaches your coding agent one part of Loops.

loops-apilib/loops.ts
await loops.updateContact({
userId: "usr_123",
plan: "pro"
})

API

Backend integrations, webhooks, SDK or REST choices, and email content.

$ loops transactional list Password reset published Receipt published Invite draft

CLI

One-off calls, ID lookups, credential checks, and JSON for scripts.

<H1>Welcome, {contact.firstName}</H1> <Button href="…">Get started</Button>

LMX

Valid LMX for campaigns, workflows, and transactional email.

SPF and DKIMPass
One-click unsubscribePass
Double opt-inReview

Email best practices

Deliverability, consent, and list hygiene reviews. Works without Loops.