Skip to main content

Intent-driven programming language that generates secure backend systems from human-readable descriptions. Code is no longer written; it is described.

Project description

๐Ÿง  MadiLang v0.4.0

โœจ Code is no longer written. It is described. โœจ

MadiLang transforms human-readable intent into production-ready, secure, and sovereign backend systems.
Describe what you want โ€” MadiLang generates the rest with cryptographic proof of origin.

MadiLang CI Python Versions License Release Mobile-First Sovereign Signature Ethics by Default Discussions


๐Ÿš€ Quick Links

โœจ Get Started โ€ข ๐Ÿ“– Wiki โ€ข ๐Ÿงฌ Philosophy โ€ข ๐Ÿค Contribute โ€ข ๐Ÿ’ฌ Discussions


๐ŸŒŸ The Sovereign Difference

In a world of boilerplate, complexity, and hidden logic, MadiLang restores clarity, sovereignty, and trust.

Dimension Traditional Development MadiLang
๐Ÿง  Abstraction Write implementation details Describe intent
๐Ÿ” Provenance Manual audit trails Cryptographic signature in every artifact
๐Ÿ›ก๏ธ Security Add as afterthought Security & ethics by default
๐Ÿ“ฑ Accessibility Requires full IDE/PC Mobile-first โ€” develop on Termux/phone
โšก Boilerplate Repetitive setup code Zero boilerplate โ€” generated automatically
๐Ÿ”— Extensibility Modify core or fork Plugin system โ€” extend without touching core
๐ŸŒ Targets Single language per project Multi-target โ€” Node.js, Python, Go (planned)
๐Ÿงช Quality Manual testing Auto-generated tests & CI/CD pipeline

๐Ÿ’Ž MadiLang is not just a tool. It's a declaration: Human intent is the sovereign layer.


๐Ÿ”ฅ Live Example: From Intent to Production API

๐Ÿ“ Describe Your Intent (auth.madi)

entity: User
fields:
  - name: string
  - email: string (unique)
  - password: string (secure)
  - createdAt: datetime (auto)

intent: register_user
route: "/api/signup"
method: POST
inputs: (name, email, password)

steps:
  find User by email as existing_user
  
  if existing_user:
    show error "Email already exists"
    stop process
  
  create User
  generate token
  return success with token

๐Ÿš€ Generate & Run

madi run auth.madi

๐Ÿ“ค Output: Sovereign Backend (Node.js + Express + Prisma)

// โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
// ๐Ÿ” MadiLang Sovereign Intent Signature
// โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
const __MADI_SIGNATURE__ = {
  "developer": { "id": "madani004" },
  "intent": { "hash": "a3f8c2...", "fingerprint": "7d9e1b..." },
  "timestamp": { "iso": "2026-06-14T12:00:00Z" },
  "ethics": { "score": 0.95, "passed": true },
  "signature": { "algorithm": "SHA256-HMAC", "value": "..." }
};
// โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

app.post('/api/signup', validateInputs(['name','email','password']), async (req, res) => {
  try {
    const existing_user = await prisma.user.findUnique({ where: { email: req.body.email } });
    
    if (existing_user) {
      return res.status(400).json({ error: "Email already exists" });
    }
    
    const result = await prisma.user.create({
      data: {
        name: req.body.name,
        email: req.body.email,
        password: await bcrypt.hash(req.body.password, 10)  // ๐Ÿ”’ Auto-hashed
      }
    });
    
    const token = jwt.sign({ id: result.id }, process.env.JWT_SECRET, { expiresIn: '7d' });
    return res.status(200).json({ success: true, token });
    
  } catch (error) {
    res.status(500).json({ error: "Internal server error" });
  }
});

โœ… Secure by default: Password hashing, input validation, error handling, JWT generation.
๐Ÿ” Sovereign by design: Every file carries a verifiable signature binding it to the original intent.


๐Ÿ“ฑ Mobile-First Sovereignty

