Skip to content

hexcuit/server

Repository files navigation

@hexcuit/server

Hono RPC type-safe client for Project LoL Server

Installation

npm install @hexcuit/server

Usage

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 typed

Development

Server Development

npm install
npm run dev

Deploy

npm run deploy

Type Generation

For generating/synchronizing types based on your Worker configuration:

npm run cf-typegen

Build for npm

npm run build

Publishing

This package is automatically published to npm via GitHub Actions when a new version tag is pushed:

npm version patch  # 0.1.7 → 0.1.8
git push --follow-tags

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •