Thanks to visit codestin.com
Credit goes to lib.rs

#ratatui #logic-gates #tui

app kiroku

A Rust TUI tool to parse boolean expressions and generate truth tables, with K-Map and circuit visualization

4 releases (2 breaking)

Uses new Rust 2024

0.3.1 Aug 21, 2025
0.3.0 Aug 21, 2025
0.2.0 Aug 19, 2025
0.1.0 Aug 19, 2025

#973 in Command line utilities

Codestin Search App Codestin Search App Codestin Search App

97 downloads per month

MIT license

375KB
983 lines

Kiroku

Kiroku is an application that takes a boolean expression like A + B * C ^ D and creates a circuit, truth table and Karnaugh Map.

Symbols

! = NOT

& = AND

| = OR

^ = XOR

!& = NAND

!| = NOR

!^ = XNOR

Enter an expression like this

A ^ B !| C & (!D !^ E)

and press Enter

To switch between tabs, use the arrow keys.

Press the Right arrow key 2 times to go to the next tab and left arrow key 2 times to go to the previous tab.

Currently the K-Map only supports from 2-6 variables.

Installation

From crates.io

cargo install kiroku

From source

Clone this repo and cd into it and run

cargo run --release

Features

  • Truth Table generator (From expression)
  • Beautify the Table
  • Add support for XOR, XNOR , NOR and NAND operations
  • User input for expression
  • K-Map generation
  • Circuit Generation
  • Equation Simplification
  • Extend K-Map range

Output

Output

Stargazers over time

Stargazers over time

Thanks

Stargazers repo roster for @Vaishnav-Sabari-Girish/Kiroku

Dependencies

~9–22MB
~296K SLoC