@makehq/sdk
    Preparing search index...

    @makehq/sdk

    Make TypeScript SDK

    A TypeScript SDK for interacting with the Make API. This SDK provides a type-safe way to interact with Make's API endpoints for managing scenarios, teams, data stores, and more.

    Via NPM (Node.js)

    npm install @makehq/sdk
    

    Via JSR (Deno)

    deno add jsr:@make/sdk
    
    import { Make } from '@makehq/sdk';

    // Initialize the Make client
    const make = new Make('your-api-key', 'eu2.make.com');

    // Example: Get user information
    const user = await make.users.me();

    // Example: List scenarios
    const scenarios = await make.scenarios.list(/* Team ID */);

    // Example: Work with data stores
    const dataStore = await make.dataStores.get(/* DataStore ID */);
    • Full TypeScript support with type definitions
    • Support for majority of Make API endpoints
    • Built-in error handling and response typing
    • Comprehensive test coverage
    make-sdk/
    ├── src/ # Source code
    │ ├── endpoints/ # API endpoint implementations
    │ ├── index.ts # Main entry point
    │ ├── make.ts # Core Make client
    │ ├── types.ts # Common type definitions
    │ └── utils.ts # Utility functions
    ├── test/ # Test files
    │ ├── mocks/ # Test mocks
    │ ├── *.spec.ts # Unit tests
    │ ├── *.integration.test.ts # Integration tests
    │ └── test.utils.ts # Test utilities
    ├── dist/ # Compiled output
    └── docs/ # Documentation

    The project includes both unit tests and integration tests. To run the tests:

    npm test
    
    # Make sure to set up your .env file first
    npm run test:integration

    Create a .env file in the root directory with the following variables:

    MAKE_API_KEY="<your-api-key>"
    MAKE_ZONE="<zone>"
    MAKE_TEAM="<team-id>"
    MAKE_ORGANIZATION="<organization-id>"

    Please provide zone without https:// prefix (e.g. eu2.make.com).

    To build the project:

    npm run build        # Builds both ESM and CJS versions
    

    API documentation can be generated using:

    npm run build:docs