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

@vicaniddouglas/js_aide

Latest version: v1.23.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: vicsani
3 Versions
496 Downloads

Scan summary

@vicaniddouglas/js_aide was last scanned on 1 Dec 2026 at version 1.23.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 1.23.0.
  • Downloads: 496 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.23.0 LATEST 1 Dec 2026 No rules fired
1.22.0 12 Nov 2026 No rules fired
1.21.0 10 Nov 2026 No rules fired

No rules fired in 1.23.0

Findings

Findings for v1.23.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 1.23.0; other versions have their own rules, not their own score.

README

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

@vicaniddouglas/js_aide

Documentation & Demo

JS Aide is a high-performance, modular utility collection designed for modern web applications. Whether you're building a native SPA or an enterprise-grade MPA, JS Aide provides the orchestrated power you need.

Live Playground

Explore all library features—including the new Asynchronous Handshaking system—directly in our Interactive Sandbox.

Router

A modern, feature-rich client-side router for Single-Page Applications (SPAs). Features include History API navigation, dynamic route segments (/users/:id), and view lifecycle hooks (beforeEnter, beforeLeave).

Validator

A collection of high-precision validation utilities. Handles complex email logic, phone number formatting, and mandatory field checks out of the box.

Input Handlers

Utilities for enhanced DOM interaction, such as restricting input to specific characters, real-time number formatting, and custom select behaviors.

HTTP Engine

A "Zero-Touch" HTTP client built on sendRequest. Features automatic retries with exponential backoff, request queuing, and standardized response objects.

Dates & Timing

Convenience functions for complex date manipulation, including relative timing (timeAgo), humanizeDate, and range calculations.

File Manager

Robust utilities for browser-side file handling, including dynamic DataExporter for Excel/PDF and secure file upload orchestration.

Camera

Advanced module for interacting with device cameras, allowing image capture and video stream management with a single promise-based API.

Figures & Formatting

Specialized formatting for financial data. Includes native support for UGX (Ugandan Shilling) currency defaults and abbreviated large numbers.

Dependency Manager

A smart loader for external libraries (like SheetJS or jsPDF). Manages CDN fallbacks, retry logic, and ensures libraries are only loaded when needed.

Response (ok / error)

A standardized response helper mirroring the Python py_aide.response.Response pattern. Every operation returns { status, data, log }.

  • ok(data) — creates a success response (truthy via valueOf())
  • error(message) — creates an error response (falsy via valueOf())
  • The Response class has a guarded constructor — only ok() and error() can instantiate it; direct new Response(...) throws.
FieldTokenizer

A cryptographic token engine compatible with the Python FieldTokenizer. Produces v3 tokens (URL-safe base64) that are byte-for-byte interchangeable between JS and Python.

  • Non-deterministic — same value produces a different token each time (random XOR seed)
  • Integrity — HMAC-SHA256 verification detects tampering
  • TTL support — tokens can expire; expiry is checked on detokenize()
  • Isolated secrets — different keys produce incompatible tokens
WebSocket Client

A professional-grade WebSocket implementation with automatic reconnection, heartbeat monitoring, and a registry to prevent duplicate connections.

Installation

Install the package via npm:

npm install @vicaniddouglas/js_aide

Or via yarn:

yarn add @vicaniddouglas/js_aide

Usage

