> ## Documentation Index
> Fetch the complete documentation index at: https://docs.companies.social/llms.txt
> Use this file to discover all available pages before exploring further.

# Node.js

> Official Node.js SDK for companies.social

<CodeGroup>
  ```bash npm theme={null}
  npm install @alloy.rest/companies.social
  ```

  ```bash pnpm theme={null}
  pnpm add @alloy.rest/companies.social
  ```

  ```bash yarn theme={null}
  yarn add @alloy.rest/companies.social
  ```

  ```bash bun theme={null}
  bun add @alloy.rest/companies.social
  ```
</CodeGroup>

## Usage

```javascript theme={null}
import CompaniesSocial from "@alloy.rest/companies.social";

const client = new CompaniesSocial({
  apiKey: process.env["COMPANIES_SOCIAL_API_KEY"],
});

// Look up a company by domain
const company = await client.lookupCompany("stripe.com", {
  idType: "domain",
});

console.log(company.socials);

// Get current user info
const me = await client.whoami.retrieve();
console.log(me.plan);
```

<Card title="@alloy.rest/companies.social" icon="npm" href="https://www.npmjs.com/package/@alloy.rest/companies.social">
  View on npm
</Card>
