Getting Started with Zeq OS
Zeq OS is an open-source scientific computing framework — a language-agnostic middleware platform — that takes verified physics equations and makes them callable as software functions. Pick your language and run your first computation in under a minute.
Choose Your Language
- Python
- JavaScript
- Rust
- Go
- C++
- Java
- C#/.NET
- Swift
- Ruby
- PHP
- R
- WebAssembly
pip install zeq-os
from zeq_os import ZeqSDK, HulyaSync, OperatorRegistry
sdk = ZeqSDK()
# Earth-Moon gravitational force (NM21: F = G × m₁ × m₂ / r²)
result = sdk.execute(
"Calculate gravitational force between Earth and Moon",
operators=["KO42", "NM21"]
)
# G = 6.674e-11, m₁ = 5.97e24 kg, m₂ = 7.35e22 kg, r = 3.84e8 m
# Result ≈ 1.98e20 N, precision ≤ 0.1%
print(f"Force: {result.value:.3e} N")
print(f"Operators: {result.selected_operators}")
print(f"Precision: {result.precision}%")
# Access the operator registry — the Periodic Table of Motion
registry = OperatorRegistry.default()
print(f"\n{registry.count} operators across {len(registry.categories)} categories")
# Temporal synchronization
sync = HulyaSync()
print(f"Zeqond: {sync.get_zeqond()}")
print(f"Phase: {sync.current_phase():.4f}")
npm install @zeq-os/sdk
import { ZeqSDK, HulyaSync, OperatorRegistry } from '@zeq-os/sdk';
const sdk = new ZeqSDK();
// Photon energy at visible light frequency (QM10: E = hν)
const result = await sdk.execute(
"photon energy at 5e14 Hz visible light",
{ operators: ['KO42', 'QM10'] }
);
// QM10: E = h × ν = 6.626e-34 × 5e14 ≈ 3.313e-19 J
console.log(`Energy: ${result.value.toExponential(3)} J`);
console.log(`Operators: ${result.selectedOperators}`);
console.log(`Precision: ${result.precision}%`);
// Access the operator registry — the Periodic Table of Motion
const registry = await OperatorRegistry.default();
console.log(`${registry.count} operators across ${registry.categories.length} categories`);
// Temporal synchronization
const sync = new HulyaSync();
console.log(`Zeqond: ${sync.getZeqond()}`);
console.log(`Phase: ${sync.currentPhase().toFixed(4)}`);
# Cargo.toml
[dependencies]
zeq-os = "1.287.5"
use zeq_os::{ZeqSDK, HulyaSync, OperatorRegistry};
fn main() {
let sdk = ZeqSDK::new();
// Schwarzschild radius of the Sun (GR37: r_s = 2GM/c²)
let result = sdk.execute(
"Schwarzschild radius of the Sun",
Some(vec!["KO42".into(), "GR37".into()])
);
// M_sun = 1.989e30 kg → r_s ≈ 2,955 m
println!("Radius: {:.0} m", result.value);
println!("Operators: {:?}", result.selected_operators);
println!("Master Sum: {:.6}", result.master_sum);
println!("Phase Coherence: {:.1}%", result.phase_coherence);
// Access the operator registry — the Periodic Table of Motion
let registry = OperatorRegistry::default();
println!("{} operators loaded", registry.count());
// Temporal synchronization
let sync = HulyaSync::new();
println!("{}", sync.daemon_tick());
go get github.com/hulyasmath/zeq-os/sdk/go
package main
import (
"fmt"
zeq "github.com/hulyasmath/zeq-os/sdk/go/pkg/core"
)
func main() {
sync := zeq.NewHulyaSync()
fmt.Printf("Phase: %.4f\n", sync.CurrentPhase())
fmt.Printf("Zeqond: %d\n", sync.GetZeqond())
fmt.Printf("KO42: %.6f\n", sync.KO42Automatic())
fmt.Println(sync.DaemonTick())
}
# Header-only — clone and include
git clone https://github.com/hulyasmath/zeq-os.git
# Add sdk/cpp/include to your compiler include path
#include <zeqos/core/sync.hpp>
#include <iostream>
int main() {
zeqos::HulyaSync sync;
std::cout << "Phase: " << sync.current_phase() << std::endl;
std::cout << "Zeqond: " << sync.get_zeqond() << std::endl;
std::cout << "KO42: " << sync.ko42_automatic() << std::endl;
std::cout << sync.daemon_tick() << std::endl;
return 0;
}
<!-- pom.xml -->
<dependency>
<groupId>com.zeqos</groupId>
<artifactId>zeq-os-sdk</artifactId>
<version>1.287.5</version>
</dependency>
import com.zeqos.sdk.*;
ZeqProcessor processor = new ZeqProcessor();
ZeqState state = processor.process("quantum tunneling through barrier");
System.out.println("Domains: " + state.domains);
System.out.println("Operators: " + state.selectedOperators);
System.out.println("Master Sum: " + state.masterSum);
HulyaSync sync = new HulyaSync();
System.out.printf("Phase: %.4f%n", sync.currentPhase());
System.out.printf("Zeqond: %d%n", sync.getZeqond());
dotnet add package ZeqOS.SDK --version 1.287.5
using ZeqOS.SDK;
var processor = new ZeqProcessor();
var state = processor.Process("quantum tunneling through barrier");
Console.WriteLine($"Domains: {string.Join(", ", state.Domains)}");
Console.WriteLine($"Operators: {string.Join(", ", state.SelectedOperators)}");
Console.WriteLine($"Master Sum: {state.MasterSum}");
var sync = new HulyaSync();
Console.WriteLine($"Phase: {sync.CurrentPhase():F4}");
Console.WriteLine($"Zeqond: {sync.UnixToZeqond()}");
// Package.swift
dependencies: [
.package(path: "../sdk/swift")
]
import ZeqOS
let processor = ZeqProcessor()
let result = processor.process(query: "quantum tunneling probability")
print("Domains: \(result.domains)")
print("Operators: \(result.selectedOperators)")
print("Master sum: \(result.masterSum)")
let sync = HulyaSync()
print("Phase: \(sync.currentPhase())")
print("Zeqond: \(sync.getZeqond())")
print(sync.daemonTick())
gem install zeq-os
require "zeq_os"
processor = ZeqOS::ZeqProcessor.new
result = processor.process("quantum tunneling probability")
puts "Domains: #{result.domains}"
puts "Operators: #{result.selected_operators}"
puts "Master sum: #{result.master_sum}"
sync = ZeqOS::HulyaSync.new
puts "Phase: #{sync.current_phase}"
puts "Zeqond: #{sync.get_zeqond}"
puts sync.daemon_tick
composer require zeq/zeq-os
use ZeqOS\SDK\ZeqProcessor;
use ZeqOS\SDK\HulyaSync;
use ZeqOS\SDK\OperatorRegistry;
$processor = new ZeqProcessor();
$result = $processor->process("gravitational time dilation");
echo "Domains: " . implode(', ', $result->domains) . "\n";
echo "Operators: " . implode(', ', $result->selectedOperators) . "\n";
echo "Master Sum: {$result->masterSum}\n";
$sync = new HulyaSync();
echo "Phase: " . number_format($sync->currentPhase(), 4) . "\n";
echo "Zeqond: " . $sync->getZeqond() . "\n";
# Install dependencies
install.packages(c("jsonlite", "R6"))
devtools::install("sdk/r")
library(zeqos)
processor <- ZeqProcessor$new()
result <- processor$process("gravitational time dilation")
cat("Domains:", paste(result$domains, collapse = ", "), "\n")
cat("Operators:", paste(result$selected_operators, collapse = ", "), "\n")
cat("Master Sum:", result$master_sum, "\n")
sync <- HulyaSync$new()
cat("Phase:", sprintf("%.4f", sync$current_phase()), "\n")
cat("Zeqond:", sync$get_zeqond(), "\n")
# Build from the Rust SDK
cd sdk/rust
wasm-pack build --target web --out-dir ../wasm/pkg
<script type="module">
import init, { process } from './pkg/zeq_os.js';
await init();
const result = process("quantum tunneling probability");
console.log(result);
</script>
Core Concepts
Every Zeq OS SDK — regardless of language — provides the same four components:
1. HulyaSync — Temporal Synchronization
HulyaSync is the clock. It converts between Unix time and Zeqond time, calculates the current phase of the 1.287 Hz pulse, and applies modulation to physics values.
f = 1.287 Hz Pulse frequency (derived from fundamental constants)
T = 0.777 s Zeqond duration (one period of the pulse)
α = 0.00129 Modulation depth
Key methods (names vary by language convention):
unix_to_zeqond(t)/zeqond_to_unix(z)— Lossless time conversioncurrent_phase()— Returns [0, 1) within the current Zeqondmodulate(value, t)— Apply HulyaPulse modulation:R(t) = S(t) × [1 + α × sin(2πft)]ko42_automatic(t)— KO42.1 metric tensioner valuedaemon_tick()— Current Zeqond announcement string
2. ZeqSDK — The 7-Step Wizard
ZeqSDK is the primary entry point. It runs the full 7-Step Protocol on a physics query. Give it a natural language query and optional domain hints, and it returns a ZeqState with selected operators, computed metrics, and precision verification.
Authentication required.
sdk.execute()calls the server-side computation API. Pass your JWT token when initialising the SDK:new ZeqSDK({ token })/ZeqSDK(token='...'). See Equation Auth to obtain a token.
3. OperatorRegistry — The Periodic Table of Motion
The registry is served via the API (GET /api/zeq/operators) and provides O(1) lookup by ID, category filtering, and full-text search.
Access tiers:
- No auth: Core 42 operators (metadata only — id, name, description, category). No equations.
- Authenticated: Core 42 operators with full equations included.
- Backend registry: 1,576 operators across 64 categories (v6.3.0) — additional operators accessible via authenticated API queries.
Core public operators: 42 (QM1–QM17, NM18–NM30, GR31–GR41, KO42)
Full registry: 1,576 operators across 64 categories
API endpoint: GET /api/zeq/operators
4. ZeqState — Computation Snapshot
ZeqState is the output of every computation. It captures:
- Timing — Unix timestamp, Zeqond count, phase
- Query — Original query and detected domains
- Operators — Selected operators (always includes KO42)
- Metrics — Master sum, phase coherence, selection rate, domain coverage
- Precision — Verified to ≤0.1% mean error
5. Equation Auth — Identity Without Passwords
Zeq OS uses mathematical equations as authentication keys. Your equation IS your password — the server never stores it, only a SHA-256 hash of the evaluated result at x = 1.287, y = 0.777.
import { ZeqAuthClient } from '@zeq-os/auth';
const auth = new ZeqAuthClient('/auth');
// Register
const { zid, token } = await auth.register('Alice', 'x^2 + sin(y*pi) + phi');
// Login (same equation = same identity)
const login = await auth.login('x^2 + sin(y*pi) + phi');
// Browser: check global auth from any page
if (window.ZeqAuth?.isLoggedIn()) {
const user = window.ZeqAuth.getUser();
console.log(user.id); // zeq-a1b2c3d4e5f6
console.log(user.displayName); // Alice
}
The global navigation bar provides a unified Sign In button across all 44+ apps. Install @zeq-os/auth for server-side integration, or use window.ZeqAuth in the browser.
6. Zeq Vault — Equation-Based Secret Storage
Zeq Vault extends the equation paradigm from identity to encryption. Your master equation derives a 256-bit AES key via PBKDF2 (100,000 iterations, SHA-256), and all secrets are encrypted client-side with AES-256-GCM. The vault never leaves the browser — zero-knowledge architecture by design.
// Vault key derivation (conceptual — runs inside Zeq Vault's Web Crypto layer)
const result = safeEvaluate('x^3 + sin(y*pi) - 42.7'); // x=1.287, y=0.777
const salt = crypto.getRandomValues(new Uint8Array(16));
const key = await crypto.subtle.deriveKey(
{ name: 'PBKDF2', salt, iterations: 100000, hash: 'SHA-256' },
await crypto.subtle.importKey('raw', encode(result), 'PBKDF2', false, ['deriveKey']),
{ name: 'AES-GCM', length: 256 },
false,
['encrypt', 'decrypt']
);
Zeq Vault uses the same recursive descent equation parser as Equation Auth, ensuring a single mathematical identity can authenticate across the ecosystem (Zeq Auth) and encrypt private data (Zeq Vault).
Next Steps
- Equation Auth — Complete guide to equation-based identity
- Zeq Auth Application — The revolutionary login system powering the ecosystem
- Zeq Vault — Equation-based password manager
- ZeqText — Encrypted messaging with TESC protocol
- Core Concepts — Deep dive into HulyaPulse, Zeqond, and the Zeq Equation
- API Gateway — Browse all 1,576 operators via the REST API
- 7-Step Wizard Protocol — Understand the computation pipeline
- Python SDK · JavaScript SDK · TypeScript SDK · Rust SDK · Go SDK · C++ SDK · Java SDK · C# SDK · Swift SDK · Ruby SDK · PHP SDK · R SDK · WASM SDK — Language-specific API references
- Framework Overview — Understand the architecture