<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ChirallyActive</title>
    <description>The latest articles on DEV Community by ChirallyActive (@chirallyactive).</description>
    <link>https://dev.to/chirallyactive</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4006292%2Fc77599fb-d73d-48fa-bd30-300a99a6fe21.jpg</url>
      <title>DEV Community: ChirallyActive</title>
      <link>https://dev.to/chirallyactive</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chirallyactive"/>
    <language>en</language>
    <item>
      <title>I Built a "Honeypot Vault" Using a Custom Esoteric Language</title>
      <dc:creator>ChirallyActive</dc:creator>
      <pubDate>Tue, 07 Jul 2026 18:44:52 +0000</pubDate>
      <link>https://dev.to/chirallyactive/i-built-a-honeypot-vault-using-a-custom-esoteric-language-3kj7</link>
      <guid>https://dev.to/chirallyactive/i-built-a-honeypot-vault-using-a-custom-esoteric-language-3kj7</guid>
      <description>&lt;h2&gt;
  
  
  Security usually feels like a static, boring wall. I wanted to build something different—something active.
&lt;/h2&gt;

&lt;p&gt;I’m excited to share CyberFuck, a project where I combined synthwave aesthetics, custom-built esoteric interpreters, and active-defense honeypot logic to create a "Vault" that doesn't just store your secrets—it traps anyone trying to steal them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The "Why"
&lt;/h2&gt;

&lt;p&gt;Most encryption tools are passive. You store a file, and it sits there, waiting to be brute-forced. I wanted to explore "active defense." What if your data could fight back? What if the encryption itself was proprietary enough that standard tools couldn't even parse it?&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tech Stack
&lt;/h2&gt;

&lt;p&gt;Backend: Node.js + Express (wrapped for Serverless deployment).&lt;/p&gt;

&lt;h2&gt;
  
  
  The Engine: A custom-built Brainfuck interpreter that uses a proprietary dialect.
&lt;/h2&gt;

&lt;p&gt;Frontend: HTML5/CSS3 with Glassmorphism, custom local typography, and pixel-art video loops for that 90s hacker movie vibe.&lt;/p&gt;

&lt;p&gt;Deployment: Render for the backend/serverless functions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Secret Sauce: Proprietary Obfuscation
&lt;/h2&gt;

&lt;p&gt;The heart of CyberFuck is a custom Brainfuck dialect. Because standard Brainfuck interpreters are open-source and common, they are useless for security.&lt;/p&gt;

&lt;p&gt;By engineering my own mathematical offset algorithms and a hidden "Auth-Signature," I’ve ensured that no standard interpreter on the web can parse these files. If a snooper tries to run a CyberFuck vault through a generic interpreter, they’ll get nothing but syntax errors or corrupted gibberish.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works (The Honeypot)
&lt;/h2&gt;

&lt;p&gt;The vault uses a "Signature Verification" method:&lt;/p&gt;

&lt;p&gt;Auth Check: Before the data is output, the interpreter checks for a specific "Auth-Signature."&lt;/p&gt;

&lt;p&gt;The Trap: If you provide the wrong 4-character PIN, the interpreter fails the signature check. Instead of "failing quietly," it triggers a WEBHOOK TRIGGERED alert, logging the breach attempt and neutralizing the data output to prevent further brute-forcing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenges Faced
&lt;/h2&gt;

&lt;p&gt;The biggest technical hurdle was memory management. Building a Brainfuck interpreter from scratch in JavaScript meant handling potential infinite loops. I had to implement strict execution limits to ensure that even if someone feeds the vault malicious, corrupted code, the server stays up and the system remains stable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give it a spin
&lt;/h2&gt;

&lt;p&gt;If you’re interested in esoteric security, check out the repo and try to break the vault yourself!&lt;/p&gt;

&lt;p&gt;Try the live app: &lt;a href="https://cyberfuck-3p8b.onrender.com/" rel="noopener noreferrer"&gt;https://cyberfuck-3p8b.onrender.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;View the Source: &lt;a href="https://github.com/Amaterus1125/Cyberfuck" rel="noopener noreferrer"&gt;https://github.com/Amaterus1125/Cyberfuck&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m looking for feedback on the honeypot logic—does anyone see a way to bypass the signature check without the correct key?&lt;/p&gt;

