New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@sudobility/shaperouter_client

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

0.0.14

@sudobility/shaperouter_client

React client library for ShapeRouter API with TanStack Query hooks

latest
Source
npmnpm
Version
0.0.12
Version published
Weekly downloads
359
96.17%
Maintainers
1
Weekly downloads
 
Created
Source

@sudobility/shaperouter_client

React client library for the ShapeRouter API with state management hooks.

Installation

bun add @sudobility/shaperouter_client

Usage

import { useKeys, useProjects, useAiExecute } from '@sudobility/shaperouter_client';

const { keys, isLoading, refresh, createKey } = useKeys(networkClient, baseUrl);
await refresh(userId, token);

Hooks

HookPurpose
useKeysLLM API key management
useProjectsProject CRUD
useEndpointsEndpoint configuration
useAiExecuteLLM inference
useAnalyticsUsage analytics
useSettingsUser settings

Each hook returns { data, isLoading, error, refresh, clearError, reset } plus CRUD methods.

Development

bun run build        # Build to dist/
bun run test         # Run Vitest
bun run typecheck    # TypeScript check
bun run lint         # ESLint
bun run verify       # Typecheck + lint + test + build
  • @sudobility/shaperouter_types -- Shared type definitions
  • @sudobility/shaperouter_lib -- Zustand stores wrapping these hooks
  • shaperouter_app -- Frontend consumer

License

BUSL-1.1

Keywords

shaperouter

FAQs

Package last updated on 17 Oct 2026

Related posts