Repository navigation
v0.1.9
v0.1.9
Built-in Package Manager (npm replacement)
Malia now ships a full npm-compatible package manager. No separate Node.js installation required.
- 25 npm commands: install, uninstall, update, list, outdated, audit, init, link, pack, publish, prune, dedupe, rebuild, cache, config, info, fund, whoami, prefix, root, exec, run, test, start, version
npm/npx/nodeshims created on install -- existing workflows work unchanged- Lockfile generation:
package-lock.jsonv3 - Dependency resolution: semver ranges, peer deps, optional deps, bundled deps
- Download cache:
~/.malia/cachewith SHA-1 integrity verification - Private registries:
.npmrcauth tokens, scoped registries - Supply-chain security: lifecycle scripts (
postinstall) disabled by default -- opt in withMALIA_SCRIPTS=1
Concurrency Primitives
malia.parallel.map(items, fn, {concurrency})-- bounded parallel executionmalia.parallel.filter,.each,.reduce,.race,.any,.pool,.pipelinemalia.mutex()/malia.semaphore(n)-- async locksmalia.retry(fn, {attempts, backoff})-- retry with exponential backoffmalia.timeout(promise, ms)-- deadline enforcementmalia.batch(items, size, fn)-- chunked processingmalia.debounce(fn, ms)/malia.throttle(fn, ms)
Built-in Cron Scheduler
malia.cron("*/5 * * * *", fn)-- replacesnode-cron- 5/6-field expressions, ranges, steps, day/month names
cron.every("10s", fn),cron.daily(),cron.weekly(),cron.monthly()- Job control:
start(),stop(),trigger(),runCount,lastRun
Security
jse.secure(handler)-- built-in security headers middleware (replaceshelmet)jse.rateLimit(handler, {max, window})-- per-IP rate limiting (replacesexpress-rate-limit)jse.cors(handler, {origin})-- CORS middleware with preflight (replacescors)setTimeout("string")blocked (eval-based code injection)- Tarball extraction hardened: symlinks/hardlinks rejected, paths canonicalized
- HTTP request smuggling mitigated (conflicting Content-Length + Transfer-Encoding)
- Hot-reload restricted to project directory
Security Engineer Toolkit
malia scan-- static analysis for 30+ vulnerability patternsmalia secrets-- detect leaked API keys (AWS, GitHub, Stripe, OpenAI, Slack, SSH, JWT)malia permissions <file>-- show what permissions a script needs before runningmalia sbom-- generate CycloneDX 1.5 SBOM for compliancemalia deps --licenses-- license audit across dependencies
Developer & Sysadmin Tools
malia doctor-- project health checkmalia serve .-- instant static file server with directory listing, ETags, MIME typesmalia clean [--all]-- remove node_modules, caches, temp filesmalia upgrade-- check for latest versionmalia env-- show resolved environment variables (secrets auto-masked)- Auto
.envloading at startup (replacesdotenv)
Node.js API Additions
EventEmitter.captureRejections,errorMonitor,setMaxListeners,addAbortListenercrypto.hkdf/hkdfSync(HMAC-based Key Derivation)crypto.X509Certificateutil.parseArgs,util.styleText,util.MIMETypeModule._resolveFilename,Module._loadprocess.report,process.getBuiltinModule,process.abort,process.allowedNodeEnvironmentFlagsChildProcess.ref()/unref()/connectedtest.mock.fn()/test.mock.method()/test.mock.reset()Buffer.allocUnsafeSlow,Buffer.prototype.swap64fs.chown/fs.chownSync
npm Packages Replaced (built-in)
| Package | Malia built-in |
|---|---|
| dotenv (160M/week) | Auto .env loading |
| p-limit / p-map (200M+) | malia.parallel.map |
| p-retry (30M) | malia.retry |
| p-timeout (30M) | malia.timeout |
| node-cron (4M) | malia.cron |
| helmet (6M) | jse.secure() |
| express-rate-limit (3M) | jse.rateLimit() |
| cors (14M) | jse.cors() |
| http-server (5M) | malia serve . |
Full Changelog: v0.1.8...v0.1.9
Full Changelog: v0.1.8...v0.1.9
Full Changelog: v0.1.8...v0.1.9
Full Changelog: v0.1.8...v0.1.9
Full Changelog: v0.1.8...v0.1.9