Skip to content

About

Private visual boards with browser capture, appearance search, and an iPhone companion for Meta glasses.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Brain

Visual Brain

No-fuss Pinterest, on your own computer.
Save any image from the web with one click. Arrange it on infinite boards. Find it later. Keep your images in a library you control.

▶ 35-second silent demo · Live playground · Desktop download

Live demo: Open the shared playground · Meta glasses + iPhone companion

Meta glasses and iPhone

The iPhone companion connects phone-paired Meta glasses through Meta’s Device Access Toolkit, or uses the iPhone camera. Look around to find similar saved references, see their boards and reopen them. One shared camera pipeline feeds the private library’s appearance search.

Connect a passphrase-protected HTTPS library. Matching frames are processed without saving them, and the companion stops capture when you stop, switch sources, disconnect or leave the app. Public playgrounds stay separate from this private camera flow. The web board’s Point & reopen panel includes the companion handoff and setup link.

Optional natural voice reads concise results through the phone’s selected audio output, including Bluetooth glasses. Voice starts off and needs explicit consent. Configure ELEVENLABS_API_KEY and ELEVENLABS_VOICE_ID on the private library server; keep both out of app bundles and Git. Only spoken titles and board names go to the voice service. Frames remain between the phone and your library. Missing voice configuration shows an unavailable state, with visual results still usable.

The native app and test bundle compile against pinned toolkit 1.1.0; API and session checks use generated images without real camera access. Physical glasses registration, streaming and Bluetooth playback remain to be verified on a connected device. See companion setup and verification.

Run it in two commands

python3 -m pip install -r requirements.txt
python3 server.py

Open your local board. On a Mac you can double-click Open Visual Brain.command instead; it starts the server and opens the browser for you.

Needs Python 3.10 or newer. No database server, no accounts, no cloud.

What you get

  • Boards and folders. An infinite canvas per board. Text, frames, shapes, and freehand drawing alongside your images. Pan, zoom, drag, resize, rotate, crop.
  • Library. Every image is stored once and can sit on many boards. Titles, tags, collections, favorites, and Trash with restore.
  • Search. Type to search titles, tags, and collections across everything. On a Mac, Apple Vision adds labels and visible text to each image so you can find pictures you never tagged.
  • Browser extension. Right-click any image in Chrome or Edge, or hover and click the floating button, and it lands on your board at the best resolution the page offers.
  • Fonts. Add your own TTF, OTF, WOFF, or WOFF2 fonts and type with them on the board. Five open fonts are bundled in fonts/.
  • Export. Save a board as a PNG, or everything as a ZIP backup you can restore from.
  • Sample boards. An empty library offers six ready-made boards to try the app on, and the public playground opens on them. Double-click any picture to see it large. See demo-seed/NOTICE.md for where the pictures come from.
  • Image content search (optional, Apple Silicon). Double-click Install Local Visual Search.command once to download a local CLIP model. Then search by what is in the picture, fully offline.
  • 3D boards and room placement. Select up to eight images and choose Go to 3D to make a new board with one rotatable object per image. With the optional Ryzen multi-photo worker, upload and select 32–80 overlapping angles of one still object, then choose One 3D object from these angles for a single combined model. Save the current angle as an image or download the model. You can also import a self-contained GLB file. Enter an object's real height to place it at scale in a compatible phone's room view.
  • Walk this board. Move through the board's saved images, models, text, and frames with the arrow keys or buttons.
  • Point & reopen. Compare a camera frame or photo with saved images and jump to visually similar boards. The frame is not saved.
  • Source trail and taste map. Keep an image's page, maker, and license details; see visual groups across the library.
  • Private critique. Pin comments to exact spots on images and models. On a private hosted board, create a board-only review link and revoke it when done.

Built-in photo to 3D

Go to 3D works out of the box on a hosted copy, with no worker, account or upload to anyone else. An open depth model (Depth Anything V2 Small, Apache-2.0) runs on the CPU inside the app and takes about a second per picture.

  • A thing photographed on a plain backdrop is cut out and closed into a solid you can turn. The front follows the photo. The back is a mirrored guess, because one photo never shows it.
  • Any other picture becomes a relief tile: the photo pressed into its own depth, with a plain back.

To switch it on for a local copy:

python3 -m pip install -r requirements-relief.txt
python3 free_3d_relief.py --install   # one 99 MB download, checked against a pinned SHA-256

Set VISUAL_BRAIN_RELIEF=0 to switch it off. When a full 3D worker (below) is connected it is used instead; the built-in engine takes over whenever that worker is away. One model from many angles always needs the worker.

Free photo-to-3D worker

Photo-to-3D generation runs on your own Linux CPU using TripoSR. On the Ryzen, run bash tools/setup_3d_cpu.sh once. It downloads the open model and checks a sample before enabling Go to 3D. A clean object photo works best; one selected photo makes one model. Generation can take a while, so use Check result on the new board. Importing a GLB file does not need the worker.

For one model from many angles, run bash tools/setup_3d_multi_cpu.sh on the Ryzen after the single-photo setup. The script uses a locally available OpenMVS binary or downloads and checks the official v2.4 Ubuntu release; set VISUAL_BRAIN_OPENMVS_SOURCE_BIN to use a different local binary folder. It installs PyCOLMAP and a foreground remover in a separate Python environment. This path works best with a full circle of overlapping photos of a still object, including higher and lower angles; photos with missing sides or weak overlap are rejected. It runs on a CPU, so expect minutes rather than seconds.

To check the complete private dispatch and return path before connecting a hosted site, set VISUAL_BRAIN_3D_WORKER_DIR to the installed Ryzen worker folder and run python3 tools/smoke_3d_multi_cpu.py /path/to/jpeg-orbit /path/to/result.glb --remote-loopback. The temporary board and worker stay on loopback; the result GLB is saved at the chosen output path.

The normal hosted container includes the viewer, GLB import and the built-in engine above, but does not install the large CPU worker. For the free Ryzen worker, run free_3d_worker.py on Ryzen with VISUAL_BRAIN_WORKER_TOKEN_FILE pointing to a protected credential and VISUAL_BRAIN_WORKER_CALLBACK_ORIGIN set to the hosted site. Set VISUAL_BRAIN_3D_OUTBOUND=1 and the matching VISUAL_BRAIN_3D_REMOTE_TOKEN as private hosted-service variables. Run free_3d_outbound.py on Ryzen with the same credential, callback origin, and loopback worker port. It opens one authenticated WebSocket to the hosted site and forwards source photos to the loopback worker; the worker sends completed models through the protected callback. No inbound route or paid worker is needed. Keep token values out of source and logs. Room placement needs a compatible phone and a secure site address.

Linux user-service configuration

The outbound connector template is in deploy/visual-brain-3d-outbound.service. It expects the checkout at ~/apps/visual-brain-worker, an application Python environment at .venv/ with requirements.txt and websocket-client installed, and a running visual-brain-3d.service loopback worker. Adjust the checkout paths in the unit if you install elsewhere. %h expands to the user service owner's home directory.

Create a private ~/.config/visual-brain/worker.env containing the board's HTTPS origin and any worker-directory override. For example:

VISUAL_BRAIN_WORKER_CALLBACK_ORIGIN=https://your-board.example
# Optional when the worker was installed outside the checkout:
# VISUAL_BRAIN_3D_WORKER_DIR=/absolute/path/to/.local-3d-worker
# Keep this equal to the loopback worker's configured port:
VISUAL_BRAIN_WORKER_PORT=18788

Use literal absolute paths in this file. Environment files do not expand shell variables or ~. Protect it with owner-only read/write permissions. The unit loads its separate token from ~/.config/visual-brain/worker-token through systemd's LoadCredential; the Python connector reads CREDENTIALS_DIRECTORY automatically. Keep that token file owner-only as well, and configure the same token and port on the loopback worker. The unit requires worker.env, so a missing board configuration stops startup with a systemd error.

Browser extension

The extension folder is an unpacked Chrome/Edge extension.

  1. Open chrome://extensions (or edge://extensions) and turn on Developer mode.
  2. Click Load unpacked and choose the extension folder.
  3. In Visual Brain, open More → Extension setup and copy the pairing key.
  4. Click the extension icon, paste the key, and save.

Now right-click any image for Save image to Visual Brain, or hover it and click the floating button. Alt+Shift+S saves the hovered image. The extension only ever talks to 127.0.0.1.

Details and the request format are in extension/README.md.

Where your data lives

Everything is in data/ next to server.py: a SQLite database, your original image files, and any fonts you added. Back it up by copying that folder or by using Save all data… in the sidebar. The folder is ignored by Git.

Hosting it

Visual Brain is designed to run on your own machine, but it can be hosted. The included Dockerfile and railway.json work on Railway and anywhere that runs a container.

It refuses to listen on a public address unless you choose one of two modes:

  • Private board: set VISUAL_BRAIN_HOST=0.0.0.0, VISUAL_BRAIN_PASSPHRASE=<something long>, and VISUAL_BRAIN_PUBLIC_ORIGIN=https://your-domain (Railway sets the origin for you). The landing page is public; the board asks for the passphrase.
  • Public demo: set VISUAL_BRAIN_HOST=0.0.0.0 and VISUAL_BRAIN_DEMO=1. Anyone can edit, images are capped at 8 MB and 400 total, and all data is wiped every VISUAL_BRAIN_DEMO_RESET_HOURS hours (default 6). The browser extension does not pair with hosted instances.

The public demo limits photo-to-3D requests to two images at a time and a bounded queue, so one visitor cannot occupy the free worker indefinitely.

Development

python3 tests/test_visual_brain.py          # end-to-end smoke test against a real server
python3 -m unittest tests/test_hosted_security.py
python3 -m unittest tests/test_enrichment.py tests/test_inspo_fonts.py
python3 tests/test_free_features_e2e.py # free feature flows over HTTP
python3 tests/test_remote_3d_bridge.py  # private worker dispatch and callback
python3 -m unittest tests/test_relief_3d.py # built-in 3D: mesh rules, then a real photo over HTTP
python3 tests/test_demo_seed.py             # sample boards: seeding, routes, a copy without pictures
node tests/test_extension_menu.js && node tests/test_extension_targets.js && node tests/test_extension_fallback.js

Plain Python standard library HTTP server, SQLite, vanilla JavaScript. Two dependencies: requests and Pillow. The built-in 3D engine adds two optional ones, numpy and onnxruntime.

License

MIT. Bundled fonts keep their own open licenses in fonts/licenses/; vendor/mlx_clip is MIT from Apple; the bundled model viewer is Apache-2.0 with its license in vendor/model_viewer/.

Companion checks

Run the unit and HTTP checks independently because the hosted test fixtures configure process-wide library settings:

python3 -m unittest discover -s tests -p test_glasses.py
node tests/test_glasses_ui.cjs
PYTHONPATH=. python3 checks/glasses_integration.py
python3 -m unittest discover -s tests -p test_hosted_security.py
python3 -m unittest discover -s tests -p test_visual_features.py

The HTTP check uses a temporary private library and generated images. Voice calls are mocked or refused without configuration; these checks do not contact a paid provider. Native build and source checks are documented in the iPhone companion.

About

Private visual boards with browser capture, appearance search, and an iPhone companion for Meta glasses.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages