Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@kalamdb/react

Latest version: v0.9.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: slipxnot
57 Stars
5 Forks
5 Versions
317 Downloads
Rust Repo language

Scan summary

@kalamdb/react was last scanned on 30 Nov 2026 at version 0.9.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 0.9.0.
  • Downloads: 317 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.0 LATEST 30 Nov 2026 No rules fired
0.8.0 2 Nov 2026 No rules fired
0.7.0-beta.0 17 Sep 2026 No rules fired
0.6.0-rc.0 31 Aug 2026 Not shown
0.5.6-rc.0 14 Aug 2026 Not shown

No rules fired in 0.9.0

Findings

Findings for v0.9.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.9.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@kalamdb/react

React bindings for KalamDB live queries. The package exposes hook-first APIs plus thin component wrappers over the shared @kalamdb/client live controller.

Install

npm install @kalamdb/react @kalamdb/client react react-dom

Typed Drizzle query mode also needs @kalamdb/orm and drizzle-orm:

npm install @kalamdb/orm drizzle-orm

Basic Usage

import { KalamProvider, LiveQuery } from '@kalamdb/react';
import { createClient } from '@kalamdb/client';

const client = createClient({ url: 'http://localhost:2900' });

export function App() {
  return (
    <KalamProvider client={client}>
      <LiveQuery query="SELECT * FROM chat.messages WHERE room = 'main' ORDER BY created_at ASC">
        {({ rows, state, insert }) => (
          <section>
            {state.loading ? <p>Loading...</p> : null}
            {rows.map((row) => <p key={row.id.asString()}>{row.body.asString()}</p>)}
            <button
              disabled={state.inserting}
              onClick={() => insert('chat.messages', { room: 'main', body: 'Hello' })}
            >
              Send
            </button>
          </section>
        )}
      </LiveQuery>
    </KalamProvider>
  );
}

Raw SQL live mode supports the live-compatible subset in v1. Ordering and limits are normalized into client-side projections where possible; unsupported SQL shapes fail with a descriptive error.

Typed Live Queries

Use typed mode when you already have a Drizzle schema from @kalamdb/orm.

import { LiveQuery } from '@kalamdb/react';
import { asc, eq } from 'drizzle-orm';
import { messages } from './schema.generated';

export function MessagesPane({ conversationId }: { conversationId: string }) {
  return (
    <LiveQuery
      table={messages}
      where={(table) => eq(table.conversationId, conversationId)}
      orderBy={(table) => asc(table.createdAt)}
      deps={[conversationId]}
    >
      {({ rows, state, insert }) => (
        <section>
          {rows.map((row) => <article key={row.id}>{row.body}</article>)}
          <button
            disabled={state.inserting}
            onClick={() => insert(messages).values({
              id: crypto.randomUUID(),
              conversationId,
              role: 'user',
              body: 'Hello',
              status: 'sent',
              createdAt: new Date(),
              updatedAt: new Date(),
            })}
          >
            Send
          </button>
        </section>
      )}
    </LiveQuery>
  );
}

Multiple Live Datasets

useLiveQueries and LiveQueries open one controller per named query and return a typed context for each dataset plus aggregate mutation and connection state.

import { useLiveQueries, useLiveSelection } from '@kalamdb/react';
import { asc, eq } from 'drizzle-orm';
import { approvals, messages, toolCalls, typing } from './schema.generated';

export function AssistantWorkspace({ conversationId }: { conversationId: string }) {
  const live = useLiveQueries({
    queries: {
      messages: {
        table: messages,
        where: (table) => eq(table.conversationId, conversationId),
        orderBy: (table) => asc(table.createdAt),
        deps: [conversationId],
      },
      typing: { table: typing, where: (table) => eq(table.conversationId, conversationId), deps: [conversationId] },
      toolCalls: { table: toolCalls, where: (table) => eq(table.conversationId, conversationId), deps: [conversationId] },
      approvals: { table: approvals, where: (table) => eq(table.conversationId, conversationId), deps: [conversationId] },
    },
    deps: [conversationId],
  });

  const assistant = useLiveSelection(live, (context) => ({
    messages: context.messages.rows,
    typingUsers: context.typing.rows.map((row) => row.userName),
    activeTools: context.toolCalls.rows.filter((row) => row.status !== 'completed'),
    pendingApprovals: context.approvals.rows.filter((row) => row.status === 'pending'),
    approve: (approvalId: string) => context.update(approvals, approvalId).set({ status: 'approved' }),
  }));

  return <AssistantLayout {...assistant} busy={live.state.loading || live.state.updating} />;
}

Rows remain authoritative from KalamDB live streams. Mutation state is local UI state for disabling buttons, showing spinners, and surfacing errors; it does not mutate row data optimistically.

React AI Chat Example

The repository includes a standalone validation app in examples/react-ai-chat. It demonstrates conversation navigation, history loading, multi-file messages, typing state, streamed assistant activity, tool calls, and human approvals using @kalamdb/react.

cd examples/react-ai-chat
npm install
npm run setup
npm run dev

The example defaults to demo mode so the React components are immediately usable without a server. Set VITE_KALAMDB_DEMO_MODE=false after applying chat-app.sql to a running KalamDB server.

License

Licensed under the Apache License, Version 2.0 (Apache-2.0). See the packaged LICENSE.txt and NOTICE files.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @kalamdb/react

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229