Skip to content
/ BrainyAI Public
forked from luyu0279/BrainyAI

a free and open-source browser sidebar plugin that offers a cost-free alternative to products like Sider, Monica, and Merlin.

License

Notifications You must be signed in to change notification settings

haihd/BrainyAI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainyAI

Based on BrainAI project, modified API calls to be API Key based (gpt-4o-mini) and support local llm Ollama.

Setting

alt text

alt text

For developers

Getting started

First, install the dependencies:

npm install pnpm -g
pnpm install

Then, start the development server:

pnpm dev

Open your browser and load the appropriate development build. For example, if you are developing for the chrome browser, using manifest v3, use: build/chrome-mv3-dev.

For further guidance, visit plasmo Documentation

Vscode debug launch file

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch debug",
            "type": "chrome",
            "request": "launch",
            "url": "http://localhost:3000",
            "timeout": 10000,
            "runtimeArgs": ["--load-extension=${workspaceFolder}/build/chrome-mv3-dev"]
        },
        {
            "name": "Attach debug",
            "type": "chrome",
            "request": "attach",
            "url": "http://localhost:3000",
            "port": 9222,
            "webRoot": "${workspaceFolder}/build/chrome-mv3-dev"
        }
    ]
}

Ollama setting

If there is 403 error happen, let start Ollama with option: OLLAMA_ORIGINS=* ollama serve

Making production build

Run the following:

pnpm build

This should create a production bundle for your extension, ready to be zipped and published to the stores.

Making production(debug) build, which will reserve the logs

Run the following:

pnpm build:staing

About

a free and open-source browser sidebar plugin that offers a cost-free alternative to products like Sider, Monica, and Merlin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.1%
  • SCSS 4.4%
  • Other 0.5%