Mind's Eye Search Engine is the search + stats microservice for the Google-native Mind's Eye OS constellation.
It powers:
GET /events/searchโ find events by text, source, kind, time window.GET /events/statsโ aggregate simple counts over time blocks/segments.
This service is designed to sit behind Cloud Run / Cloud Functions and index events that have already been normalized by minds-eye-core (using the LAW-T event model).
Typical flow in the Google-native stack:
- Google Workspace (Gmail, Calendar, Drive, Docs, Meet, Android)
minds-eye-gworkspace-connectorsโ ingest + normalize intoMindEyeEvent- Mind's Eye storage (DB or event store)
minds-eye-search-engineโ search + stats over those eventsminds-eye-dashboardโ UI that calls/events/search+/events/stats
- Full-text + simple trigram-style search helpers.
- Filtered search by:
- source (
gmail,calendar,drive, etc.) - kind (
gmail.message,calendar.event, etc.) - time window (LAW-T blocks/segments or raw timestamps).
- source (
- Stats endpoints that:
- count events per day (
blockId) - count events per source
- support basic timeline metrics.
- count events per day (
This repo does not own storage. It expects to read events from whatever backing store you choose (Postgres, Firestore, BigQuery, etc.) or in-memory during prototyping.
Install dependencies:
npm install
npm run build
npm start # if you add a start script later, or run via ts-node