bringYourOwnBrain:作者打造免費易用的開源本地 AI 平台
A datacenter shouldn't boil water just so an NPC can say "Hello", so I built bringYourOwnBrain: a free and easy to use open-source local AI platform .
作者開發 bringYourOwnBrain,讓開發者和用戶可透過 WebGPU 和 WASM,在本地免費運行小型開放權重 LLM,減少輕量 AI 任務對數據中心模型的依賴。模型首次載入後可離線使用,推理在本地記憶體進行,提示詞不會傳送至遠端伺服器。整個平台及遊戲以 Apache 2.0 License 開源。
**
Ghost in the Machine
bringYourOwnBrain is an open-weight local AI platform that makes running small open weight LLMs free and easy for both devs and users on WebGPU & WASM.
https://bringyourownbrain.org
https://bringyourownbrain.org/midgeys-midnight-mash.html
**
*What I Built
*
Every time a video game NPC chats, a user wants to ask silly questions to AI, or just data-center-powered website customer service bot is used, it adds to the electricity consumed, clean drinking water evaporated, and ecological impact in a hyper-scale that is not expected to slow.
Worse, this creates the "Viral Cloud Bill" nightmare: if an indie developer builds an AI game and it goes viral, they may wake up to a huge API bill or suspended account for being out of funds.
I built bringYourOwnBrain(BYOB) — an open-weight local AI ecosystem designed to break this cycle for good and reduce Hot-Load-in LLM model data transfers and tokens used by data-center models for miniscule tasks.
👻 Welcome to the "Ghost in the Box" and a Witchy Game
In traditional cloud AI, machine intelligence is trapped in industrial server farms hundreds of miles away. With BYOB, it is in ephemeral memory... and never leaves your device... spooky!
Check out the interactive AI-spatial "live" interaction game that you can play using real LLMs and play offline once loaded for the first time: https://bringyourownbrain.org/midgeys-midnight-mash.html
Demo
- Live Platform & SDK: https://bringyourownbrain.org
- Play Midgey's Midnight Mash: https://hackathon.games/midgeys-midnight-mash.html
- Video Preview: https://youtu.be/X5_zWmZkR6s
Screenshots from Gameplay:
Midgey Gameplay - Addictive game I just made up for this hacktoberFest :)
*Code
*
The entire platform and game are open-source under the Apache 2.0 License:
joshuadd79
/
bring-your-own-brain
bringYourOwnBrain is an open-weight local AI platform that makes running small open weight LLMs free and easy for both devs and users on WebGPU & WASM.
bring-your-own-brain
bringYourOwnBrain is an open-weight local AI platform that makes running small open weight LLMs free and easy for both devs and users on WebGPU & WASM.
The 1-Line Developer Experience:
const brain = new BringYourOwnBrainWeb({
container: document.getElementById('ai-connector'),
width: '220px',
height: '44px',
onState: (state) => console.log('BYOB State:', state)
});
brain.mount();
// 3. Stream or await responses directly from the player's GPU:
async function talkToNPC(playerText) {
brain.onChunk = (token) => renderSpeechBubble(token);
const reply = await brain.chat([
{ role: 'system', content: 'You are a sarcastic goblin bouncer. Answer in 1 short sentence.' },
{ role: 'user', content: playerText }
], { max_tokens: 60, temperature: 0.7 });
}
How I Built It
I missed last week's deadline where I was making an agentic workbench but didnt get it how I wanted it for submission. I used the v6 version of it --> get it / see it at https://phosita.tech/wbv6.html <-- ... I made a mini-golf game.
Long story short, I NEVER USED local llms before and the Android apps did not offer CORS for the workbench so I pivoted to build this platform to suite my own needs - then realized... holy shit... if everyone did this we could take some of the "data-center" death spiral we are in globally down a notch...
When I saw the Dia de Los Muertos event I wanted to make it fun so I made a game and figured a way to use one domain's cache as a central storage permission handler for all my websites (and anyone else's) to allow local devices to download a model once and run it from cache across various websites.
If you want to learn more, check out the main site: https://bringyourownbrain.org/
I legally broke through this wall without requiring any browser extension!
Why Does Open Innovation Matter?
In this case, the open source and use of this tool can reduce gaming-related token generation by quadrillions of tokens per year and open up a new class of local-ai-first gaming, chatbots, and more!
- The Ecological Imperative <-- AI WROTE THIS BIT
Consumer devices have massive, underutilized NPUs, GPUs, and unified RAM sitting
idle. Shifting lightweight game dialogue and interactive NPC reasoning to edge
compute eliminates quintillions of wasted data-center tokens per year, cutting
down power grid consumption and cooling water evaporation.
- Radical Privacy & Offline Resilience
Because inference runs in local memory, no user prompt ever touches a remote
server. The game ai-engine works on an airplane, deep in a cabin without Wi-Fi (once cached), or during
an internet outage. The intelligence stays in the player's hands.
My Agent Session
This project was built with the help of agentic AI workflows (pairing with
Claude for physics integration and rapid boilerplate generation).
The Spirit of It is my heart :)
Prize Categories
- Overall Winner (Hacktoberfest Open-Source AI Challenge: Week 4)
- Open-Source AI / Local Inference Track
The revolution begins... bring your own brain (but don't lose it! 🤯)
來源:DEV Community · dev.to

