Bringing Code Clarity into Focus
CodeLenz is a Next.js web application that transforms code into interactive, colorful visualizations. By highlighting various elements and structures within the code, CodeLenz makes it easier to read, analyze, and engage with complex codebases.
- Segmented Visualization: Automatically color-codes segments like keywords, functions, variables, and more.
- Enhanced Readability: Distinct color highlights for different code components.
- Interactive Timeline: Zoom into specific code lines and hover for details.
- Dark Mode Toggle: Switch between dark and light themes for a personalized experience.
- Image Export: Capture and download the visualized timeline as an image.
- Input Code: Paste or type your code into CodeLenz.
- View Timeline: Code is broken down into color-coded segments, making structure and patterns clear.
- Export and Share: Download the visualized timeline as an image for easy sharing.
- Frontend: Next.js with React, using Tailwind CSS for styling.
- Editor & Visualization: Ace Editor for code input and D3.js for custom color-coded segments.
- Libraries:
html2canvas
for exporting visualizations,lucide-react
for icons.
- Clone the repository:
git clone https://github.com/rishabh3562/CodeLenz.git
- Install dependencies:
cd codelenz npm install
- Run the development server:
npm run dev
- Open
http://localhost:3000
in your browser. - Paste or type your code to see the interactive visualization.
- Use the toolbar options to export the timeline or switch themes.
Contributions are welcome! If you have ideas for new features or improvements, please open an issue or submit a pull request.
This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.
The Affero General Public License (AGPL-3.0) is a free software license designed to ensure that the source code of a project remains open and freely available, even if the software is used over a network.
- You are free to use, modify, and distribute the software, provided that you include the source code when distributing it or when you provide it to users over a network.
- You must make your modified source code available if you modify and use the software to offer services over a network.
- If you distribute the software or modified versions, you must do so under the same AGPL-3.0 license.
- Network Use Requirement: If you run the software on a server and provide access to others over the internet (i.e., software as a service), you are required to make the source code available to the users of your service.
- Modification Disclosure: If you modify the software and distribute it, or make it available over a network, you must provide the modified source code under the same AGPL-3.0 license.
- No Proprietary Use: You cannot convert the software into proprietary software. All copies, modifications, or derivative works must remain open and licensed under the AGPL-3.0.
Failure to comply with the terms of the AGPL-3.0 license can result in legal consequences, including the loss of rights to use, modify, or distribute the software.