Member-only story
5 Outstanding Open-Source Projects Which Have Just One Source File
Amazing ideas but just as one file

Programmers write code in different ways according to their preference and type of the particular project. If a software project is quite large and growing, we usually decompose the whole thing into several files to achieve maintainability. However, programmers often turn awesome ideas into single-file open-source projects amazingly. I found the following projects from Github and I used several things in my projects too. These projects have just one file that contains the main source code.
Webview
Electronjs is a very popular choice for cross-platform application development using web technologies. But, every application that was built using Electronjs becomes heavier because the application consists of Node runtime and Chromium browser. On the other hand, the Webview project re-uses the existing web browser library of each operating system and also creates a bi-directional communication channel between the front-end and the back-end to create light-weight cross-platform apps with zero dependencies. Webview has nicely organized platform-specific code in a single C++ header file.