Skip to content

Intelligent chrome extension - Helpful automations through relevant HTML snippets

License

Notifications You must be signed in to change notification settings

Sharan-Babu/BrassOne

Repository files navigation

BrassOne

Easily build automations for HTML snippets that popup with helpful information when you visit websites. Enhances your browsing experiences. Link to Extension

We have built an autonomous web assistant that knows your web reading preferences and generates HTML snippets accordingly. To use it you can simply open the extension when you want to create a new kind of automation. These automations could be things like:

  • When I visit a news article, give me a summary
  • Estimate reading time for articles and display it
  • When I visit a careers page, highlight jobs related to computer science
  • When I visit a Hackathon page, list the top prizes

Once automations like these have been submitted, whenever you visit a website, the AI assistant (chrome extension) will search (vector search) for automations that may apply and accordingly display helpful HTML snippets in the extension. The extension will automatically open when needed! This way, you can setup automations to gain massive productivity boosts!

Local Installation Steps

The extension can also be used locally by following these steps:

  1. Download this repository and remember the location of the 'Extension' folder
  2. Visit chrome://extensions/
  3. Switch on developer mode at top right
  4. Click 'load unpacked'
  5. Select the 'Extension' folder. That's it! Your extension is now ready to use.

Logic Flow

graph TD
    A[Chrome Extension] -->|Upload Flow| B(User inputs automation)
    B --> C{Send to Cloudflare Worker}
    C --> D[Process with Gemini AI and TiDB - Vector Search]
    D --> E[Action in TiDB - Create/Edit/Delete]
    E --> F[Return confirmation]
    F --> A

    A -->|Query Flow| G(New webpage detected)
    G --> H{Send page content to Cloudflare Worker}
    H --> I[Retrieve relevant automations from TiDB]
    I --> J[Generate HTML snippet with Gemini AI]
    J --> K{Return HTML or 'none'}
    K --> L[Display in extension popup]
    L --> A
Loading

Useful Reference Links

  1. Intro to TiDB and underlying mechanisms - The first links you should visit if you have never worked with TiDB. : TiDB dev guide overview, TiDB Bookshop Schema example

  2. Creating a TiDB serverless cluster - Setting a serverless cluster in TiDB

  3. Connect to your serverless cluster - Connect to TiDB cluster, Serverless Drivers

  4. AI-assisted SQL Editor and TiDB Chatbot! - Ctrl + I on windows - TiDB SQL AI Assistant, TiDB AI Chatbot

  5. Vector Search on TiDB - Vector Search overview, PingCap AI, TiDB Vector Search

    TiDB Vector Search (beta) provides an advanced search solution for performing semantic similarity searches across various data types, including documents, images, audio, and video. This feature enables developers to easily build scalable applications with generative artificial intelligence (AI) capabilities using familiar MySQL skills.

    Note TiDB Vector Search is currently in beta and only available for TiDB Serverless clusters.

  6. Types and Syntax - TiDB Vector Data Types, TiDB Vector Search Index

    Note Currently Vector data types cannot store double-precision floating numbers. This will be supported in future release.

  7. TiDB Cloud Data Service - TiDB Cloud Data Service

    TiDB Cloud Data Service (beta) is a fully managed low-code backend-as-a-service solution that simplifies backend application development, empowering developers to rapidly build highly scalable, secure, data- driven applications. You'll need to set up a server-side component to handle this, as Chrome extensions can't directly connect to databases. Data Service enables you to access TiDB Cloud data via an HTTPS request using a custom API endpoint.

  8. Sample Applications - TiDB Past Hackathon Projects, TiDB GPT App

  9. Embeddings - Google AI Embeddings, Embeddings Document Search

  10. Cloudflare Worker Wrangler Docs - Wrangler Docs

  11. Other resources - Link


Special thanks to the TiDB team for the clear documentation and super-helpful tools like the AI-SQL Editor which make development so much faster!