nuralem-bult-sdk
v1.7.0
Published
Serverless, client-side encrypted NoSQL Document Database with a 10GB Free Cloud Tier. Optimized with hybrid L2 caching and edge Raster Content Delivery Blocks (RCDB).
Maintainers
Readme
Nuralem Bult SDK (v1.7.0) — Enterprise Client-Side Encrypted BaaS Database & Real-Time signaling
An enterprise-grade, Zero-Knowledge, client-side encrypted serverless NoSQL document database engine with an integrated 10GB free cloud tier, and real-time Pub/Sub channels. Engineered with high-performance polymorphic storage routing, native disk-based progressive streaming (Blob.slice), hybrid L2 caching, and edge-native Raster Camouflage (RCDB).
Nuralem Bult SDK is designed to be 100% universal and production-ready for any modern startup model—ranging from high-throughput video streaming platforms and secure SaaS platforms to decentralized social networks, P2P videoconferencing, and zero-trust cybersecurity architectures.
⚡ Advanced Architectural Features (The Armor)
1. Unified Real-Time Pub/Sub channels
Establish secure, client-side encrypted real-time chat rooms, signaling pipelines, and synchronization loops without configuring separate MQTT, Socket.io, or WebSockets brokers.
- WebSockets primary routing: Automatically tunnels through the Edge Gateway's WebSocket broker (
wss://). - Encrypted Payloads: Message contents are cryptographically sealed with AES-GCM-256 before transit.
- Offline Mailbox Fallback: In volatile networks, falls back to polling the database key mailbox (
_mailbox) with zero data loss.
2. Multi-Tenant vs. Global Scoping
Control document search visibilities. Avoid data isolation mismatches:
private(default): Hashed using master key, hostname, and client-unique local device salt. Documents written on one machine are locked to that local device.global/public: Hashed using master key and a shared global salt. Enables building public feeds, search logs, and global user posts where a publication sent by one user can be fetched by all others instantly.
3. Native File Format Preservation
Preserves the exact HTML5 File objects (retaining .name, .type, and binary blobs). Supports any file format (MP4, PNG, PDF, ZIP, custom formats) without distortion.
4. 2MB RAM Ceiling (Sliding-Slice Architecture)
Instead of buffering whole files into the V8 active heap, leverages a native progressive streaming model based on Blob.slice(). Exactly 2MB slices are processed in-memory, encrypted, uploaded sequentially, and immediately marked for garbage collection. Guaranteed 2MB memory overhead for 50MB to 5GB+ assets.
5. devMode CORS Whitelisting
Enable local testing (localhost or 127.0.0.1) without triggering CORS origin errors from edge Cloudflare Workers. Automatically signs HMAC signatures using the whitelisted host https://nuralem-bult.kz when devMode: true is initialized.
🚀 Production Integration & Quick Start
import { NuralemBult } from 'nuralem-bult-sdk';
async function runBaaS() {
// 1. Initialize SDK
const db = await NuralemBult.initialize(
"master_password_key",
"https://nuralem-bult-api.nursayat.workers.dev",
"nuralem_premium_api_key_tulen_nursayat_2026",
{ devMode: true } // Bypass CORS on localhost!
);
// -------------------------------------------------------------
// A. Public/Global Scoping (Visible to all users)
// -------------------------------------------------------------
const post = { title: "Great Startup Idea!", author: "Nursayat" };
await NuralemBult.setDocument("ideas", post, { scope: "public" });
// Read post globally from any browser instance
const globalPost = await NuralemBult.getDocument("ideas", { scope: "public" });
// -------------------------------------------------------------
// B. Real-time Pub/Sub Messaging
// -------------------------------------------------------------
const unsubscribe = NuralemBult.subscribe("lobby_chat", (msg) => {
console.log("New real-time chat message received:", msg);
});
await NuralemBult.publish("lobby_chat", { text: "Hello startup founders!" });
// Clean up subscription
unsubscribe();
}📄 License
Distributed under the MIT License. Copyright (c) 2026 Tulen Nursayat. All rights reserved.
