Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nango

БесплатноБез исполняемых скриптовНе проверен

Nango is an integration platform that handles OAuth, API-key storage, token refresh and authenticated API calls for 1,000+ third-party APIs, plus a TypeScript…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Nango — managed auth, proxy and functions for product integrations

Overview

Nango sits between your product and the external APIs your customers use. It has three parts: Auth (an embeddable Connect UI that runs the OAuth or API-key flow and stores a connection per end user, with automatic token refresh), Proxy (send a request to Nango and it injects that connection's credentials), and Functions (TypeScript syncs, actions and event handlers you write locally and deploy to Nango's runtime).

The runtime is Nango Cloud, which needs an account. Signup cannot be automated: ask the user to sign up at app.nango.dev and give you an API key from Environment Settings > API Keys. Never invent keys. Self-hosting exists, but the docs describe it as an Enterprise option (BYOC or Self-Managed) plus a limited free option for hobby projects; use Cloud unless the user asks otherwise. The repository is under the Elastic License 2.0, not an OSI open-source license.

Packages (npm): @nangohq/node (backend SDK), @nangohq/frontend (Connect UI), nango (CLI and the function-authoring library). The nango package declares engines.node >=22.22.2; the SDKs declare >=20.

Instructions

1. Set up the account side (the user does this)

In the dashboard: create an integration (for example hubspot) on the Integrations tab. For OAuth APIs Nango offers a Nango-managed OAuth app for many providers, which is fine for development and production; otherwise register your own OAuth app and paste its client ID and secret. Then, under Environment Settings, set a webhook URL and enable "Send New Connection Creation Webhooks". The webhook URL cannot be set through the API.

The API key goes in the environment, never in code:

# Paste the values from Environment Settings > API Keys and > Webhooks
export NANGO_API_KEY="paste-api-key-here"
export NANGO_WEBHOOK_SIGNING_KEY="paste-signing-key-here"

2. Backend: create a connect session

Install the SDK and mint a short-lived session token for the signed-in user. Tags tie the new connection back to your own user or organization.

npm install @nangohq/node
import { Nango } from '@nangohq/node';

const nango = new Nango({
    apiKey: process.env.NANGO_API_KEY!,
    webhookSigningKey: process.env.NANGO_WEBHOOK_SIGNING_KEY
});

export async function createSessionToken(userId: string, email: string, orgId: string) {
    const { data } = await nango.createConnectSession({
        tags: { end_user_id: userId, end_user_email: email, organization_id: orgId },
        allowed_integrations: ['hubspot']
    });
    return data.token;
}

The constructor takes apiKey. The older secretKey option still exists but is deprecated, and passing both throws. With one allowed integration the Connect UI goes straight to that provider; with several it shows a picker.

3. Frontend: open the Connect UI

npm install @nangohq/frontend
import Nango from '@nangohq/frontend';

const nango = new Nango();
const connect = nango.openConnectUI({
    onEvent: (event) => {
        if (event.type === 'connect') console.log('Authorized');
        if (event.type === 'close') console.log('Modal closed');
    }
});

const res = await fetch('/api/nango/session', { method: 'POST' });
const { sessionToken } = await res.json();
connect.setSessionToken(sessionToken); // a loading state shows until this is called

4. Backend: receive the connection ID by webhook

When authorization succeeds Nango POSTs an auth webhook. Verify the signature against the raw body, then store connectionId next to the user or organization (Nango does not know who owns it, only your tags do).

import express from 'express';

const app = express();
app.post('/webhooks/nango', express.text({ type: '*/*' }), async (req, res) => {
    if (!nango.verifyIncomingWebhookRequest(req.body, req.headers)) {
        return res.status(401).send('bad signature');
    }
    const event = JSON.parse(req.body);
    if (event.type === 'auth' && event.operation === 'creation' && event.success) {
        await saveConnection(event.tags.organization_id, event.connectionId);
    }
    res.sendStatus(200);
});

The signature is an HMAC-SHA256 hex digest of the raw body in the X-Nango-Hmac-Sha256 header. Parse JSON only after verifying; a body re-serialized by middleware will not match. Do not use the deprecated verifyWebhookSignature.

5. Call the external API through the proxy

const res = await nango.get({
    endpoint: '/crm/v3/objects/contacts',
    params: { limit: 10 },
    providerConfigKey: 'hubspot',
    connectionId: connectionIdFromYourDb
});
console.log(res.data.results);

nango.get/post/put/patch/delete and nango.proxy({ method, ... }) return an axios response and throw an axios error on non-2xx (read error.response.status). retries: 3 enables exponential-backoff retries. `getConnection(providerConfigKey, connec

Полный SKILL.md на GitHub

Установить nango в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл nango?

Nango is an integration platform that handles OAuth, API-key storage, token refresh and authenticated API calls for 1,000+ third-party APIs, plus a TypeScript runtime for sync and action functions. Use it when a user asks to "let my customers connect their HubSpot or GitHub account", "add OAuth to my product", "proxy requests to a customer's API", "sync records from an external API", or "give an AI agent access to a user's SaaS tools" without writing per-provider auth code.

Как установить скилл nango?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nango запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nango с