drawio-desktop is an Electron-based desktop application that wraps the core draw.io diagramming editor (included as a git submodule). It provides a fully offline diagramming experience with a security-first design: Content Security Policy prevents remote script execution, IPC is gated through contextBridge with sender validation, and file operations enforce path authorisation against symlink attacks. The application supports CLI-based batch export (PNG, PDF, SVG, HTML, XML) with a hand-rolled argument parser, per-window file watching, auto-update via electron-updater, and platform-specific builds for Windows (x64/arm64, MSI, NSIS, APPX), macOS (dmg, zip, Quick Look preview), and Linux (AppImage, deb, rpm, snap). The architecture is a monolithic Electron main process (src/main/electron.js) communicating with the renderer (drawio submodule) through a secure IPC bridge. The codebase demonstrates high craftsmanship in security-sensitive areas such as backup file writes using exclusive temp files and rename, CLI export symlink handling, and per-window file watch registry. It is actively maintained with recent commits and comprehensive CI/CD pipelines.
This repository is a comprehensive collection of React interview questions and coding exercises, designed as an educational resource for developers preparing for React interviews. It contains over a dozen standalone React projects built with modern tooling (Vite, TypeScript, React 19), each demonstrating a specific UI pattern or hook implementation. The codebase is well-organized into three main sections: a coding-exercise app with a registry pattern for interactive problem-solving, a coding-hooks library of reusable custom hooks (useDebounce, useFetch, useLocalStorage, etc.), and a set of coding-projects (accordion, autocomplete, carousel, data table, infinite scroll, modal, nested comments, shopping cart, star rating, theme switcher, todo, tree view). The projects are cleanly implemented with TypeScript, proper state management, and accessibility considerations. While primarily educational, the custom hooks and several UI components are production-quality and directly reusable in other projects.
This repository is a collection of JavaScript interview questions and coding exercises, accompanied by a Node.js script for automatically generating a table of contents in the README. The core content consists of standalone JavaScript files that illustrate specific language concepts and patterns, such as closures, hoisting, event loop, and functional programming techniques. The repository includes several reusable utility implementations that demonstrate advanced JavaScript patterns. Notably, the debounce and throttle functions provide robust solutions for rate-limiting event handlers, while the deep merge function safely handles circular references during object merging using a WeakMap for tracking. These utilities are self-contained, have no internal dependencies, and can be easily extracted for use in other projects. The project is actively maintained, as evidenced by a recent commit (though the date appears to be in the future, indicating the most recent activity). It relies on a single external dependency (github-slugger) for generating anchor links, and the build process is automated via a GitHub workflow. While the majority of the content serves educational purposes, the highlighted components exhibit strong craftsmanship and adhere to modern JavaScript best practices.