open-index/open-npm huggingface dataset:
npm package: @qlever-llc/trellis
Description: Client-side Trellis runtime, models, and contract helpers for TypeScript applications.
Latest version: 0.6.0

# @qlever-llc/trellis

JavaScript Trellis client runtime. Provides contract-driven client helpers and runtime error types.

```typescript
import { defineContract } from "@qlever-llc/trellis";
import { auth } from "@qlever-llc/trellis/sdk/auth";

const app = defineContract({
  id: "example.app@v1",
  displayName: "Example App",
  description: "Example Trellis browser client.",
  kind: "app",
  uses: {
    auth: auth.useDefaults(),
  },
});

const client = app.createClient(nc, authSession, opts);
const me = await client.requestOrThrow("Auth.Me", {});
```

Server connection helpers live in `@qlever-llc/trellis/server*` to keep the root package browser-safe.
npm package: @qlever-llc/trellis-auth
Description: Authentication helpers for Trellis browser and service clients.
Latest version: 0.5.1

# @qlever-llc/trellis-auth

Authentication helpers for Trellis browser and service clients.

Includes session key management, request signing, browser login/callback helpers, and shared auth schemas.

Pairs with `@qlever-llc/trellis`, `@qlever-llc/trellis-svelte`, and the generated SDK packages. See [ADR: Auth](../../../design/adr-trellis-auth.md).
npm package: @qlever-llc/trellis-contracts
Description: Contract and schema helpers for Trellis TypeScript services and applications.
Latest version: 0.5.1

# @qlever-llc/trellis-contracts

TypeScript contract authoring helpers and runtime metadata types for Trellis contracts.

Provides the `defineContract(...)` API for authoring contracts in TypeScript and consuming generated SDK metadata. The Rust `trellis` CLI builds canonical manifest artifacts, packs catalogs, and generates SDKs from contract source.

See [ADR: TypeScript Contract Authoring](../../../design/adr-trellis-typescript-contract-authoring.md).
npm package: @qlever-llc/trellis-result
Description: Class-based Result and AsyncResult types for Trellis TypeScript applications.
Latest version: 0.5.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @qlever-llc/trellis-result

Class-based `Result<T, E>` and `AsyncResult<T, E>` types for TypeScript, inspired by Rust.

Provides explicit error handling with method chaining and the `take()` pattern for early returns, without relying on exceptions.

```typescript
import { Result, AsyncResult } from "@qlever-llc/trellis-result";

const user = await fetchUser(id).take();
if (Result.isErr(user)) return user;
```

Key surface area:

- `Result.ok(value)` / `Result.err(error)` — construction
- `Result.try(() => ...)` / `AsyncResult.try(async () => ...)` — wrap throwing code
- `.map()`, `.mapErr()`, `.andThen()` — transforms
- `.take()` — early return pattern (Rust's `?` operator equivalent)
- `.match({ ok, err })` — pattern matching
- `Result.all()` / `Result.any()` — combinators
- `MaybeAsync<T, E>` — flexible sync/async return type
- `BaseError` — base class for all Trellis error types

See the source and inline JSDoc for full API details.
npm package: @qlever-llc/trellis-server
Description: Server-side Trellis helpers with runtime-neutral core and Node adapter entrypoints.
Latest version: 0.5.1

# @qlever-llc/trellis-server

Server-side helpers for Trellis services.

- `@qlever-llc/trellis-server` — shared server core, types, and health helpers
- `@qlever-llc/trellis-server/node` — Node runtime adapter
- `@qlever-llc/trellis-server/deno` — Deno runtime adapter

Use the runtime-specific subpath when connecting a service.

Connected services keep `mount(...)` typed from `contract.API.owned`, while outbound calls stay typed from `contract.API.trellis`. Use `service.requestOrThrow(...)` for the common throw-on-error path, or `service.trellis.request(...)` when you need the raw `Result`.
npm package: @qlever-llc/trellis-svelte
Description: Svelte components and state helpers for Trellis browser applications.
Latest version: 0.6.0

# @qlever-llc/trellis-svelte

Svelte integration for Trellis browser applications.

Provides `TrellisProvider` for app-level wiring, along with reactive helpers for auth state, NATS connection state, and Trellis client state.

Prefer `createTrellisApp(...)` for app-scoped auth creation and typed `app.getTrellis()` access without passing the contract around at every call site.

Uses the contract/runtime model from `@qlever-llc/trellis/contracts` and `@qlever-llc/trellis`.
npm package: @qlever-llc/trellis-telemetry
Description: Shared OpenTelemetry helpers for Trellis runtimes, clients, and jobs.
Latest version: 0.5.1

# @qlever-llc/trellis-telemetry

Shared OpenTelemetry helpers for Trellis packages.

- `@qlever-llc/trellis-telemetry` — runtime-neutral telemetry helpers, Trellis RPC span helpers, and tracing setup

Shared by `@qlever-llc/trellis`, `@qlever-llc/trellis-server`, and other packages that need tracing.
npm package: @qlever-llc/trellis-trellis
Description: Client-side Trellis runtime, models, and contract helpers for TypeScript applications.
Latest version: 0.4.0
Deprecated: Renamed to @qlever-llc/trellis. Please migrate to the new package name.

# @qlever-llc/trellis-trellis

JavaScript Trellis client runtime. Provides contract-driven client helpers and runtime error types.

```typescript
const client = contract.createClient(nc, auth, opts);
```

Server connection helpers live in `@qlever-llc/trellis-server` to keep this package browser-safe.