Pivot
Pivot is a high-performance real time analytics database on open data formats.
Track grape chemistry and wine phenolics for Monte Xanic winery
AI summary · website and README
DataJavaScript · CSSGitHub @hackesmitOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
Wine analytics dashboard for Monte Xanic winery. Tracks berry chemistry (Brix, pH, tANT, TA), wine phenolics, extraction rates, vintage comparisons, and field measurements across 17 grape varieties and 12 vineyard origins in Baja California, Mexico.Read the full README ↗Wine analytics dashboard for Monte Xanic winery. Tracks berry chemistry (Brix, pH, tANT, TA), wine phenolics, extraction rates, vintage comparisons, and field measurements across 17 grape varieties and 12 vineyard origins in Baja California, Mexico.
| Layer | Technology |
|---|---|
| Frontend | Vanilla JavaScript (ES6), no framework |
| Charts | Chart.js 4.4.1 (CDN) |
| Data Parsing | SheetJS 0.18.5 (CDN) |
| Database | Supabase (PostgreSQL) |
| Weather | Open-Meteo Archive API |
| Hosting | Vercel (auto-deploy) |
| Auth | HMAC session tokens + bcryptjs |
| AI Assistant | Claude (Anthropic) claude-sonnet-4-6 via /api/mona proxy |
index.html Single-page app
js/ Frontend modules (14 files)
app.js App lifecycle, routing, refresh
auth.js Login/logout, token management
config.js Colors, mappings, normalization
dataLoader.js Supabase queries, data transformation
filters.js Filter state, chip UI
charts.js All Chart.js rendering
tables.js Table rendering, sorting
kpis.js KPI calculations
weather.js Open-Meteo API, meteorology cache
upload.js File parsing, server upload
mediciones.js Mediciones form, table, charts
maps.js SVG vineyard map
explorer.js Dynamic chart builder
events.js Event delegation (CSP-safe)
api/ Vercel serverless functions
login.js Authentication
verify.js Token validation
logout.js Token revocation
config.js Supabase credentials (auth-gated)
upload.js Data insertion (auth-gated)
lib/verifyToken.js Shared HMAC verification
lib/rateLimit.js In-memory rate limiter
ping.js Daily Supabase keep-alive (Vercel cron)
migrations-status.js Migration drift diff for lab banner
row.js Generic row edit/delete (lab role)
css/styles.css All styling, dark/light themes
sql/ Database migrations
tests/ Unit tests (47 tests, 5 suites)
docs/ Detailed documentation
npm install
npm start # http://localhost:8080 (static only)
npx vercel dev # With API endpoints (requires .env.local)
npm test # Run unit tests
Create .env.local with:
SUPABASE_URL=...
SUPABASE_ANON_KEY=...
SUPABASE_SERVICE_KEY=...
SESSION_SECRET=...
AUTH_USERNAME=...
AUTH_PASSWORD_HASH=...
LAB_USERNAME=...
LAB_PASSWORD_HASH=...
CRON_SECRET=...
CRON_SECRET gates /api/ping, the daily Supabase keep-alive endpoint invoked by Vercel cron. Production-scope only — not needed in .env.local for local dev. Generate with openssl rand -hex 32.
See docs/Operations.md for full setup instructions.
Detailed docs are in docs/:
| Doc | Content |
|---|---|
| Architecture | System design, data flows, auth flow |
| Frontend Architecture | Module responsibilities, state ownership |
| Database | All table schemas with types and constraints |
| API | Endpoint contracts, request/response shapes |
| Data Dictionary | Chemistry terms, units, naming conventions |
| Data Validation | Upload parsing, normalization, filtering rules |
| Security | Auth model, CSP, rate limiting, known limitations |
| Operations | Setup, deployment, environment variables |
| Test Coverage | Test suite details and coverage gaps |
| Domain Model | Entity relationships, identifier formats |
| Roadmap |
All planned phases (1-7) are complete. See docs/Roadmap.md for details.
| Completed phases, deferred work, future improvements |
| Development Rules | Single-console development workflow |