npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jboix/m8

v1.0.0

Published

A pair of eyes in a browser tab that sees, hears and talks through Gemini Live, and remembers you.

Readme

Quality bun TypeScript license: MIT

m8 is a character that lives in a browser tab as a pair of eyes. He sees through the webcam, hears through the microphone, talks through Gemini's live speech model, decides where to look, and remembers earlier conversations. It is one Bun server and a React page, and the only service it needs is a Gemini API key.

Quick start

You need Bun 1.4 or later and a Gemini API key.

bunx @jboix/m8 --open
  1. The page opens in your browser.
  2. Paste your Gemini key. The server checks it with Gemini, stores it sealed in its database, and picks the newest live model and the newest text model the key can use. You can change either before you go on.
  3. Choose a language and enter your name.
  4. Allow the camera and the microphone.

His memory and keys live in ~/.m8. You can move them with --data <dir>, and choose the port with --port. bunx @jboix/m8 --help lists the options.

To work on him, clone the repository instead:

bun install            # dependencies and git hooks
bun run dev            # web on :3000, server on :3001

Then open http://localhost:3000 and follow the same steps. You do not need a .env file. .env.example lists the optional variables.

What he does

  • He looks at you. He follows faces and motion, glances at a wave, and turns to whoever starts talking. When nobody is there he looks around, yawns and falls asleep, and a face wakes him.
  • He talks with you. You can interrupt him. In a room with other people you can hold a talk button instead, so he only hears you.
  • He shows what he feels. He has thirteen expressions, from curious to shocked, most of them with a small decoration, such as a tear or a sweat drop, and a robot sound.
  • He speaks first. When he has been bored long enough, by silence or by something he noticed, such as music starting, he starts the conversation.
  • He remembers. After each conversation he writes down what happened and what he learned, and he brings it up another day. With face learning on, he knows people by sight.
  • He speaks four languages: English, French, Spanish and Japanese, one at a time.

The settings let you change his voice and sounds, how he listens, his memory, the faces he knows, and the Gemini models. They also show what he has spent, estimated from Google's list prices. Developer options open the rig: every parameter of the eyes, the live session, the senses and the memory, and an event log you can record and replay.

Privacy

m8 runs on your machine, but Gemini is what sees, hears, talks and writes his memory, so most of what he knows reaches Google.

  • While he is awake, the microphone audio and one camera frame a second go to Gemini.
  • His memory is stored in data/m8.sqlite on the machine that runs the server. Gemini reads it all the same: every session starts with his self-model, recent episodes, top facts and the names he knows, recall sends facts back to the model, and Gemini writes the summaries and facts from the transcript after each session.
  • The face embeddings, the detector results, the raw room audio and the usage records never leave the machine. When face learning is on, only names reach Gemini.
  • You can read and delete the memory from the settings. Google's terms for the Gemini API apply to everything sent to it.

The architecture lists each thing that reaches Gemini, and when.

Running it for others

bun run build          # the web app, into apps/web/dist
bun run start          # one server on :3001: the page, the API and the relay
  • It listens on every interface and prints the address other devices can use. You can keep it to this machine with --host 127.0.0.1, and choose the port with --port 3000.
  • A phone needs the page over https, because browsers refuse the camera and the microphone over plain http. Put your own https reverse proxy or tunnel in front of the port.
  • Set M8_ACCESS_KEY before you expose the server. Without it, anyone with the URL can open sessions on your Gemini key, replace the key, and read his memory.
  • Back up keys/secret.key apart from data/. The stored Gemini key does not open without it.

Documentation

Contributing

Read the contributing guide before opening a pull request. The Code of Conduct applies to everyone who takes part. Report a vulnerability as SECURITY.md describes.

License

MIT. See LICENSE.