Skip to content

takara-ai/mirror

Mirror Logo

Mirror is the fastest and most cost effective way to build web apps with multimodal embeddings.

Backed by OpenAI CLIP, Turbopuffer and NextJS(Lovable), build the next Pintrest, Instagram or whatever you could imagine with no GPU's, no complex deployments and no drain on your wallet.

Deploy with Vercel

We've shipped our frontier UI to demo the capabilities of Mirror, we indexed thousands of images in just a few hours costing less than a few cents and we can enable natural language search over these images forever, only paying for what you use, or if within the free plan, absolutely nothing!

Mirror Demo

Below is our serverless solution compared to traditional deployments.

Mirror Demo

Getting Started

Prerequisites

This project uses Turbopuffer for the vector store. Create an account and API key in the dashboard, then add:

TURBOPUFFER_API_KEY="[YOUR API KEY]"
TURBOPUFFER_REGION="gcp-us-central1"   # optional, see https://turbopuffer.com/docs/regions

We also use Vercel's Blob store to efficiently store images for use for the browser, go to your vercel project -> storage

And create a new Blob store with access to prod/preview/dev or whatever stages you prefer.

We also use OpenAI for captioning for further accessibility, if you require this feature then please include an OpenAI API KEY

OPENAI_API_KEY="[YOUR KEY]"

Now run

pnpm i
vercel env pull

Then, run the development server:

vercel dev

Open http://localhost:3000 with your browser to see the result.

This will start mirror and it's frontier UI, ready for you to take over and build something amazing!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

API

For documentation on the API we expose by default in Mirror please see the readme.

About

Make multimodal embedding easy to deploy to serverless function. Check out the demo of our visual image search engine.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors