diff --git a/competitor-analysis/README.md b/competitor-analysis/README.md new file mode 100644 index 00000000..19d65120 --- /dev/null +++ b/competitor-analysis/README.md @@ -0,0 +1,20 @@ +
+GHBanner +
+ +# Run and deploy your AI Studio app + +This contains everything you need to run your app locally. + +View your app in AI Studio: https://ai.studio/apps/drive/1vJMxbT1hW3SiMDUeEd8cXGO_PFo8GcsE + +## Run Locally + +**Prerequisites:** Node.js + + +1. Install dependencies: + `npm install` +2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key +3. Run the app: + `npm run dev` diff --git a/competitor-analysis/index.html b/competitor-analysis/index.html new file mode 100644 index 00000000..e6d81cdd --- /dev/null +++ b/competitor-analysis/index.html @@ -0,0 +1,51 @@ + + + + + + + B2B Competitor Analysis Agent + + + + + + +
+ + + \ No newline at end of file diff --git a/competitor-analysis/index.tsx b/competitor-analysis/index.tsx new file mode 100644 index 00000000..aaa0c6e4 --- /dev/null +++ b/competitor-analysis/index.tsx @@ -0,0 +1,16 @@ + +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import App from './App'; + +const rootElement = document.getElementById('root'); +if (!rootElement) { + throw new Error("Could not find root element to mount to"); +} + +const root = ReactDOM.createRoot(rootElement); +root.render( + + + +); diff --git a/competitor-analysis/metadata.json b/competitor-analysis/metadata.json new file mode 100644 index 00000000..58f49657 --- /dev/null +++ b/competitor-analysis/metadata.json @@ -0,0 +1,5 @@ +{ + "name": "B2B Competitor Analysis Agent", + "description": "An AI-powered research agent that analyzes a company's website to identify products, target markets, and competitors, guiding the user through a step-by-step competitive analysis process.", + "requestFramePermissions": [] +} \ No newline at end of file diff --git a/competitor-analysis/package.json b/competitor-analysis/package.json new file mode 100644 index 00000000..08f4d0af --- /dev/null +++ b/competitor-analysis/package.json @@ -0,0 +1,24 @@ +{ + "name": "b2b-competitor-analysis-agent", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "react": "^19.2.0", + "react-dom": "^19.2.0", + "@google/genai": "^1.28.0", + "jspdf": "^2.5.1", + "jspdf-autotable": "^3.8.2" + }, + "devDependencies": { + "@types/node": "^22.14.0", + "@vitejs/plugin-react": "^5.0.0", + "typescript": "~5.8.2", + "vite": "^6.2.0" + } +}