Skip to content

feat: add multi-format encoding engine with step-by-step visualization - #1678

Open
karan-chaos wants to merge 1 commit into
csxark:mainfrom
karan-chaos:feature/base-encoding-toolkit
Open

feat: add multi-format encoding engine with step-by-step visualization#1678
karan-chaos wants to merge 1 commit into
csxark:mainfrom
karan-chaos:feature/base-encoding-toolkit

Conversation

@karan-chaos

@karan-chaos karan-chaos commented Aug 28, 2026

Copy link
Copy Markdown

Summary

Resolves #1677
This PR introduces a complete multi-format encoding and decoding engine with
support for eight common formats and detailed step-by-step transformation
visualization.

The feature includes interactive format selection, expandable encoding
breakdowns, bit manipulation visualization, format information panels, and a
quick reference guide.

Changes

Encoding Engine

Added encode and decode support for:

  • Base64
  • Base32
  • Hexadecimal
  • Binary
  • URL encoding
  • ASCII
  • ROT13
  • Decimal

Step-by-Step Visualization

Added detailed transformation breakdowns showing:

  • Input processing
  • Character conversions
  • Intermediate representations
  • Bit manipulation
  • Final output generation

Interactive UI

Added a React interface featuring:

  • Format selector
  • Encode and decode controls
  • Step-by-step visualization
  • Expandable details
  • Format information panel
  • Quick reference table

Format Information

Added metadata for supported formats, including:

  • Alphabet
  • Alphabet size
  • Use cases
  • Representation details

Validation & Error Handling

Added input validation and error handling for unsupported or malformed
encoded values.

Testing

Added 40+ unit tests covering:

  • Round-trip correctness
  • Error handling
  • Invalid inputs
  • Size ratios
  • Cross-format consistency
  • Core encoding and decoding behavior

Verification

  • Base64 verified
  • Base32 verified
  • Hex verified
  • Binary verified
  • URL encoding verified
  • ASCII verified
  • ROT13 verified
  • Decimal verified
  • Round-trip correctness verified
  • Step-by-step visualization verified
  • Error handling verified
  • Cross-format consistency verified
  • 40+ unit tests passing

Interactive multi-format encoder/decoder supporting Base64, Base32,
Hex, Binary, URL encoding, ASCII, ROT13, and Decimal with step-by-step
visualization of bit manipulation and mapping. Includes 40+ unit tests
covering round-trip correctness, error handling, and size analysis.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@karan-chaos is attempting to deploy a commit to the csxark's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

🎉 Thank You for Your Contribution

Hello @karan-chaos,

Thank you for submitting a Pull Request to CryptoViz. We appreciate the time and effort you've invested in contributing to the project.

Your Pull Request has been received successfully and will be reviewed by the maintainers as soon as possible.

📋 Pull Request Checklist

  • ✅ Linked the related issue
  • ✅ No merge conflicts
  • ✅ Synced with the latest main branch
  • ✅ Build passes successfully
  • ✅ All tests pass

Ensuring these requirements are met helps streamline the review process and enables maintainers to review your contribution more efficiently.

❤️ Support CryptoViz

If you find CryptoViz helpful, consider supporting the project by:

  • ⭐ Starring the repository
  • 🍴 Forking the repository
  • 👤 Following Ark on GitHub
  • 💼 Connecting on LinkedIn
  • 🌐 Visiting the Portfolio

Your support helps increase the project's visibility and encourages continued development. Thank you for being a part of the CryptoViz community!

Thank you once again for contributing to CryptoViz. We appreciate your support and look forward to reviewing your contribution.

@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 42 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: db045c9f-4123-4e46-a023-462835953da1

📥 Commits

Reviewing files that changed from the base of the PR and between d227a75 and 6720bf1.

📒 Files selected for processing (4)
  • app/encoding-toolkit/page.tsx
  • components/encoding/EncodingToolkit.tsx
  • lib/encoding/baseEncoding.ts
  • tests/unit/baseEncoding.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Multi-Format Encoding and Decoding Engine with Step-by-Step Visualization

1 participant