Canify boosts the Canadian economy by rewarding consumers who support the βMade in Canadaβ movement. This is particularly important when international trade policies pose challenges to our economic growth (ahem, USA). Users who back Canadian businesses receive cryptocurrency rewards and government incentives π°.
Using blockchain technology, Canify provides a transparent and secure way for consumers to be recognized for their commitment to supporting local products.
We developed a Google Chrome extension that analyzes the items in your Amazon cart, assessing them based on:
- β Whether they are Canadian-made
- β Whether they are ethically sourced
- β Whether they provide good value for money ποΈ
Users earn NEAR coins based on the Canadian content of their purchases. These coin transactions are funded through affiliate earnings generated from Amazon, creating a sustainable ecosystem that benefits both consumers and the Canadian economy π±.
- JavaScript
- Tailwind CSS
- Gemini API
- Flask (Python)
- Rust & Cargo
- Shade Agents
- NEAR Protocol
- Phala Network
- Docker
To enhance security and efficiency, Canify integrates with NEAR Protocol and Shade Agents. Hereβs how:
- Developed smart contracts using Rust & Cargo, defining rules for minting and distributing Canify Coins.
- Ensures rewards are allocated based on user purchases and Canadian content.
- Shade Agents host smart contracts in a secure environment.
- Protects sensitive operations and safeguards user data.
- Ensures transactions and rewards are transparent and secure.
- Shade Agents manage NEAR Coin distribution.
- Ensures transactions are processed efficiently and accurately.
Our implementation of the Google Toolkit, specifically the Gemini API and Chrome extension, plays a vital role in user experience:
- Built using JavaScript & Tailwind CSS.
- Seamlessly interacts with Amazonβs interface.
- Provides real-time feedback on cart items.
- Facilitates communication between the frontend and backend.
- Enables instant product assessments.
- Enhances user interaction.
- Allows users to track rewards and see their economic impact.
- The extension scans the userβs Amazon cart in real-time.
- Retrieves product details such as name, category, and origin.
- Prepares data for the assessment process.
- Evaluates each item based on:
- Canadian Origin π¨π¦
- Ethical Sourcing β
- Value for Money π°
- Assigns a score reflecting its alignment with these criteria.
- Calculates the total Canadian content percentage of the cart.
- Users earn NEAR Coins based on Canadian content.
- Shade Agents securely handle token transactions.
- NEAR Coins are minted and transferred to usersβ wallets.
- Open your terminal and navigate to the project directory.
- Run the following command:
./s.sh
- This script will:
- Create a virtual environment.
- Install dependencies.
- Start the Flask backend server.
- Open Google Chrome and go to:
chrome://extensions - Click "Load unpacked" and select this repository's folder.
- Turn on the extension and start using Canify! π
- Open Command Prompt (cmd) and navigate to the project directory.
- Run the following command:
./s.bat
- This script will:
- Create a virtual environment.
- Install dependencies.
- Start the Flask backend server.
- Open Google Chrome and go to:
chrome://extensions - Click "Load unpacked" and select this repository's folder.
- Turn on the extension and start using Canify! π
To enable the Gemini API for product assessments, define your API key in app.py. Open app.py and add your Gemini API key as follows:
API_KEY = "your-gemini-api-key-here"Replace "your-gemini-api-key-here" with your actual Gemini API key to enable API calls.
We welcome contributions! If youβd like to enhance Canify, feel free to:
- Submit pull requests.
- Report issues.
- Suggest improvements.
