https://github.com/dcrebbin/meta-vision-api
Hacky Meta Glasses API with GPT4 Vision Integration
https://github.com/dcrebbin/meta-vision-api
gpt4 meta
Last synced: 2 months ago
JSON representation
Hacky Meta Glasses API with GPT4 Vision Integration
- Host: GitHub
- URL: https://github.com/dcrebbin/meta-vision-api
- Owner: dcrebbin
- Created: 2023-11-28T10:02:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-07T04:02:18.000Z (4 months ago)
- Last Synced: 2025-06-07T04:25:53.966Z (4 months ago)
- Topics: gpt4, meta
- Language: TypeScript
- Homepage:
- Size: 6.08 MB
- Stars: 509
- Watchers: 17
- Forks: 45
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - dcrebbin/meta-vision-api - Mai - Hacky Messenger browser extension & API for the Meta Glasses. "Hey Meta send a message to ChatGPT" (TypeScript)
- awesome-ChatGPT-repositories - meta-vision-api - Mai - Hacky Messenger browser extension & API for the Meta Glasses. "Hey Meta send a message to ChatGPT" (Browser-extensions)
README
# Mai - Meta Glasses API for Messenger

Note: by using this project you agree to the terms of use outlined in [TERMS_OF_USE.md](https://github.com/dcrebbin/meta-glasses-api/blob/main/TERMS_OF_USE.md)
**This is a browser extension to add custom AI bots to messenger that can be used with the Meta Rayban Smart Glasses or the standalone messenger app.**
## Features:
1. Hey Meta send a photo to my food log: [Video Demo](https://www.youtube.com/watch?v=PiEDrcLCmew)
2. Hey Meta send a message to ChatGPT
3. Video Monitoring: Send screenshots of your video calls to your chosen provider (ChatGPT, Claude etc) and then log the output to the log viewer
### Requirements:
a) [Meta Rayban Smart Glasses](https://about.fb.com/news/2023/09/new-ray-ban-meta-smart-glasses/) (or the standalone messenger app)
b) [OpenAI/Perplexity/Claude etc Api Key](https://platform.openai.com/)
c) Alternative Facebook/Messenger account
### Browser Extension Setup
1. bun install
2. bun run dev:chrome (or brave, firefox)
3. This should build and run the extension and automatically open it
4. Add any api keys you want to use in the extension: the API settings tab has more information on how to get them
5. Sigin into your alt Facebook account and head to [facebook.com/messages/t](https://www.facebook.com/messages/t) and start monitoring the conversation
## Hey Meta Send a Photo/Message to **\_\_\_\_\_**
Before we setup our extension we're going to trick the Meta Glasses into allowing us to send a message to (nearly) any name e.g: "Hey Meta send a message to ChatGPT".
### Tricking Meta
1. Create a messenger group chat with 2 other facebook accounts (the minimum amount allowed to create a group chat)

2. Remove the account you're not going to use
3. Change the name of the chat
4. Update the group chat photo (for a legit feel)
5. Set a nickname for your alt bot account
6. Go to the Meta view app within the communications section
7. Go to Messenger and disconnect then reconnect your messenger account
I believe this step resyncs all your latest chats and friends which then allows that Meta Glasses to become aware of your newly created group chat to allow for voice commands!
### Chat Monitoring
1. On your alt account head to messenger.com or facebook.com/messages then open your newly created group chat
2. Start monitoring the chat
3. With each new message/image request it will send it to your chosen provider (ChatGPT, Claude etc) and then respond to you with the output
4. If enabled: It will then generate an audio clip of that output using OpenAI and send it back to you
#### Examples
All chats can be done via voice commands "Hey Meta send a message to \_\_\_" or by simply messaging the group chat.
#### OpenAI query with Minimax text to speech

#### Using Perplexity to answer a question accurately

#### Using GPT 4.1 to describe an image

by [Devon Crebbin](https://github.com/dcrebbin)
Please reach out if there are any issues or feature requests :)
Hopefully the Meta Reality Labs team will provide an SDK in the future so these types of integrations can be ✨productionised✨
Credits:
[Anime Sky from Vecteezy](https://www.vecteezy.com/vector-art/53757812-an-anime-style-illustration-of-clouds-in-the-sky) is used in the icon