@hexcuit/server
v0.13.0
Published
[](https://www.npmjs.com/package/@hexcuit/server) [](https://github.com/hexcuit/server/actions/workflows/ci.yml) [![code
Downloads
91
Readme
@hexcuit/server
Hono RPC type-safe client for Project LoL Server
Installation
# Stable release
npm install @hexcuit/server
# Snapshot release (latest main branch)
npm install @hexcuit/server@snapshotUsage
import { hcWithType, type Client } from '@hexcuit/server'
// Create type-safe client
const client = hcWithType('https://your-api.com')
// Type-safe API calls
const result = await client.rank.$get({
query: { discordIds: ['123', '456'] },
})
// Type inference works automatically
const ranks = result.ranks // fully typedDevelopment
Server Development
npm install
npm run devDeploy
npm run deployType Generation
For generating/synchronizing types based on your Worker configuration:
npm run cf-typegenBuild for npm
npm run buildPublishing
This package is automatically published to npm via GitHub Actions:
- Stable release: When a changeset PR is merged
- Snapshot release: When any PR is merged to main (
@snapshottag)
License
MIT