MadiLang is designed to run anywhere Python runs โ€” including your smartphone.
No heavy IDE. No powerful PC. Just intent and sovereignty.

๐Ÿค– Termux Setup (Android)

# 1. Install dependencies
pkg update && pkg install python nodejs git

# 2. Clone repository
git clone https://github.com/madanimkhitar22-beep/madilang.git
cd madilang

# 3. Install in editable mode
pip install -e .

# 4. Verify installation
madi --version
# ๐Ÿง  MadiLang v0.4.0 โ€” Sovereign Intent Compiler

# 5. Initialize and run
madi init my-backend
cd my-backend
madi run src/main.madi

๐ŸŽ iOS (via Pythonista or similar)

pip install madilang
madi run your_file.madi

๐Ÿ’ก Democratizing development: Build sovereign backends from anywhere, even a smartphone.


๐Ÿ—๏ธ Architecture v0.4.0

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    ๐Ÿง  MadiLang Sovereign Compiler Pipeline                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                                 โ”‚
โ”‚  ๐Ÿ“ Source (.madi)                                                              โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  ๐Ÿ” Parser (Recursive Descent) โ†’ AST                                            โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  ๐Ÿ“‹ Analyzer (Semantic Validation + Ethics Enrichment)                          โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  ๐Ÿ” IntentSignature (Cryptographic Binding + Provenance)                        โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  โš™๏ธ StepCompiler โ†’ IR (Language-Agnostic Intermediate Representation)           โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  ๐Ÿงฉ Plugin Hooks (Ethics, Security, Custom Transformers)                        โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  ๐Ÿ—๏ธ CodeGenerator โ†’ Target Code (Node.js, Python, Go...)                       โ”‚
โ”‚       โ†“                                                                         โ”‚
โ”‚  ๐Ÿ“ค Output + Embedded Signature + Runtime Verification                          โ”‚
โ”‚                                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ Project Structure

madilang/
โ”œโ”€โ”€ madilang/              # ๐Ÿง  Core sovereign package
โ”‚   โ”œโ”€โ”€ compiler/          # ๐Ÿ” Parser, AST, Analyzer
โ”‚   โ”œโ”€โ”€ ir/               # โš™๏ธ IR + Signature Engine
โ”‚   โ”œโ”€โ”€ generators/       # ๐Ÿ—๏ธ Code generators (Node.js, Python, Go)
โ”‚   โ”œโ”€โ”€ stdlib/           # ๐Ÿ“š Auth, Validation, Security
โ”‚   โ”œโ”€โ”€ plugins/          # ๐Ÿงฉ Plugin system (Ethics, Security hooks)
โ”‚   โ””โ”€โ”€ cli/              # ๐Ÿ–ฅ๏ธ Command-line interface
โ”œโ”€โ”€ tests/                # ๐Ÿงช Comprehensive test suite
โ”œโ”€โ”€ examples/             # ๐Ÿ’ก Ready-to-run examples
โ”œโ”€โ”€ tools/                # ๐Ÿค– VSCode extension, dev tools
โ””โ”€โ”€ .github/workflows/    # ๐Ÿ”„ CI/CD pipeline

๐Ÿ” Sovereign Intent Signature

Every artifact generated by MadiLang carries a cryptographic signature that proves:

  • ๐Ÿ‘ค Who authored the original intent
  • ๐Ÿ“ What the intent was (source hash)
  • ๐Ÿ“… When it was generated
  • ๐Ÿ›ก๏ธ Whether it passed ethical review
  • โœ… Integrity โ€” any modification breaks verification

๐Ÿ” Verify Signature

madi verify output.js
# โœ… Signature structure valid
# ๐Ÿ‘ค Developer: madani004
# ๐Ÿ“… Generated: 2026-06-14T12:00:00Z
# ๐Ÿ”– Intent Hash: a3f8c2...
# ๐Ÿ›ก๏ธ Ethics Score: 0.95

