Skip to content

vikbht/equityresearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Aegis Equity Brief β€” PM News Synthesizer

Aegis Equity Brief is a premium, high-fidelity web intelligence application built specifically for Portfolio Managers (PMs), financial analysts, and asset managers. The application aggregates raw, real-time public news streams, filters temporal scopes, and leverages advanced large language models (LLMs) to synthesize tactical consensus briefs.

The platform is designed around a stunning Obsidian Glassmorphism aesthetic, utilizing custom animations, high-fidelity SVGs, real-time stopwatch step checklists, and extensive telemetry reporting.

Aegis Equity Brief Dashboard Overview


🌟 Key Product Features

1. Unified LLM Integration (Cloud & Local Sandbox)

Securely routes synthesis workloads dynamically:

  • Google Gemini (Cloud): Integrates with the Google Gemini Cloud API for ultra-low latency, high-accuracy structural briefings.
  • Ollama (Local Sandbox): Run offline or sandbox queries locally using your own models (e.g. gemma, llama3). Enables analysis of high-compliance indexes or proprietary tickers without leaking sensitive signal vectors to public networks.

2. E2E Customizable News Timeframe Selector

Adjust your news history aggregating scope from 1 to 20 days using a sleek horizontal glass range slider.

  • Dynamically filters Yahoo Finance's RSS feed on the backend.
  • Automatically updates loading checkpoints and final executive brief citation subtitles.
  • Choice is saved locally in browser persistence and loaded dynamically on selecting historical entries.
  • Self-Healing Cache Migration: Automatically upgrades legacy stock cache files to the new data model without data loss or UI whiting-out.

3. LLM Inference Telemetry Dashboard

Visualizes direct metrics of model throughput and capacity:

  • Speed Tracking: Real-time throughput measures in Tokens per Second (tok/s).
  • Capacity Mapping: Direct display of prompt token footprints and completion token counts.
  • Latency Stopwatch: Microsecond precision generation timers resolving live in the loading board and permanently preserved below the briefing summary.

LLM Inference Telemetry & Citations

4. Highlight Catalyst Sources (Audit Citation System)

Accelerates review times by immediately showing source audit markers.

  • Analyzes each headline during synthesis and appends a "usedInSynthesis": true boolean.
  • Renders a glowing electric-cyan βœ“ Key Catalyst Source tag in the public news feed accordion so you see exactly which headlines directly shaped the synthesized summary, actions, or risks.

5. Watchlist & Workspace Sidebar Management

  • Briefing Caching: Seamlessly syncs generated briefs to your active watchlist history.
  • Pruning Controls: Delete individual historic briefs using smooth fade-out buttons or purge the entire local cache with the "Clear All" database command.
  • Cascading Fallback: Removing active viewports automatically shifts focus to the next available stock, preventing empty states.

πŸ“Š Sentiment Scoring & Interpretation

To help Portfolio Managers immediately interpret market consensus, Aegis Equity Brief translates synthesized financial news flows into a standardized numerical Sentiment Score paired with a strategic label.

The Scoring Scale (0 to 100)

  • 🟒 Strong Bullish (75 – 100): Unified positive catalyst consensus. Examples include record-breaking earnings reports, major regulatory clearances, or breakout product adoption.
  • 🟒 Bullish (51 – 74): Positive momentum tempered by minor headwinds. Examples include solid growth metrics or favorable macro sector tailwinds, balanced by minor profit-taking or valuation concerns.
  • 🟑 Neutral (50): Balanced news flow or highly conflicting market forces. Examples include steady-state operations, sideways product cycles, or positive catalysts offset equally by rising structural risks.
  • πŸ”΄ Bearish (25 – 49): Negative momentum or clear operational warnings. Examples include guidance downgrades, rising competition, supply chain disruptions, or impending legal investigations.
  • πŸ”΄ Strong Bearish (0 – 24): Severe distress or systemic downside. Examples include critical earnings misses, major fraud investigations, bankruptcy warnings, or crippling regulatory bans.

Real-World Examples from the Watchlist

  • NVDA (Score: 92 β€’ Strong Bullish): Represents absolute consensus driven by massive AI data center demand (Product/Tech) and strong margin expansion (Financials), comfortably offsetting single-source packaging limitations.
  • AAPL (Score: 78 β€’ Bullish): Represents solid momentum supported by premium iPhone demand inflections in key regions and record-authorized stock repurchases, balanced by European Union regulatory pressures.
  • TSLA (Score: 42 β€’ Bearish): Reflects structural transition risks, global pricing wars/automotive margin compression, and Autopilot safety investigations, prompting immediate defensive adjustments.

πŸ“‚ Monorepo Directory Layout

