This is a simple, educational patch-based outpainting implementation. It finds best-matching patches from the original image to fill newly created border areas. It is not as sophisticated as diffusion or GAN-based outpainting but runs fully client-side without any server or external models.