How to Install

npm install fathom-typescript
This package is published with CommonJS and ES Modules (ESM) support.

Requirements

For supported JavaScript runtimes, please consult the RUNTIMES.md file in the SDK repository.

Module Systems

The SDK supports both CommonJS and ES Modules:
import { Fathom } from 'fathom-typescript';

Quick Start

After installation, you can quickly test your setup:
import { Fathom } from 'fathom-typescript';

const fathom = new Fathom({
  security: {
    apiKeyAuth: "YOUR_API_KEY"
  }
});

const result = await fathom.listMeetings({});
console.log(result);

Standalone Functions

All SDK methods are available as standalone functions, ideal for applications where bundle size is a concern:
import { listMeetings } from 'fathom-typescript';

const result = await listMeetings({
  security: {
    apiKeyAuth: "YOUR_API_KEY"
  }
});

for await (const page of result) {
  console.log(page);
}

Available Standalone Functions

  • listMeetings - List meetings
  • listTeams - List teams
  • listTeamMembers - List team members
  • createWebhook - Create a webhook
  • deleteWebhook - Delete a webhook

Tree Shaking

When using a bundler, unused functionality will be excluded from the final bundle:
// Only listMeetings will be included in the bundle
import { listMeetings } from 'fathom-typescript';

// This won't be included if not used
// import { createWebhook } from 'fathom-typescript';

Version Management

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version:
{
  "dependencies": {
    "fathom-typescript": "0.0.30"
  }
}