@sudobility/whisperly_client
v1.0.56
Published
React client library for Whisperly API with TanStack Query hooks
Maintainers
Readme
@sudobility/whisperly_client
Typed API client and TanStack Query hooks for the Whisperly localization platform.
Installation
bun add @sudobility/whisperly_clientUsage
import { WhisperlyClient, useProjects, useTranslate } from "@sudobility/whisperly_client";
const client = new WhisperlyClient({ baseUrl, getIdToken });
// Direct client usage
const projects = await client.getProjects(entitySlug);
// React hook usage
const { data: projects } = useProjects(client, entitySlug);API
WhisperlyClient Methods
- Projects:
getProjects,createProject,updateProject,deleteProject,generateProjectApiKey - Dictionary:
getDictionaries,searchDictionary,createDictionary,updateDictionary,deleteDictionary - Translation:
translate(public, no auth required) - Analytics:
getAnalytics - Settings:
getSettings,updateSettings - Languages:
getProjectLanguages,getAvailableLanguages
TanStack Query Hooks
useProjects, useProject, useDictionaries, useSearchDictionary, useProjectLanguages, useAvailableLanguages, useSettings, useAnalytics, useTranslate, useGenerateApiKey, useDeleteApiKey
Development
bun run build # Build ESM
bun run test:run # Run tests once
bun run verify # All checks + buildRelated Packages
whisperly_types-- Shared type definitionswhisperly_lib-- Business logic with Zustand storeswhisperly_api-- Backend API serverwhisperly_app-- Web application
License
BUSL-1.1
