| Posted | Type | Title | Organization | NAICS | Response due | State | Award |
|---|
Download from SAM.gov
Checking…Each run pages through the Get Opportunities API, upserts notices into MariaDB, and records its progress. Large date ranges are split automatically to stay within SAM.gov's 10,000-record offset cap.
Quota & current run
SAM.gov public keys are typically limited to 10 requests/minute and 1,000/day. The counter is persisted in api_usage.
Sync history
| Run | Status | Posted range | Fetched | Stored | Requests | Started | Finished | Note |
|---|---|---|---|---|---|---|---|---|
| Loading… | ||||||||
Interaction log
Syncs, exports, emails, and notice views are recorded in activity_log.
| Time (UTC) | Category | Action | Status | Actor | Detail | Duration |
|---|---|---|---|---|---|---|
| Loading… | ||||||
Email deliveries
| Sent (UTC) | Recipients | Subject | Records | Attachments | Status | Error |
|---|---|---|---|---|---|---|
| Loading… | ||||||
How this works
- Download. The C++ sync worker calls the SAM.gov Get Opportunities API for the selected posted-date window, following pagination and respecting the configured per-minute and daily quota.
- Store. Each notice is upserted into the
opportunitiestable bynoticeId. The full SAM.gov payload is kept inraw_json, and first/last-seen timestamps are preserved. - Explore. Search, filter, sort, and page through 25–500 rows at a time. Open a row for the complete record and direct SAM.gov links.
- Share. Export the current filtered set to CSV or PDF, open a print-ready page, or email the report with attachments.
Configuration
Secrets live in .env (loaded at startup; real environment variables take precedence). Restart the service after changing them.
| Variable | Purpose |
|---|---|
SAM_API_KEY | SAM.gov API key. Required for sync; get it from your SAM.gov account. |
SAM_MAX_REQUESTS_PER_MIN | Client-side pacing (default 10). |
SAM_MAX_REQUESTS_PER_DAY | Persisted daily cap (default 1,000). |
SYNC_MAX_REQUESTS | Safety cap per run (default 100). |
SMTP_HOST, SMTP_PORT, SMTP_SECURE | Outbound mail relay. starttls, ssl, or none. |
SMTP_USERNAME, SMTP_PASSWORD | SMTP credentials, if required. |
MAIL_FROM, MAIL_FROM_NAME | From address and display name for reports. |
APP_USERNAME, APP_PASSWORD | Optional HTTP Basic auth for the whole app. |
Demo data
To explore the interface before wiring a SAM.gov key, load the synthetic dataset:
mysql -u root ai_csiis05 < database/seed_demo.sql
Demo notice IDs start with DEMO-. They are safe to delete with DELETE FROM opportunities WHERE notice_id LIKE 'DEMO-%';.
Operational notes
- Dates and timestamps are stored in UTC. SAM.gov's original deadline text (including its offset) is preserved for display.
- Large ranges are split into ≤365-day windows and further subdivided when a window exceeds the 10,000-record offset cap.
- Only one sync runs at a time. Cancellation takes effect after the in-flight page completes.
- This tool is an independent cache. Always verify the source notice on SAM.gov before acting.