@ops-ai/nuxt-toggly-server

Server-side feature flag utilities for Nuxt with Nitro support
1,631 5
Install
npm install @ops-ai/nuxt-toggly-server
Latest Version:1.10.0
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: scatteredcode

@ops-ai/nuxt-toggly-server

Server-side feature flag utilities for Nuxt with Nitro support

Install

npm install @ops-ai/nuxt-toggly-server

For usage/metrics gRPC transport on Node/Nitro (optional):

npm install @grpc/grpc-js @grpc/proto-loader

Telemetry

When appKey is set, feature usage and business metrics are enabled by default (disable with enableUsageTracking: false / enableMetrics: false, or TOGGLY_DISABLE_TELEMETRY=1). Checks via isServerFeatureOn / the shared client record usage; call recordServerUsage / measureServerMetric / flushServerTelemetry as needed.

  • Node / Nitro node-server: native gRPC to metricsBaseUrl (default https://app.toggly.io/).
  • Nitro edge / Workers-like: set telemetryTransport: 'https' (auto when isEdgeRuntime()), which POSTs gateway JSON to api/usage/stats and api/metrics. Process signal handlers are disabled on the HTTPS path.

Browser @ops-ai/nuxt-toggly-client is out of scope for this pipeline.

Live updates

By default, initServerToggly enables WebSocket live updates (enableLiveUpdates: true) and injects the ws package as webSocketImpl, while keeping refreshInterval: 0 (no HTTP polling). Pass enableLiveUpdates: false to disable. Edge/short-lived runtimes skip sockets in core.

Documentation

License

MIT — see also the repository LICENSE.

Issues

Use the structured issue templates.

Related Packages

@ops-ai/nuxt-toggly-client

Client-side feature flag composables and components for Nuxt/Vue 3

1,745 5
@ops-ai/nuxt-toggly

Feature flags for Nuxt 3 and 4 - composables, components, directives, and server...

1,502 5
@master/css.nuxt

Integrate Master CSS in Nuxt way

7,377 1,953
nitro-test-utils

Testing toolkit for Nitro full-stack servers

211,117 112

Version History

Version Released License
1.10.0 MIT
1.9.0 MIT
1.8.0 MIT
1.7.0 MIT
1.5.0 MIT