@aethex.os/core
v1.0.1
Published
AeThex Standard Library - Cross-platform utilities for metaverse development
Downloads
162
Maintainers
Readme
@aethex.os/core
Standard library for cross-platform metaverse development. Handles user identity, input validation, compliance enforcement, and data synchronization across platforms.
Install
npm install @aethex.os/coreModules
Passport — User Identity
import { Passport } from '@aethex.os/core';
const passport = new Passport('user_123');
await passport.verify();
await passport.sync(['roblox', 'web', 'discord']);SafeInput — PII Detection & Validation
import { SafeInput } from '@aethex.os/core';
const result = SafeInput.validate(userInput);
if (!result.valid) {
console.log(result.violations); // ['email', 'phone']
}
// Scrub PII before storing
const clean = SafeInput.scrub(userInput);Compliance — COPPA / FERPA Audit Logging
import { Compliance } from '@aethex.os/core';
// Check before processing user data
if (!Compliance.isCOPPACompliant(user.age)) {
return; // block for users under 13
}
// Log for audit trail
Compliance.log({
userId: 'user_123',
action: 'data_access',
resource: 'profile',
});DataSync — Cross-Platform State
import { DataSync } from '@aethex.os/core';
const sync = new DataSync({ platforms: ['roblox', 'web'] });
await sync.push({ score: 1200, level: 5 });
const state = await sync.pull();Part of the @aethex.os ecosystem
| Package | Description | |---|---| | @aethex.os/core | Standard library | | @aethex.os/crypto | E2E encryption | | @aethex.os/connect | API client | | @aethex.os/hooks | React hooks | | @aethex.os/mobile | Capacitor mobile | | @aethex.os/registry | Feature gating | | @aethex.os/middleware | Express middleware | | @aethex.os/game | Game platform types | | @aethex.os/lang | AeThex compiler API | | @aethex.os/cli | AeThex CLI | | @aethex.os/webrtc | Voice/video calls |