๐Ÿงช Runtime Verification

Generated code includes runtime verification helpers:

const verification = __verifyMadiSignature__();
if (!verification.valid) {
  throw new Error("Sovereign signature verification failed!");
}

๐Ÿ›ก๏ธ Ethics & Security by Default

MadiLang enforces ethical and secure patterns at compile time.

โœ… Automatic Security Checks

Check Description
๐Ÿ”’ Secure Fields Fields marked (secure) are automatically hashed with bcrypt
๐Ÿ” Auth Coverage Sensitive routes require authentication protection
๐Ÿ‘ค Role Guards Admin operations enforce role-based access control
๐Ÿšซ Injection Prevention Input validation generated for all inputs
โš ๏ธ Error Safety Generic error messages prevent data leakage

๐Ÿง  Ethics Scoring

The built-in ethics plugin evaluates:

  • ๐Ÿ“Š Privacy: Handling of sensitive data
  • ๐Ÿค Consent: Explicit user consent requirements
  • ๐Ÿ” Transparency: Clear intent and data usage
  • ๐Ÿ“ Accountability: Audit trails and responsibility
  • โš–๏ธ Fairness: Non-discriminatory logic patterns
madi check auth.madi
# ๐Ÿ›ก๏ธ Ethics Score: [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ] 0.95 โœ… PASS

๐Ÿงฉ Plugin System

Extend MadiLang without modifying the core:

from madilang.plugins.base_plugin import BasePlugin, PluginHook, register_plugin

@register_plugin
class CustomAuditPlugin(BasePlugin):
    @property
    def metadata(self):
        return PluginMetadata(
            name="custom-audit",
            version="1.0.0",
            description="Custom audit logging",
            author="Your Name",
            hooks=[PluginHook.POST_GENERATE],
        )
    
    def post_generate(self, context):
        context.generated_code += "\n// Custom audit hook injected\n"
        return context.generated_code

๐Ÿ“ฆ Available Plugins

Plugin Description
ethics-hook Quantifiable ethics scoring and validation
security-hook Vulnerability detection and secure pattern enforcement
sovereign-devkit Integration with external security scanner (optional)
cognition-engine Integration with Sovereign-Cognition-Engine (optional)

๐Ÿš€ CLI Commands

# Initialize new project
madi init my-project

# Compile and run
madi run src/main.madi

# Build without running
madi build src/main.madi --target nodejs --output dist/

# Verify signature
madi verify dist/output.js

# Analyze and validate
madi check src/main.madi

# Show version
madi --version

๐Ÿ“ฆ Installation

๐Ÿ”ง From Source

git clone https://github.com/madanimkhitar22-beep/madilang.git
cd madilang
pip install -e .

๐Ÿ From PyPI (Coming Soon)

pip install madilang

๐Ÿ“‹ Requirements

  • Python 3.8+
  • Node.js 18+ (for running generated code)
  • PostgreSQL (for Prisma integration)

๐Ÿงฌ Philosophy

MadiLang is built on the Mkhitarian Ontology:

Human intent is the sovereign layer.
Code is merely the execution of will.
Ethics and security are not features โ€” they are foundations.

Core Principles

  • ๐Ÿง  Clarity over complexity: Describe what you want, not how to do it
  • ๐ŸŽฏ Intent over scale: Focus on purpose, not boilerplate
  • ๐Ÿ” Sovereignty over convenience: Maintain control and provenance
  • ๐Ÿ›ก๏ธ Ethics by default: Moral considerations embedded in the toolchain
  • ๐Ÿ“ฑ Accessibility for all: Develop from anywhere, even a smartphone

๐Ÿ”— Related Projects


๐Ÿค Join the Sovereign Movement

We welcome contributors, thinkers, and builders from around the world!

๐Ÿ’ฌ Discussions

Have questions? Ideas? Want to share your MadiLang projects?
๐Ÿ‘‰ Join the Discussions

๐Ÿ“‹ Development Setup

# Fork and clone
git clone https://github.com/your-username/madilang.git
cd madilang

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/

# Run linting
ruff check .
black --check .

# Build package
python -m build

๐Ÿงญ Contribution Guidelines

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

โœ… Checklist

  • Tests pass (pytest tests/)
  • Linting passes (ruff check ., black --check .)
  • Documentation updated
  • Examples added if applicable

๐Ÿ“œ Governance


๐Ÿ“œ Changelog

See CHANGELOG.md for detailed release notes.

๐Ÿš€ v0.4.0 Highlights

  • โœจ Complete architecture rewrite with modular design
  • ๐Ÿ” Sovereign Intent Signature system
  • ๐Ÿงฉ Plugin system for extensibility
  • ๐Ÿ“ฑ Mobile-first optimization
  • ๐Ÿ›ก๏ธ Ethics and security hooks
  • ๐Ÿงช Comprehensive test suite
  • ๐Ÿค– VSCode extension with syntax highlighting and snippets
  • ๐Ÿ”„ CI/CD pipeline with quality, security, and integration checks

๐Ÿ”ฎ Roadmap

v0.5.0 (Planned)

  • ๐Ÿ Python/FastAPI generator
  • ๐Ÿฆ€ Go/Fiber generator
  • ๐Ÿงช Auto-testing generator from intents
  • ๐Ÿ“š Live API documentation generation
  • ๐Ÿฉบ madi doctor command for environment diagnostics

v1.0.0 (Vision)

  • ๐ŸŒ Multi-language parity (Node.js, Python, Go)
  • ๐Ÿ”— Pi Network integration for decentralized deployment
  • ๐Ÿง  Sovereign-Cognition-Engine deep integration
  • ๐Ÿ“ฆ PyPI publication and stable API
  • ๐ŸŒ Community plugin ecosystem

๐Ÿ“„ Citation

If you use MadiLang in your work, please cite it:

cff-version: 1.2.0
title: "MadiLang"
authors:
  - family-names: "El Mkhitar"
    given-names: "El Madani"
    email: "madani004@proton.me"
version: "0.4.0"
date-released: 2026-06-14
license: "MIT"
repository-code: "https://github.com/madanimkhitar22-beep/madilang"

๐Ÿ‘ค Author

El Madani El Mkhitar
๐Ÿ“ง madani004@proton.me
๐ŸŒ GitHub Profile

"Building sovereign tools for a decentralized future, one intent at a time."


๐ŸŒŸ If MadiLang resonates with your vision, please star the repository!

Star on GitHub


๐Ÿง  Code is no longer written. It is described.
๐Ÿ” Sovereignty is no longer optional. It is embedded.
๐ŸŒ The future of development is sovereign, ethical, and accessible to all.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

madilang-0.4.0.tar.gz (27.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madilang-0.4.0-py3-none-any.whl (84.6 kB view details)

Uploaded Python 3

File details

Details for the file madilang-0.4.0.tar.gz.

File metadata

  • Download URL: madilang-0.4.0.tar.gz
  • Upload date:
  • Size: 27.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for madilang-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8b2a024254823dd0e2431d2aaedea37d33aa08b67ce4f45322ef2366f80c09e7
MD5 6fc4cd6ee49edf6c5585a0a211d8ced2
BLAKE2b-256 393f9075ed61b26e9c5312efc3b40166ee33aa02225d5fce02bb2886fc40ae23

See more details on using hashes here.

File details

Details for the file madilang-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: madilang-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 84.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for madilang-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bbf480a1716f060b8286abf5cb8d25aebfc1fa7336c537799fb2a6a7d47fdad
MD5 1c8a1281f24a9e68404fa3ba54cd20ba
BLAKE2b-256 4d9bf3475d7501899a87718f6932e2682250b0db9716d830e0b1072451e04738

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page