@vitia.ai/secure-api-client-vue

Vue 3 SDK and Vanilla JS SDK for Secure API Client
3,999
Install
npm install @vitia.ai/secure-api-client-vue
Latest Version:1.0.36
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: npm
Maintainer: masanchezvega

@your-scope/vue-sdk

Vue 3 SDK (browser-only), using WebCrypto + fetch, built with Vite (library mode).

Install

pnpm add @your-scope/vue-sdk
# peer deps
pnpm add vue pinia

Usage

import { createApp } from 'vue';
import App from './App.vue';
import { SdkPlugin, SecureApiClient } from '@your-scope/vue-sdk';

createApp(App)
  .use(SdkPlugin, {
    baseUrl: 'https://api.example.com',
    clientId: 'YOUR_CLIENT_ID',
    serverPublicKeyPem: '-----BEGIN PUBLIC KEY-----
...
-----END PUBLIC KEY-----',
    clientIdentityPrivateKeyPem: '-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----'
  })
  .mount('#app');

Or instantiate directly:

import { SecureApiClient } from '@your-scope/vue-sdk';

const client = new SecureApiClient({ /* same options */ });
await client.ensureSession();
const data = await client.get('/some/endpoint');

Notes

  • This SDK keeps a small persistent layer in localStorage for non-cryptographic session fields (tokens, expiry, userId). Cryptographic session keys are not persisted and a new handshake is performed after reload.
  • Ensure your API CORS allows the custom headers used by the client.

Related Packages

@vitia.ai/secure-api-client-js

Vue 3 SDK and Vanilla JS SDK for Secure API Client

348
@eaera-com/cms-sdk

EAERA CMS SDK — data access layer for Nuxt 3 apps (ofetch + Pinia + typed servic...

7,106
create-vite-vue

基于Vite+Vue3创建基础项目模板

3,778
tailwind-tuto

A Vue 3 Starter Boilerplate with TailwindCSS 3, Vue Router 4, Pinia 2, Vite 5, S...

693
@avsbhq/vue

Vue SDK for A vs B feature flags and experiments: composables, a provider compon...

1,431 0

Version History

Version Released Vue License
1.0.36 ^3.4.0 MIT
1.0.35 ^3.4.0 MIT
1.0.34 ^3.4.0 MIT
1.0.33 ^3.4.0 MIT
1.0.32 ^3.4.0 MIT