Introduction
The GitHub DNA Project is a creative encoding engine that simulates genetic logic using binary (base-2) and ternary (base-3) DNA-style scripting. Created by Magnus Randa, it features encoding/decoding, visualization, and trait mapping.
Base-2 Encoding
Converts text to 8-bit binary strings using ASCII character codes. Each character is represented as an 8-bit binary number.
Example: "Magnus" → 010011010110000101100111011011100111010101110011
Decoding reverses the process, converting 8-bit binary chunks back to text.
Base-3 Encoding
Experimental ternary encoding converts text to base-3 (digits 0, 1, 2) using ASCII character codes.
Example: "Magnus" → 2212 2112 2200 2210 2201 2220
Decoding converts ternary numbers back to ASCII characters.
Visualization
The ASCII helix visualizes binary strings as a sine-wave-like pattern, simulating a DNA strand.
Example output for "01":
0 1
Interactive Tools
Base-2 Encode/Decode
Base-3 Encode/Decode
Flip Bits
Trait Mapping
Visualize Helix
DNA Sample
Download a sample human DNA strand in binary: human_dna_sample.txt
Try a sample input: Loading...
README
See the full README.md for project details.
License
MIT License - Copyright (c) 2025 Magnus Randa. See the full License for details.