Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

497 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-own.fun (myFun for short)

TL;DR The myFun is a prototype of On-Device AI Agent, run in browser as an extension.

Project Goal

For: Geeky application software engineers

Who: Want to build intelligent applications for themselves or others, but there seems to be a lot to learn that holds them back, such as various AI models, knowledge graphs, MLOps, LLMOps, etc. Meanwhile, many of them are extremely care about the privacy.

The myFun

IS A Prototype of frontend AI agent (on device AI agent).

THAT Provide an examples of how to build intelligent applications with minimal AI knowledge and simple technology, it can be quickly adopted to other projects.

UNLIKE ChatGPT, DeepSeek, Kimi, Sider.AI, Monica AI, and other AI assistants.

OUR PRODUCT is focusing on On-Device AI Agent (which is a complex intelligent application), and make software engineers easier to learn and build their own applications. It is open-source, free of charge, with a focus on enterprise cybersecurity, privacy protection, and compliance requirements.

More Details

Project Structure

This repository contains:

  • extension/ - Chrome extension source code and build files
  • backend/ - Backend service (includes Neo4j database setup)
  • docs/ - Documentation (configured for GitHub Pages with Docsify)

Backend Service

The backend service uses Neo4j as the graph database. To start the database:

cd backend
./dev.sh start-db

For more information, see backend/README.md.

Build or Install

Build from Source Code

  1. Navigate to the extension folder: cd extension
  2. Run npm install: npm install or pnpm install
  3. Run build command:
    • Dev: pnpm dev or npm run dev
    • Prod: pnpm build or npm run build
  4. Follow steps 2 to 5 in Install from Package.

Install from Package

  1. Download & unzip the latest release zip file from releases page.
  2. Open in browser - chrome://extensions
  3. Check - Developer mode
  4. Find and Click - Load unpacked extension
  5. Select - unzipped file folder or extension/dist folder if you build from source code

You can pin extension in Google Chrome toolbar if you want.

Configure myFun

Please entrance options page as below, and set up configurations. options_chrome_extension

In options page, you can see configuration page as below. configure in options_page

The key configurations are:

  • API Key: Set api key from OpenAI, Zhipu AI, Baichuan or Ollama
  • Base URL: base url from OpenAI, Zhipu AI, Baichuan or Ollama
  • Organization: Your Organization Name
  • GPT Model: glm-4-plus is default
  • Tools Call Model: If it's empty, will not use tools call to recognize user intents.

Note: Since China is not supported by OpenAI, it's difficult to ensure the compatibility, you may need to implement agents.services.ModelService.

Please refer to How to setup configurations for more details.

NOTE: Any OpenAI compatible GPT model API should work.

Others

  • Docs: Github Pages
  • Stay tuned for more updates: By starring the myFun project, GitHub will automatically receive and notify you of the latest updates through your GitHub account.

Star history

Star History Chart

About

Build your own frontend AI agent with Chrome

Topics

Resources

Stars

16 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages