Skip to content

Repository files navigation

servora-web

Shared frontend libraries for Servora-Kit web applications.

Packages

Package npm Description
@servora/proto-utils npm Proto/Kratos API utilities: query builders, FieldMask, HTTP client, Kratos errors

Installation

pnpm add @servora/proto-utils

Usage

import { createRequestHandler } from '@servora/proto-utils/client/request'
import { parseKratosError, kratosMessage } from '@servora/proto-utils/client/errors'
import { makeFilter, makeOrderBy, makeUpdateMask } from '@servora/proto-utils/query'

Local Development

This repo is part of the servora-kit workspace. For local development:

# Clone the workspace
git clone git@github.com:Servora-Kit/servora-web.git

# In the servora-kit workspace root
pnpm install

In the kit workspace, pnpm links the local servora-web/packages/proto-utils package. On npm, install @servora/proto-utils; the client, query, and future CRUD/React/Vue helpers are exposed as subpath exports. In the local workspace, linkWorkspacePackages: true automatically symlinks to the source — equivalent to Go's go.work replace directive.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages