New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hivem/js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hivem/js

Pure TypeScript SDK for Hivem - auth-based KV service with sync support

latest
npmnpm
Version
0.1.3
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

@hivem/js

  • Pure typescript client
  • default supports all js runtimes
  • sse has support for all pure js clients plus reactnative specific tooling.

Methods

  • This is the entire interface
  • Each key gets identity scoping, so dont reinclude some identity prefix again.
  • Backends API keys dont need signature, so just use empty fields
import { HivemClient } from '@hivem/js';

const client = new HivemClient({
  baseUrl: 'https://api.example.com',
  apiKey: 'BACKEND_API_KEY or FRONTEND_API_KEY'
});

// Sign an identity - (on your backend or authoritative server)
const { identity, signature } = await client.sign('user123');


// Get a value (frontend/backend)
const { key, value } = await client.get(identity, signature, 'my-key');

// Set a value (frontend/backend)
await client.set(identity, signature, 'my-key', 'my-value');

// Subscribe to changes (frontend/backend)
const { close } = client.subscribe(identity, signature, {
  onMessage: (msg) => console.log(msg),
  onError: (err) => console.error(err)
});

Keywords

hivem

FAQs

Package last updated on 14 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts