> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apich.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Stack Architecture & Project Map

> How Apich Organization's seven maintained projects relate, where their canonical docs live, and how to choose the right tool.

Apich Organization maintains a cohesive set of systems, scientific, and security tools. Rather than bundling everything into a single monolith, each repository owns a clear boundary and exposes well-defined ABIs (`Cargo` crates, C/C++ headers, LLVM plugins, or standalone CLI toolchains).

## Project Matrix

| Project | Category | Languages | License | Canonical Docs | Project Page |
| - | - | - | - | - | - |
| **dtact** | Runtime | Rust, C, C++ | MIT OR Apache-2.0 | [docs.rs/dtact](https://docs.rs/dtact) | [apich.org/projects/dtact](https://apich.org/projects/dtact/) |
| **ensia** | Security | C++, LLVM IR | AGPL-3.0-only | [GitHub README](https://github.com/Apich-Organization/ensia#usage--integration) | [apich.org/projects/ensia](https://apich.org/projects/ensia/) |
| **bincode-next** | Serialization | Rust | MIT OR Apache-2.0 | [docs.rs/bincode-next](https://docs.rs/bincode-next) | [apich.org/projects/bincode](https://apich.org/projects/bincode/) |
| **rssn** | Science | Rust, C, C++ | Apache-2.0 | [docs.rs/rssn](https://docs.rs/rssn) | [apich.org/projects/rssn](https://apich.org/projects/rssn/) |
| **cargo-slide** | Tooling | Rust, Typst | AGPL-3.0-or-later | [docs.rs/cargo-slide](https://docs.rs/cargo-slide) | [apich.org/projects/cargo-slide](https://apich.org/projects/cargo-slide/) |
| **virtue** | Libraries | Rust | MIT OR Apache-2.0 | [docs.rs/virtue-next](https://docs.rs/virtue-next) | [apich.org/projects/virtue](https://apich.org/projects/virtue/) |
| **aevia** | Language | Aevia, Rust | Apache-2.0 | [aevia.apich.org](https://aevia.apich.org/) | [apich.org/projects/aevia](https://apich.org/projects/aevia/) |

## Cross-Project Dependency Graph

```mermaid theme={null}
flowchart TB
    subgraph CoreLibs["Foundation Crates"]
        Virtue["virtue-next (proc-macro derive builder)"]
        Bincode["bincode-next (binary & CBOR codec + schema fingerprints)"]
        Virtue -->|"derive macros"| Bincode
    end

    subgraph ScienceStack["Scientific Computing Stack"]
        RSSN["rssn (e-graph CAS, kernels, JIT/GPU, sim, C ABI)"]
        Aevia["aevia (dimensional language + LSP + package registry)"]
        Bincode -->|"KernelManifest codec"| RSSN
        Bincode -->|".aevi v4 module cache"| Aevia
        RSSN -->|"symbolic + numeric + unit engine"| Aevia
    end

    subgraph RuntimeSecurityTooling["Runtime, Security & Tooling"]
        Dtact["dtact + dtact-util (stackful fibers + async I/O + C ABI)"]
        Ensia["ensia (LLVM 21+ 12-stage obfuscation passes)"]
        CargoSlide["cargo-slide (Typst + tiny-skia + WASM/PIV encryption)"]
    end
```

## Choosing the Right Tool

> [accordion] When should I use dtact instead of a stackless runtime like Tokio?
>
> Choose `dtact` when your workload benefits from **stackful fibers**: for example, C/C++ code that needs to suspend and resume across FFI boundaries (`dtact.h`), compute-heavy Bag-of-Tasks (BoT) or parallel batch workloads where P2P mesh deflection prevents hot-core contention, or when you need explicit per-fiber NUMA/CCX affinity and stack safety levels. If your workload is dominated by massive numbers of short-lived I/O connections, `dtact-util` also provides a `tokio` backend alongside its `native` (`io_uring`/IOCP/kqueue) driver.

> [accordion] How do rssn and aevia relate?
>
> `rssn` is the Rust (and C/C++/Python/Julia/R) library providing the e-graph symbolic engine, numerical kernels, Cranelift JIT, `wgpu` GPU execution, and physics simulations. `aevia` is a standalone functional language built on top of `rssn` that lifts physical dimensions into the static type system (`3 m + 2 s` is rejected at compile time) and ships with its own CLI, REPL, LSP, DAP debugger, and signed package registry.

> [accordion] Why does Apich maintain both virtue-next and bincode-next?
>
> `bincode-next`'s derive crate (`bincode_derive-next`) relies on `virtue` to generate `Encode`, `Decode`, `BitPacked`, `Fingerprint`, `StaticSize`, and `ZeroCopy` implementations with minimal compile-time overhead and zero required dependencies. Maintaining `virtue-next` keeps both crates aligned on Rust edition 2024 and strict semver discipline.

> [accordion] What is the difference between apich.org and docs.apich.org?
>
> `apich.org` is the organization homepage, project catalog, blog, research/security policy home, and Open Collective sponsorship hub. `docs.apich.org` (this site) is the structured technical overview and onboarding portal. Full API documentation lives on `docs.rs` (for Rust crates) and `aevia.apich.org` (for Aevia).


## Related topics

- [dtact](https://docs.apich.org/projects/dtact.md)
- [Apich Organization Documentation](https://docs.apich.org/index.md)
- [rssn](https://docs.apich.org/projects/rssn.md)
- [bincode-next](https://docs.apich.org/projects/bincode-next.md)
- [aevia](https://docs.apich.org/projects/aevia.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.