Inari synth is an interface for decentralized social media with image synthesis built in.
Inari Synth is an interface for decentralized social media, built on top of Lens Protocol and Stable Diffusion, with image synthesis built in. It removes barriers so you can decentralize content creation and protocol operation yourself. Each post builds incrementally towards greater ownership of your self-expression and ability to run your own nodes.
Inari Synth currently supports both text2image and image2image generation.
How It Works
Inari Synth is built with NextJS, typescript, tailwind, apollo, wagmi, rainbow kit, and web3 storage. It uses Lens Protocol for the social layer and the Stable Diffusion Replicate API for image synthesis.
The hackiest and most notable parts of this project were using the latest wagmi useContractWrite hooks (there was little documentation on this/no other projects to reference using these latest hooks), converting the synthesized image urls to base64 data then blobs then file types to then be correctly hashed with web3 storage in a single step and automatically posting all posts on-chain, beyond simply indexing them with the lens centralised API.