Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.log
.DS_Store
.fetch-cache.json
.env

# Test runner output
connector-result.json
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ Playwright-based data connectors for [DataConnect](https://github.com/vana-com/d
|----------|---------|---------|--------|
| ChatGPT | OpenAI | playwright | chatgpt.conversations, chatgpt.memories |
| GitHub | GitHub | playwright | github.profile, github.repositories, github.starred |
| Instagram | Meta | playwright | instagram.profile, instagram.posts |
| [H-E-B](heb/) | HEB | playwright | heb.profile, heb.orders, heb.nutrition |
| Instagram | Meta | playwright | instagram.profile, instagram.posts, instagram.ads |
| LinkedIn | LinkedIn | playwright | linkedin.profile, .experience, .education, .skills, .languages |
| Oura Ring | Oura | playwright | oura.readiness, oura.sleep, oura.activity |
| Shop | Shopify | playwright | shop.orders |
| Spotify | Spotify | playwright | spotify.profile, spotify.savedTracks, spotify.playlists |
| YouTube | Google | playwright | youtube.profile, youtube.subscriptions, youtube.playlists, youtube.playlistItems, youtube.likes, youtube.watchLater, youtube.history (top 50 recent items) |

Expand All @@ -24,6 +27,10 @@ connectors/
β”œβ”€β”€ schemas/ # JSON schemas for exported data
β”‚ β”œβ”€β”€ chatgpt.conversations.json
β”‚ └── ...
β”œβ”€β”€ heb/
β”‚ β”œβ”€β”€ heb-playwright.js # Connector script
β”‚ β”œβ”€β”€ heb-playwright.json # Metadata
β”‚ └── README.md # Setup (USDA API key)
β”œβ”€β”€ openai/
β”‚ β”œβ”€β”€ chatgpt-playwright.js # Connector script
β”‚ └── chatgpt-playwright.json # Metadata
Expand Down
24 changes: 24 additions & 0 deletions heb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# H-E-B Connector

Exports your H-E-B account profile, order history, and product nutrition data.

## Scopes

| Scope | Description |
|-------|-------------|
| `heb.profile` | Name, email, phone, delivery addresses |
| `heb.orders` | Curbside and delivery orders with items, quantities, prices, dates |
| `heb.nutrition` | Nutrition facts per product (calories, macros, sodium, fiber, vitamins) |

## Environment variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `USDA_API_KEY` | No | `DEMO_KEY` | [USDA FoodData Central](https://fdc.nal.usda.gov/api-guide) API key for nutrition lookup. The demo key works but is rate-limited. Get a free key at https://fdc.nal.usda.gov/api-key-signup |

## How nutrition lookup works

1. Try the product's UPC barcode against USDA FDC (exact match)
2. If no UPC match, search by product name against Branded foods (top 5 results scored with `scoreMatch()`)
3. If branded results are poor, fall back to Foundation data type (for produce, staples, etc.)
4. HEB's own nutrition data is used when available; incomplete HEB data (null calories/macros) falls through to USDA while preserving HEB ingredients, allergens, and category
Loading