Adapt EEPROM EMULATOR STM32F103VE
STM32F0 and STM32F1 devices have uniform 1k or 2k flash erase blocks, depending on the exact part number (check the respective manuals, see below), the STM32L4 series has 2k flash blocks, so porting the library from F0 to F1 should be the easiest.

You have to adjust the flash size, the flash register accesses (register fields can have different functions between F0 and F1), and the flash write accesses. Pay attention to the required write unit size (byte, halfword or word), it might be dependent on a few things including the supply voltage.

The STM32F0 flash interface is documented in the product Reference Manual, the STM32F1 has a separate Flash Programming Manual on the ST website.

Keep in mind that erasing of a flash block, which is from time to time necessary, can take a significant amount of time, up to 40ms for a 2k block, up to 4 seconds for a 256k block, and the cpu is halted during erase, unless it's a dual-bank device, or all code is moved to RAM, which is quite tricky.

The STM32F7 series has a vastly different flash layout, with non-uniform erase block size ranging from 32k to 256k, porting would take some significant effort.