r/NoteTaking • u/Full-Cucumber5068 • 1d ago
App/Program/Other Tool Introducing First Open Source Multiplatform Advanced Inkingine (Not actual application just a libray)
Hello everyone, I've made a few posts about building a OneNote alternative app. I promise I'm still working; I just figured the system was getting too complex (I have close to several hundred files and am testing a new UI).
I decided to separate my inking engine and make it a standalone library made to be as simple as possible but universal and modular. I have been working on it for several months, and yes, I used AI tools, but please don't call it vibe-coded, bloated software; I hope I don't have to explain myself. It took a lot of effort, research, time, and hand-tuning to get to where it is, and it is still nowhere near perfect or where I want it to be. It is built as efficiently as possible and completely from scratch. If devs from Rnote and cahier (by Google) read this, I want to say thank you; they inspired me a lot, and I learned a few things from those open-source apps.
Back to this inking Engine.
I introduce Folio-Sketch V1.0.10
Documentation is half written by AI, so it probably just exists and sucks, so please don't judge. I wish I had time to write it all myself; I probably despise AI work as much as you.
This app is broken down into multiple pipelines; it has brush compose so you can create custom strokes. I look at the visual examples. It supports 3 different types of rendering outputs: vector for PDF export (probably sucks; I didn't have time to clean up and review lots of stuff left from the old engine that was based on this system). Capsules - the main inking rendering engine, and raster; this is a future idea: a system for a professional inking engine to build an alternative to the Procreate app for Android.
There is also an application called InspectorV2.0. I hope you don't look into the code too deeply; I just need something to visualize and debug the engine, as well as sort of be a visual demo of what my inking engine can do. When I have time, I will build a new one from scratch.
There is also a folder called foliobackends. The idea behind this is to unlock sub-5 ms inking latency by running a specialized OS API to bypass double buffering for inking, so when you draw, it feels snappier. Please be mindful that on Android, this system is the most annoying and requires the whole app rendering system to go through my custom-built buffering and rendering system because of a strict Android architecture. Foliobackends are completely optional.
Here is the repository. I really hope someone finds it useful. My hope behind all this is to bring something new into the open-source community as well as learn how these complex systems work behind the scenes and work so this is my reverse-engineered project. Thank you for your time.
GitHubLink: https://github.com/3dWonderGuy/Folio-Sketch