Alfred Chrome Extension is a lightweight, personalized chatbot extension for Chrome, built using the Plasmo Framework and powered by Cloudflare AI. This project aims to provide an efficient and scalable solution for integrating user-specific chatbot functionalities directly into the browser.
Check out the working demo of the Alfred-Extension on Twitter:
- Personalized Chatbot: Offers tailored responses based on user-defined data.
- Cloudflare Workers Integration: Ensures secure and scalable backend operations.
- Lightweight and Fast: Built with performance optimization in mind.
- User-Friendly: Easy-to-use interface with seamless Chrome integration.
- Node.js (v16 or higher)
- npm or Yarn
- Google Chrome browser
-
Clone the Repository:
git clone https://github.com/ManashAnand/Alfred-Extension.git cd Alfred-Extension
-
Install Dependencies:
npm install
-
Run the Development Server:
npm run dev
-
Build the Extension:
npm run build
-
Load the Extension in Chrome:
- Open
chrome://extensions/
in your browser. - Enable Developer mode.
- Click Load unpacked and select the
build
folder.
- Open
To test changes locally, use the following command:
npm run dev
This starts a local development server and watches for file changes.
-
Install the Cloudflare CLI (
wrangler
):npm install -g wrangler
-
Log in to your Cloudflare account:
wrangler login
-
Deploy the worker:
npm run deploy
Alfred-Extension/
├── .github/workflows/ # GitHub Actions workflows
├── assets/ # Assets like icons or images
├── background/ # Background scripts for extension
├── components/ # React components for the extension
├── core/ # Core logic and utilities
├── helper/ # Helper functions and utilities
├── .gitignore # Git ignore file
├── .prettierrc.mjs # Prettier configuration file
├── README.md # Documentation for the project
├── example.env # Example environment variables file
├── package.json # Project dependencies and scripts
├── pnpm-lock.yaml # Lockfile for pnpm dependencies
├── popup.tsx # Popup UI for the chatbot
├── postcss.config.js # PostCSS configuration file
├── style.css # Global CSS styles
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
Contributions are welcome! Here's how you can contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m "Add your feature"
- Push to the branch:
git push origin feature/your-feature
- Create a Pull Request.
This project is licensed under the MIT License.
If you encounter any issues or have questions, feel free to open an issue or reach out.