@nuxtjp/local-runtime

Fail-closed Nuxt client for a loopback local runtime
989
Install
npm install @nuxtjp/local-runtime
Latest Version:0.1.6
Vue:3
License:Apache-2.0
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: coela

@nuxtjp/local-runtime

日本語

Connect a browser interface to one explicitly configured local Rust runtime, after an explicit user operation.

Install and use

Install the published version identified by npm view @nuxtjp/local-runtime version. Use Nuxt ^4.6.2, Vue ^3.5.40, and Node.js 22.19+ or 24.11+.

npm install @nuxtjp/local-runtime
export default defineNuxtConfig({
  modules: ['@nuxtjp/local-runtime'],
  nuxtJpLocalRuntime: {
    endpoint: 'http://127.0.0.1:37843'
  }
})
<script setup lang="ts">
const runtime = useLocalRuntime()

async function connect(): Promise<void> {
  await runtime.connect(['workflow.issue.read'])
}
</script>

<template>
  <NuxtJpLocalRuntimeStatus :state="runtime.state.value" />
  <button type="button" @click="connect">
    Connect to local runtime
  </button>
</template>

The host must separately allow the page origin. The application supplies the requested capabilities. Browser Local Network Access permission remains controlled by the user and browser.

Scope and interfaces

  • Start connections only after an explicit user operation.
  • Validate bounded loopback responses and display connection state.
  • Keep the initial Nuxt-rendered state idle. A build must not connect to a runtime; connect() remains an explicit browser action.

The application supplies allowed origins and capabilities. The module does not discover resources automatically or persist credentials. The /client and /guards subpaths ship JavaScript and declarations. /types exposes the existing raw TypeScript definitions for type-only imports; /schema exposes the JSON schema.

Development and verification

Use pnpm@10.29.3 and a Node version accepted by package.json:

pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm build

The exact verification dependencies are declared in package.json and pnpm-lock.yaml. Consumer CI exercises the reviewed archive and shared security tool; other environments require their own acceptance. The module/client API, loopback endpoint rules, explicit connection behavior and license terms are retained. A local TGZ test proves archive behavior, not registry availability. Operations, deployment and publication require their own permissions and settings.

Documentation and license

Usage guide · Schemas · Source · Tests · Contributing · Security reporting

Code: Apache-2.0. Retain NOTICE and the prior grants in LICENSE-PREVIOUS.

Consumer dependency security

See dependency security backports before installing this package in a Nuxt application. pnpm consumers must explicitly apply the included backports and verify their locked dependency tree; ordinary npm installation does not apply them.

OSS responsibility and source completion defines the supported package boundary and required acceptance. It does not declare unexecuted source, distribution or production checks complete.

Dependency updates: repository policy. Registry releases: version tags and GitHub OIDC.

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
@the-i18n-kit/eslint-plugin-vue

Authoring rules that keep the i18n kit's scanner sound, and a layer-aware preset...

13,813 11
nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511

Version History

Version Released Vue License
0.1.6 ^3.5.40 Apache-2.0
0.1.5 ^3.5.40 Apache-2.0
0.1.4 ^3.5.40 Apache-2.0
0.1.3 ^3.5.40 Apache-2.0
0.1.2 ^3.5.40 Apache-2.0
Pre-releases (1)
Version Released License
0.0.0-stage