Runtime Integrity Membrane

Folija

Zero-overhead tamper detection for Python and Node.js.
Built by OpenDOK Foundation.

$ pip install folija click to copy
View on GitHub
293
files monitored
0ms
per-request overhead
3
alarm channels
100%
open source

Mechanism

How it works

Step 01
🔐

Baseline

At startup, Folija computes a SHA-256 hash of every monitored source file and stores a signed baseline manifest. Any deviation from this manifest is a tamper event.

Step 02
👁

Runtime Watch

A custom sys.meta_path hook intercepts every module import at runtime. Each load is verified against the baseline — zero impact on request latency.

Step 03
🚨

Alarm

On tamper detected: WhatsApp alert fires instantly, a blockchain seal is submitted via ChainBlock POE, and a Redis tamper flag is raised to block further execution.

Getting Started

Installation

# Install
$ pip install folija

# Add to your Django/FastAPI/Flask entry point
from folija import activate

activate()  # Inserts hook into sys.meta_path -- done.

# Optional: custom baseline path + alarm webhook
activate(
    baseline_path=".folija/baseline.json",
    alarm_webhook="https://your-endpoint.example/alarm",
    redis_url="redis://localhost:6379/4",
)
# Install
$ npm install folija

// Add to your app entry point (index.js / server.js)
const { activate } = require("folija");

activate();  // Hooks into Node.js module loader -- done.

// Optional config
activate({
  baselinePath: ".folija/baseline.json",
  alarmWebhook: "https://your-endpoint.example/alarm",
  redisUrl: "redis://localhost:6379/4",
});

Where it fits

Use Cases

🏗

Production Django / FastAPI

Monitor all application modules in production. Instant alert if a file is altered between deploys.

💰

Financial Software

ERP, accounting, and invoicing platforms where a tampered module could mean fraudulent transactions.

Legal Document Systems

Ensure document generation logic is unmodified. Every signed output is provably from unaltered code.

🔒

Mission-Critical Backends

Any Python or Node.js service where integrity guarantees are a compliance or contractual requirement.

Enterprise Grade, Open Source

Folija is production-tested in NO LIMIT ERP — an EU-targeted accounting and business management platform monitoring 293+ critical modules across 9 application domains including finance, legal documents, payroll, and inventory.

The production deployment runs on a hardened Django stack with three independent alarm channels firing in parallel the moment any monitored file deviates from its signed baseline.

✓ WhatsApp real-time alert
✓ ChainBlock POE — blockchain seal
✓ Redis tamper flag — execution halt

Download

Folija v1.0.0 — Runtime Integrity Membrane

📦 .dok Bundle All sources + manifest folija-1.0.0.dok ↓ 🐍 Python pip install folija PyPI → Node.js npm install folija npm → 🔗 Source Code GitHub repository GitHub →
🏛 OpenDOK-2026 Certified — .dok ARH standard bundle included