&lt;p&gt;If you enjoyed this, feel free to give the repo a star on GitHub! I'm constantly tweaking the offset algorithms to make the encryption even harder to reverse-engineer.&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>webdev</category>
      <category>programming</category>
      <category>sharepoint</category>
    </item>
    <item>
      <title>Improving my Cross-Distro Package manager made in Rust</title>
      <dc:creator>ChirallyActive</dc:creator>
      <pubDate>Sat, 04 Jul 2026 15:30:08 +0000</pubDate>
      <link>https://dev.to/chirallyactive/improving-my-cross-distro-package-manager-made-in-rust-4f85</link>
      <guid>https://dev.to/chirallyactive/improving-my-cross-distro-package-manager-made-in-rust-4f85</guid>
      <description>&lt;h2&gt;
  
  
  Chiral: A Cross-Distro Linux Package Manager in Rust
&lt;/h2&gt;

&lt;p&gt;Most Linux package managers assume one thing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You are staying inside a single Linux ecosystem.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That assumption breaks real-world systems.&lt;/p&gt;

&lt;p&gt;So I built something different.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager" rel="noopener noreferrer"&gt;https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  🧠 Introduction
&lt;/h2&gt;

&lt;p&gt;Linux is powerful, but fragmented:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;apt → Debian/Ubuntu&lt;/li&gt;
&lt;li&gt;pacman → Arch&lt;/li&gt;
&lt;li&gt;dnf → Fedora&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This creates inconsistency when working across environments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chiral&lt;/strong&gt; is my attempt to unify that experience.&lt;/p&gt;


&lt;h2&gt;
  
  
  ⚗️ What is Chiral?
&lt;/h2&gt;

&lt;p&gt;A cross-distro Linux package manager written in Rust.&lt;/p&gt;

&lt;p&gt;It allows installing packages across distributions without relying on the host package manager.&lt;/p&gt;


&lt;h2&gt;
  
  
  📦 Example usage
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chiral &lt;span class="nb"&gt;install &lt;/span&gt;htop
chiral &lt;span class="nb"&gt;install &lt;/span&gt;fastfetch
chiral list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🧬 Core design (simplified)
&lt;/h2&gt;

