@sudobility/testomniac_client
v0.0.14
Published
Client library for Starter API with TanStack Query hooks
Maintainers
Readme
@sudobility/testomniac_client
API client SDK for Testomniac with TanStack Query hooks for AI-powered automated UI testing.
Installation
bun add @sudobility/testomniac_clientUsage
import { TestomniacClient, useHistories, useHistoriesTotal } from "@sudobility/testomniac_client";
const client = new TestomniacClient({ baseUrl, networkClient });
// React hook usage
const { histories, createHistory, deleteHistory } = useHistories({
client,
userId: "firebase-uid",
token,
});
const { data: total } = useHistoriesTotal({ client });API
TestomniacClient
Constructed with { baseUrl, networkClient }. Uses dependency-injected NetworkClient for all HTTP calls.
Hooks
useHistories(config)-- Query + mutations for user history CRUD with auto-invalidationuseHistoriesTotal(config)-- Query for global total (public endpoint)
Cache Settings
staleTime: 5 minutes,gcTime: 30 minutes
Development
bun run build # Build ESM
bun test # Run tests
bun run verify # All checks + buildRelated Packages
testomniac_types-- Shared type definitionstestomniac_lib-- Business logic with Zustand storestestomniac_api-- Backend API servertestomniac_app-- Web apptestomniac_app_rn-- React Native app
License
BUSL-1.1