Ensure your project is configured to use ES Modules (e.g., by adding "type": "module" to your project's package.json or using a bundler).

Importing Modules

You can import specific modules or all of them:

// Import specific modules for best tree-shaking
import {
  Router,
  sendRequest,
  validatePhoneNumber,
  humanizeDate,
} from "@vicaniddouglas/js_aide";
Example: Using the Router
// main.js
import { Router } from "@vicaniddouglas/js_aide";

// Define your routes, mapping paths to DOM element IDs
const appRoutes = {
  "/": "home-view",
  "/products": "products-list-view",
  "/products/:id": "product-detail-view", // Dynamic segment
  "/profile": "user-profile-view",
};

const router = new Router(appRoutes, "/");

// --- Optional: Add a route guard ---
router.beforeNavigate = async (toPath, navigationContext) => {
  console.log(
    `Attempting to navigate from ${navigationContext.from} to ${toPath}`,
  );

  // Example: Protect the profile route
  if (toPath.startsWith("/profile")) {
    const isAuthenticated = await checkUserAuthentication(); // Your auth logic
    if (!isAuthenticated) {
      console.warn(
        "Access denied: User not authenticated. Redirecting to login.",
      );
      return "/login"; // Redirect to a login page
    }
  }
  return true; // Allow navigation
};

// --- Optional: Listen for navigation events ---
window.addEventListener("router:navigated", (event) => {
  const { path, pathname, params, query, hash } = event.detail;
  console.log(`Navigated to: ${path}`);
  console.log("Params:", params); // e.g., { id: '123' } for /products/123
  console.log("Query:", query); // e.g., { search: 'item' } for /search?search=item
  console.log("Hash:", hash); // e.g., '#section1' for /page#section1
});

// --- Example: Define view lifecycle hooks on your DOM elements ---
// Assuming you have a <div id="product-detail-view"> in your HTML
const productDetailView = document.getElementById("product-detail-view");
if (productDetailView) {
  productDetailView.beforeEnter = async (routeParams) => {
    console.log(`Entering product detail view for ID: ${routeParams.id}`);
    // Fetch product data based on routeParams.id
    const product = await fetchProductData(routeParams.id);
    // Render product details into the view
    renderProductDetails(productDetailView, product);
  };

  productDetailView.beforeLeave = () => {
    console.log("Leaving product detail view. Cleaning up...");
    // Dispose of any event listeners or resources specific to this view
    cleanupProductDetailResources();
  };
}

// Manually navigate (or click an <a> tag)
router.navigate("/products/123?utm_source=email#overview");
Example: Using the WebSocket Client

The WebSocketClient is designed to be "Zero-Touch," handling connection lifecycles and resource management automatically.

import { WebSocketClient, ConnectionEvent } from "@vicaniddouglas/js_aide";

// The constructor automatically reuses instances for the same URL (Registry Pattern)
const ws = new WebSocketClient("ws://localhost:8000");

// Listen for connection events
ws.on("open", () => {
  console.log("Connected to server!");
});

// Register a handler for a specific event
ws.onMessage("user_update", (data) => {
  console.log("Profile updated:", data);
});

ws.connect();
ws.send(event, data) vs ws.sendWithAck(event, data)
  1. ws.send(): A "fire and forget" method. It sends the data and returns immediately. Use this for non-critical updates like typing indicators.
  2. ws.sendWithAck(): Returns a Promise that resolves when the server confirms receipt. Use this for critical actions like saving a profile or processing a payment.
// Critical action with Acknowledgement
try {
  const response = await ws.sendWithAck("save_profile", { bio: "Hello world" });
  console.log("Profile saved successfully:", response);
} catch (error) {
  console.error("Failed to save profile (timed out):", error.message);
}
The Backend Contract (Implementing Acknowledgements)

To support sendWithAck(), your backend (e.g., Python/FastAPI, Node.js, Go) must follow the @vicaniddouglas framework standard:

  1. The client sends a message containing an id and ack: true.
  2. The server must respond with a message containing:
    • event: "ack"
    • id: The exact same ID sent by the client.
    • success: true or false.
    • data (optional): Any response data to return to the client.

Example Server Response (JSON):

{
  "event": "ack",
  "id": "1712065432123-0",
  "success": true,
  "data": { "status": "saved" }
}
Example: Using the Requests Module

The sendRequest function is a proactive HTTP client that standardizes all responses into a single dictionary format. It automatically handles error popups and callbacks, eliminating the need for try-catch blocks.

Standardized Response

Every call returns a Promise that always resolves to this structure:

{
  status: boolean, // true if Success, false if Error (Network or Business)
  log: string,    // Error message on failure, or "" on success
  data: any,       // The actual payload from the server
  httpCode: number // The raw HTTP status code
}
New Proactive Options
Option Type Default Description
onSuccess Function null Runs automatically if status is true. Strictly awaited.
onError Function null Runs automatically if status is false. Strictly awaited.
showLoading Function null Called with true/false. Strictly awaited.
silent Boolean \| Array \| Function false Disables the automatic error popup. Accepts a boolean, array of statuses, or a predicate function.
mapError Function null (response) => string mapper for the failure message. Runs before onError and the popup, so it decides what the user reads.
retryable Boolean null Retry policy for POST/PUT/PATCH/DELETE. true retries them, false never retries, omitted only retries a write that carries an Idempotency-Key.
Error Messages, Interceptors and silent

A failure is finished in one documented order, for every kind of failure (non-2xx, a {status:false} envelope inside a 200, an unconfigured base URL, or a runtime throw):

mapError -> response interceptors -> error interceptors -> onError -> automatic popup

Because the message-interception step runs before the popup, a mapper fixes the text for every caller — whether or not it remembered to pass silent.

import { initRequestHandler } from "@vicaniddouglas/js_aide";

initRequestHandler({
  apiUrl: "https://api.example.com",
  // One place that turns machine text into something a cashier can act on.
  mapError: (res) => {
    if (res.data?.code === "auth_failed") return "Your session expired. Please log in again.";
    if (res.httpCode === 0) return "Cannot reach the server. Contact the system admin.";
    if (res.httpCode >= 500) return "The server failed to complete this. Try again.";
    return null; // null/"" keeps the server's own message
  },
});

// Works with silent (your own dialog) …
await sendRequest({ endpoint: "/api/login", silent: true });
// … and without it (the library's dialog shows the mapped text).
await sendRequest({ endpoint: "/api/login" });

A response interceptor sees the same pre-popup response and can do more than rewrite the text:

import { interceptors } from "@vicaniddouglas/js_aide";

interceptors.response((res) => {
  if (res.status) return res;

  // 1. Suppress the library popup because the app shows its own modal.
  if (res.data?.code === "auth_failed") {
    showSessionExpiredModal();
    return { ...res, suppressPopup: true };
  }

  // 2. Recover the request: status:true skips onError and the popup.
  // return { ...res, status: true, data: cachedValue };

  return res;
});

A hook must return the response object; a non-object return is ignored (the previous response is kept) so one careless interceptor cannot break the chain.

Retries and Writes

GET/HEAD/OPTIONS are retried on 0, 408 and 5xx up to maxRetries (default 3) with backoff. A write is only retried when it is safe to repeat it:

// Never retried: a POST that timed out may already have been applied.
sendRequest({ endpoint: "/api/entrant/credit", payload: { amount: 100 } });

// Retried, because the server can deduplicate on the key.
sendRequest({
  endpoint: "/api/entrant/credit",
  headers: { "Idempotency-Key": crypto.randomUUID() },
  payload: { amount: 100 },
});

// Retried because the endpoint is idempotent by design.
sendRequest({ endpoint: "/api/settings", payload: form, retryable: true });

retryable: false disables retries entirely, including for reads.

Base URL Readiness

Requests that use a relative endpoint need apiUrl. If a page fires a request before initRequestHandler({ apiUrl }) has run, sendRequest waits for the base URL instead of building a broken one, then fails loudly if it never arrives.

// Fired during startup, before the app finished configuring the handler.
const pending = sendRequest({ endpoint: "/get_device_logs" });

// A moment later the app boots:
initRequestHandler({ apiUrl: "https://api.example.com" });

// The queued request is released against https://api.example.com/get_device_logs
await pending;
Option Type Default Description
apiUrlWait Number 5000 How long a request waits for apiUrl before failing. 0 fails immediately.

Absolute endpoints (endpoint starting with http) skip the wait entirely. When apiUrl never becomes available the response is { status: false, log: "RequestHandler: apiUrl is not configured. …" } and no request is sent — a missing base URL can never turn into a relative URL such as null/get_device_logs.

Usage Patterns

1. The "Sequential Async Flow" (Awaiting Callbacks) Because sendRequest strictly awaits your callbacks, you can safely use async/await inside them without worrying about race conditions or premature page reloads.

import { sendRequest, popup } from "@vicaniddouglas/js_aide";

await sendRequest({
  endpoint: "/api/save",
  onSuccess: async (data) => {
    // This popup is BEAUTIFUL and BLOCKING.
    // sendRequest will NOT finish until the user clicks OK.
    await popup.success("Settings Saved!");
  },
});

// This reload is GUARANTEED to happen only after the popup is closed.
window.location.reload();

2. The "Fire and Forget" (Proactive Success) No need to check status if you only care about success. If it fails, the user gets a popup automatically.

import { sendRequest } from "@vicaniddouglas/js_aide";

sendRequest({
  endpoint: "/api/settings",
  onSuccess: (data) => console.log("Profile updated!", data),
});

2. The "Sequential Chain" (Linear Await) Since the promise never rejects, you can write linear logic without try-catch.

const res = await sendRequest({ endpoint: "/profile" });

if (res.status) {
  // Since status is true, we know data is safe to use
  const stats = await sendRequest({ endpoint: `/stats/${res.data.id}` });
  if (stats.status) render(stats.data);
}

3. Dynamic Error Suppression (Silent mode) Use the silent configuration to selectively hide the error popup. It accepts a boolean, an array of HTTP statuses, or a predicate function.

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 @vicaniddouglas/js_aide

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229