&lt;p&gt;Chiral resolves packages using multiple sources:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;resolve_package&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Option&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Package&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;try_arch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="nf"&gt;.or_else&lt;/span&gt;&lt;span class="p"&gt;(||&lt;/span&gt; &lt;span class="nf"&gt;try_debian&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="nf"&gt;.or_else&lt;/span&gt;&lt;span class="p"&gt;(||&lt;/span&gt; &lt;span class="nf"&gt;try_custom_repo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🐧 Arch Linux support
&lt;/h2&gt;

&lt;p&gt;Chiral reads the official repo database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;try_arch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pkg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Option&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Package&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;fetch_arch_db&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="nf"&gt;.find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pkg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;verify_checksum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="py"&gt;.sha256&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;Some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="nf"&gt;.into&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📦 Debian support
&lt;/h2&gt;

&lt;p&gt;It parses &lt;code&gt;Packages.gz&lt;/code&gt; metadata:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;try_debian&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pkg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Option&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Package&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;fetch_packages_gz&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="nf"&gt;.lookup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pkg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;verify_sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="py"&gt;.sha256&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="py"&gt;.path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;Some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="nf"&gt;.into&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🌐 Custom repository support
&lt;/h2&gt;

&lt;p&gt;Chiral supports optional checksum sidecars:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package.tar.gz
package.tar.gz.sha256
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verification logic:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;verify_custom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pkg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;file_hash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pkg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;file_hash&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;hash&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;Err&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Checksum mismatch"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nf"&gt;Ok&lt;/span&gt;&lt;span class="p"&gt;(())&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔐 Self-update security model
&lt;/h2&gt;

&lt;p&gt;Chiral verifies its own binary before replacing itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;self_update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;asset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;File&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;digest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;fetch_github_digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;asset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;verify_sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;asset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nd"&gt;panic!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Update rejected: integrity check failed"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nf"&gt;install_new_binary&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;asset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;Ok&lt;/span&gt;&lt;span class="p"&gt;(())&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🛡 Security model (v4.0.0)
&lt;/h2&gt;

&lt;p&gt;All package sources are validated using SHA-256:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arch → repo database checksum&lt;/li&gt;
&lt;li&gt;Debian → Packages.gz metadata&lt;/li&gt;
&lt;li&gt;Custom repos → optional sidecar hash&lt;/li&gt;
&lt;li&gt;GitHub → release asset digest&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Failure model:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Any mismatch = immediate rejection (fail closed)&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  ⚙️ Implementation details
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Written fully in Rust 🦀&lt;/li&gt;
&lt;li&gt;Uses &lt;code&gt;sha2&lt;/code&gt; crate for hashing&lt;/li&gt;
&lt;li&gt;Statically linked binary&lt;/li&gt;
&lt;li&gt;Graph-based dependency resolution&lt;/li&gt;
&lt;li&gt;No shell execution in verification pipeline&lt;/li&gt;
&lt;li&gt;Cross-distro filesystem normalization layer&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧪 Example install flow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User request → Resolve package →
Fetch metadata → Verify checksum →
Download → Validate → Install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🎯 Design goal
&lt;/h2&gt;

&lt;p&gt;Not to replace Linux package managers.&lt;/p&gt;

&lt;p&gt;But to unify them under one abstraction layer where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;installation is distro-agnostic&lt;/li&gt;
&lt;li&gt;integrity is consistent&lt;/li&gt;
&lt;li&gt;behavior is predictable&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧭 Future work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Windows support layer (experimental)&lt;/li&gt;
&lt;li&gt;GPG verification for repo trust chains&lt;/li&gt;
&lt;li&gt;Signed Chiral repository format&lt;/li&gt;
&lt;li&gt;Reproducible builds&lt;/li&gt;
&lt;li&gt;Expanded ecosystem support&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📌 Status
&lt;/h2&gt;

&lt;p&gt;Early-stage but fully functional.&lt;/p&gt;

&lt;p&gt;Actively evolving with focus on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;security&lt;/li&gt;
&lt;li&gt;cross-distro compatibility&lt;/li&gt;
&lt;li&gt;system-level reliability&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔗 GitHub
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager" rel="noopener noreferrer"&gt;https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Closing thought
&lt;/h2&gt;

&lt;p&gt;Linux doesn’t need more package managers.&lt;/p&gt;

&lt;p&gt;It needs fewer assumptions.&lt;/p&gt;




</description>
      <category>rust</category>
      <category>opensource</category>
      <category>linux</category>
      <category>programming</category>
    </item>
    <item>
      <title>I built my own package manager in Rust while building a Linux distro from scratch</title>
      <dc:creator>ChirallyActive</dc:creator>
      <pubDate>Sun, 28 Jun 2026 09:21:21 +0000</pubDate>
      <link>https://dev.to/chirallyactive/i-built-my-own-package-manager-in-rust-while-building-a-linux-distro-from-scratch-4hfm</link>
      <guid>https://dev.to/chirallyactive/i-built-my-own-package-manager-in-rust-while-building-a-linux-distro-from-scratch-4hfm</guid>
      <description>&lt;p&gt;A few months ago I decided to build a Linux distribution entirely from scratch using LFS (Linux From Scratch) and BLFS. Every package — GCC, glibc, systemd, XFCE — compiled by hand. No shortcuts.&lt;/p&gt;

&lt;p&gt;About halfway through I ran into a problem: &lt;strong&gt;there's no package manager for LFS systems.&lt;/strong&gt; You're just supposed to compile everything manually forever.&lt;/p&gt;

&lt;p&gt;So I built one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Chiral?
&lt;/h2&gt;

&lt;p&gt;Chiral is a cross-distro binary package manager written in Rust. It works on any Linux system — including custom LFS/BLFS distros, Arch, Debian, and anything in between.&lt;/p&gt;

&lt;p&gt;The key idea: instead of being tied to one distro's repos, Chiral uses a &lt;strong&gt;3-way fallback chain&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Your own GitHub packages/ repo
         ↓ not found?
2. Debian stable repos
         ↓ not found?
3. Arch Linux repos
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a package exists anywhere in that chain, Chiral finds it and installs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install in one line
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-L&lt;/span&gt; https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager/releases/latest/download/chiral &lt;span class="nt"&gt;-o&lt;/span&gt; chiral
&lt;span class="nb"&gt;chmod&lt;/span&gt; +x chiral
&lt;span class="nb"&gt;sudo mv &lt;/span&gt;chiral /usr/local/bin/chiral
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;100% static musl binary. No Rust, no dependencies, runs on any Linux including a fresh LFS system with nothing installed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How dependency resolution works
&lt;/h2&gt;

&lt;p&gt;When you run &lt;code&gt;chiral install gtk3&lt;/code&gt;, it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Queries the Arch Linux API for gtk3's full dependency list&lt;/li&gt;
&lt;li&gt;Walks the entire tree recursively using BFS&lt;/li&gt;
&lt;li&gt;Checks each dep against your system before downloading&lt;/li&gt;
&lt;li&gt;Builds a topological install order so deepest deps go first&lt;/li&gt;
&lt;li&gt;Installs everything in order, gtk3 last
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gtk3
 ├── glib2       ← installed 1st
 ├── cairo
 │    └── pixman ← installed before cairo
 ├── pango
 └── gdk-pixbuf2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The smart part: before downloading anything, Chiral checks if a dep is already on your system via pacman, dpkg, pkg-config, ldconfig, PATH, rustup, and direct filesystem scanning. It works alongside existing package managers without conflicting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Commands
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chiral &lt;span class="nb"&gt;install&lt;/span&gt; &amp;lt;package&amp;gt;   &lt;span class="c"&gt;# install with full dep resolution&lt;/span&gt;
chiral remove  &amp;lt;package&amp;gt;   &lt;span class="c"&gt;# clean remove — tracks every file&lt;/span&gt;
chiral update  &amp;lt;package&amp;gt;   &lt;span class="c"&gt;# update one package&lt;/span&gt;
chiral upgrade             &lt;span class="c"&gt;# update everything&lt;/span&gt;
chiral search  &amp;lt;query&amp;gt;     &lt;span class="c"&gt;# search available packages&lt;/span&gt;
chiral list                &lt;span class="c"&gt;# list installed packages&lt;/span&gt;
chiral info    &amp;lt;package&amp;gt;   &lt;span class="c"&gt;# version, source, files&lt;/span&gt;
chiral deps    &amp;lt;package&amp;gt;   &lt;span class="c"&gt;# dry run — see what would install&lt;/span&gt;
chiral self-update         &lt;span class="c"&gt;# update chiral itself&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;chiral info&lt;/code&gt; even works on packages not installed by Chiral:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chiral info rust
&lt;span class="c"&gt;# Package : rust&lt;/span&gt;
&lt;span class="c"&gt;# Status  : not managed by chiral&lt;/span&gt;
&lt;span class="c"&gt;# Version : 1.93.1&lt;/span&gt;
&lt;span class="c"&gt;# Source  : rustup (installed outside chiral)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The technical bits
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Dependency resolution&lt;/strong&gt; uses BFS to walk the full tree, then Kahn's algorithm for topological sort. Circular deps are detected and broken automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;File tracking DB&lt;/strong&gt; records every installed file path so &lt;code&gt;chiral remove&lt;/code&gt; is perfectly clean:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;[&lt;span class="n"&gt;steam&lt;/span&gt;=&lt;span class="m"&gt;3&lt;/span&gt;.&lt;span class="m"&gt;5&lt;/span&gt;.&lt;span class="m"&gt;0&lt;/span&gt;-&lt;span class="m"&gt;1&lt;/span&gt;|&lt;span class="n"&gt;arch&lt;/span&gt;]
/&lt;span class="n"&gt;usr&lt;/span&gt;/&lt;span class="n"&gt;local&lt;/span&gt;/&lt;span class="n"&gt;bin&lt;/span&gt;/&lt;span class="n"&gt;steam&lt;/span&gt;
/&lt;span class="n"&gt;usr&lt;/span&gt;/&lt;span class="n"&gt;local&lt;/span&gt;/&lt;span class="n"&gt;lib&lt;/span&gt;/&lt;span class="n"&gt;steam&lt;/span&gt;/...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Self-updating&lt;/strong&gt; — &lt;code&gt;sudo chiral self-update&lt;/code&gt; hits the GitHub releases API, compares versions, downloads the new static binary and replaces itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Auto-sync&lt;/strong&gt; — a GitHub Actions workflow runs every Sunday, checks Arch and Debian for newer versions of packages in the repo, repacks them and commits automatically. The package repo updates itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Root vs user mode&lt;/strong&gt; — runs system-wide as root (&lt;code&gt;/usr/local&lt;/code&gt;) or per-user as a regular user (&lt;code&gt;~/.local&lt;/code&gt;). No configuration needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built this
&lt;/h2&gt;

&lt;p&gt;LFS teaches you how Linux actually works by making you build it yourself. But once you've built it, you're stuck installing everything by hand forever. There's no package manager for a system you assembled from scratch.&lt;/p&gt;

&lt;p&gt;I wanted one. So I built it in Rust, made it work on any Linux regardless of what's installed, and gave it the ability to pull packages from three different sources so it can find almost anything.&lt;/p&gt;

&lt;p&gt;The name comes from chirality in chemistry — molecules that are mirror images of each other. The two UI modes (Dextro and Levo) reflect this. Dextro is the default orange helix animation. Levo is a DNA sequencer animation that shows base pairs (A═T, G≡C) scrolling as packages install.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Orphan detection (&lt;code&gt;chiral autoremove&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Conflict detection&lt;/li&gt;
&lt;li&gt;KDE support on my custom distro&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;GitHub: &lt;a href="https://github.com/Amaterus1125/Chiral-CrossDistro-Package-Manager" rel="noopener noreferrer"&gt;Chiral Package Manager&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built by one person while building a Linux distro from scratch. If you're doing LFS/BLFS or want a package manager that works everywhere, give it a try.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>linux</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
