Licence
BUSL-1.1
Version
0.0.124
Deps
1
Size
383 kB
Vulns
0
Weekly
0
@sudobility/sudojo_client
React Query hooks and API client for the Sudojo Sudoku learning platform.
Installation
bun add @sudobility/sudojo_client
Usage
import { useDailyPuzzle, useLevels } from '@sudobility/sudojo_client';
function Component() {
const { data: daily, isLoading } = useDailyPuzzle();
const { data: levels } = useLevels();
}
import { SudojoClient } from '@sudobility/sudojo_client';
const client = new SudojoClient(networkClient, 'https://api.sudojo.com');
const levels = await client.getLevels(token);
API
- Hooks:
useDailyPuzzle,useLevels,useBoards,useTechniques,useChallenges,useProgress, and more - Client:
SudojoClientclass with 40+ typed API methods - Solver:
useSolverhooks for hint generation integration - Query keys: Centralized query key factory for cache management
Development
bun run build # Build to dist/
bun run test # Run Vitest
bun run typecheck # TypeScript check
bun run lint # ESLint
bun run check-all # Lint + typecheck + tests
Related Packages
@sudobility/sudojo_types-- Type definitions (peer dependency)@sudobility/sudojo_lib-- Business logic hookssudojo_app/sudojo_app_rn-- Consumer apps
License
BUSL-1.1