@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
localStoragefor 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
@eaera-com/cms-sdk
EAERA CMS SDK — data access layer for Nuxt 3 apps (ofetch + Pinia + typed servic...
7,106
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 | |
| 1.0.31 | ^3.4.0 | MIT | |
| 1.0.30 | ^3.4.0 | MIT | |
| 1.0.29 | ^3.4.0 | MIT | |
| 1.0.28 | ^3.4.0 | MIT | |
| 1.0.27 | ^3.4.0 | MIT | |
| 1.0.25 | ^3.4.0 | MIT | |
| 1.0.24 | ^3.4.0 | MIT | |
| 1.0.23 | ^3.4.0 | MIT | |
| 1.0.22 | ^3.4.0 | MIT | |
| 1.0.21 | ^3.4.0 | MIT | |
| 1.0.20 | ^3.4.0 | MIT | |
| 0.1.7 | ^3.4.0 | MIT | |
| 0.1.6 | ^3.4.0 | MIT | |
| 0.1.5 | ^3.4.0 | MIT | |
| 0.1.4 | ^3.4.0 | MIT | |
| 0.1.3 | ^3.4.0 | MIT | |
| 0.1.2 | ^3.4.0 | MIT | |
| 0.1.1 | ^3.4.0 | MIT | |
| 0.1.0 | ^3.4.0 | MIT |