open-index/open-npm huggingface dataset:
npm package: @gobing-ai/turnstile-api-client-core
Description: Shared low-level HTTP transport primitives for Turnstile SDK packages.
Latest version: 0.3.0

# `@turnstile/api-client-core`

Shared low-level transport utilities for Turnstile SDK packages.

## Audience

Internal package used by:
- `@turnstile/client`
- `@turnstile/admin-client`

This package is not intended to be the primary entrypoint for application teams.

## Owns

- `BaseApiClient`
- `TurnstileError`
- shared request and response types
- shared bearer-token request handling
- shared JSON response parsing

## Does Not Own

- customer checkout APIs
- admin/operations APIs
- OIDC helpers
- subscription helpers

## Usage

```ts
import { BaseApiClient, TurnstileError } from '@turnstile/api-client-core';
```
npm package: @gobing-ai/turnstile-client
Description: Public Turnstile SDK for customer authentication, subscription, checkout, and tracking flows.
Latest version: 0.3.0

# `@turnstile/client`

Public Turnstile integration SDK for application developers.

## Audience

- application teams integrating with Turnstile
- app frontends or app backends using customer-facing Turnstile APIs

## Owns

- customer checkout session creation
- customer billing portal access
- application config fetch
- OIDC helpers
- auth sync helpers
- subscription access helpers
- tracking helpers

## Does Not Own

- admin user management
- settings CRUD
- queue, pipeline, and job operations
- manual Stripe/Zitadel sync
- reconciliation and internal reporting

## Usage

```ts
import { createTurnstileClient } from '@turnstile/client';

const client = createTurnstileClient({
  baseUrl: 'https://turnstile-api.example.com',
  token: 'customer-access-token',
  applicationId: 'surfing',
});

await client.checkout.createSession({
  tier: 'standard',
  billingCycle: 'monthly',
});

const appConfig = await client.config.getApplicationConfig();
```

## Final Public Surface

- `createTurnstileClient(...)`
- `TurnstileClient`
- `client.checkout.createSession(...)`
- `client.billing.createPortalSession(...)`
- `client.config.getApplicationConfig(...)`
- OIDC/auth sync helpers
- subscription access helpers
- tracking helpers

Not exported:

- `TurnstileCustomerClient`
- admin APIs
- transport primitives like `BaseApiClient` or `TurnstileError`
- deprecated `checkout.create(...)`

## Boundary

`@turnstile/client` no longer exposes admin APIs or shared transport primitives.
Use:
- `@turnstile/admin-client` for console and internal admin tooling
- `@turnstile/api-client-core` for low-level transport helpers