β”œβ”€β”€ backend/                  # REST Proxy Server & AI Engine
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ rssParser.js      # Temporal XML parser and RSS aggregator
β”‚   β”‚   └── synthesisEngine.js # Unified Ollama & Gemini API integrator
β”‚   β”œβ”€β”€ server.js             # API entry controller and routing proxy
β”‚   β”œβ”€β”€ package.json
β”‚   └── .env.example
β”œβ”€β”€ frontend/                 # React client dashboard (Vite built)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/       # Watchlist, ApiKeyModal, BriefingPanel, etc.
β”‚   β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”‚   └── mockData.js   # Pre-synthesizedμ „λ¬Έ stock data baselines
β”‚   β”‚   β”œβ”€β”€ App.jsx           # Main layout, progressive loaded checklists
β”‚   β”‚   β”œβ”€β”€ index.css         # Customizable glassmorphism visual CSS tokens
β”‚   β”‚   └── main.jsx
β”‚   β”œβ”€β”€ index.html            # Setup web viewport, custom Google Fonts
β”‚   └── package.json
β”œβ”€β”€ ARCHITECTURE.md           # Deep-dive system design & sequence graphs
β”œβ”€β”€ package.json              # Monorepo task workspace manager
└── README.md

πŸš€ Installation & Setup

Prerequisites

  • Node.js: Version 18 or higher is required.
  • Ollama (Optional): If you intend to run local inferences inside a network sandbox.

1. Clone & Install Dependencies

From the repository root directory, run the monorepo setup script. This installs packages for the root, frontend, and backend packages concurrently:

npm run install:all

2. Configure Credentials & Connections

To perform live, real-time synthesis on arbitrary stock tickers (e.g., AMD, GOOGL), you need to connect to an active model.

Option A: Cloud Gemini (Client-Side)

Launch the application, click βš™οΈ Connection Settings in the bottom-left sidebar, select Google Gemini, and enter your API Key. Your key is saved securely inside your browser's private local storage and never touches our backend logs.

Option B: Cloud Gemini (Server-Side)

Create a .env file inside the backend/ directory from the template .env.example:

GEMINI_API_KEY=AIzaSyYourKeyHere...

Option C: Local Sandbox (Ollama)

Start your local Ollama app instance in your terminal:

ollama run gemma

Launch the Aegis settings panel, select Ollama (Local), adjust the server port if different (default: http://localhost:11434), and select your model (e.g. gemma).

Note: If no connection is configured, the application executes in Demo Mode. You can click major stock tags (AAPL, NVDA, TSLA, MSFT) to instantly showcase the complete visual panel and telemetry dials with realistic mock data.

3. Launching the App

Run the dev task to boot both servers concurrently:

npm run dev

πŸ’‘ User Guidance & Workflow

1. Analyzing a Stock

  1. Type a stock ticker symbol (e.g. AAPL, MSFT, AMD) in the top lookup bar.
  2. Slide the News Timeframe range selector. Slide left to focus strictly on breaking market news (e.g. 1 Day or 2 Days), or slide right to pull historical context up to 20 Days.
  3. Click Analyze (or hit Enter).
  4. Track progress through the Progressive Checklist: Scrape Headlines βž” Enforce Temporal Filters βž” Structured Payloads βž” Execute Inference βž” Self-Healing JSON Audits βž” Compiling Dashboard.
  5. Pro-Tip: The scraped news headlines are loaded below instantly during the synthesis step so you can begin reading the feed while the model runs in the background.

2. Auditing LLM Outputs

  • Citations: Expand the Analyzed Source Feeds panel. Headlines marked with the electric-blue βœ“ Key Catalyst Source badge represent the exact articles that directly informed the synthesized summary.
  • Performance Metrics: Read the LLM Inference Telemetry bar below the executive summary to evaluate model speeds, latency, and token contexts.
  • Catalysts & Recommendations: Toggle between the dashboard tabs:
    • Tactical PM Actions: Active strategic moves suggested for risk control.
    • Market Catalysts: Multi-quadrant breakdown separating Financials, Macro forces, Product Innovation, and Regulation.
    • Downside Risks: Lingering headwinds or systemic dangers.

3. Portfolio Reporting

  • Click πŸ“‹ Copy Brief to copy a beautifully structured plaintext brief directly to your clipboard for instant sharing in Slack, Microsoft Teams, or emails.
  • Click πŸ–¨οΈ Export PDF (or press Cmd+P / Ctrl+P) to trigger the print utility. The custom print stylesheet hides sliders, dials, and scrollbars, outputting a perfectly formatted, monochrome executive brief suitable for physical portfolios or investor decks.

About

πŸ›‘οΈ Premium financial web intelligence monorepo for Portfolio Managers. Aggregates real-time news, adjusts temporal scopes (1-20 days), and synthesizes tactical briefs with LLM telemetry using Cloud Gemini or Local Ollama.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors