The W3C Accessible Rich Internet Applications specification defining roles, states, and properties (role, aria-expanded, aria-live) that expose custom widgets to assistive technology.
HTML covers standard links, headings, and forms natively, and WAI-ARIA fills the semantic gap for rich application widgets like tabs, dialogs, trees, grids, comboboxes, and live status notifications. The first rule of ARIA is to prefer native HTML elements whenever one exists, using ARIA only when native semantics are insufficient—and always pairing roles with matching keyboard behaviour. For example, Disclosure uses native <details> while TreeView uses role="tree" and aria-expanded.
Bu depoda nasıl kullanılır
Applied across interactive primitives in packages/ui/src/components/ and verified by packages/ui/test/a11y.test.tsx and tests/browser/a11y-tree-audit.mjs.
İlgili dosyalar:packages/ui/test/a11y.test.tsxtests/browser/a11y-tree-audit.mjs
wake-up hint
KavramBağlayıcılar ve CRMDiğer adlar: a webhook is a hint, webhook as a hint
Kalıcı bağlantıThe design principle that an inbound webhook signals something changed, prompting an authoritative API check or cursor sync.
Webhook payloads can arrive out of order, omit nested fields (such as updated refund lines or COGS) or fail delivery after a handful of provider retries. Treating a verified webhook as a fast wake-up hint—recording it in raw_ingest_envelopes and triggering an immediate cursor delta fetch (webhook_hint) backed by regular overlap polling—combines real-time speed with authoritative API accuracy. For example, when an ikas order webhook arrives at 14:02, ikas-sync.ts schedules a webhook_hint reconciliation immediately instead of blindly trusting partial webhook fragments as the sole ledger truth. Hints make syncs both fast and self-healing.
Bu depoda nasıl kullanılır
Built as the webhook_hint reconciliation stage in packages/connectors/src/ikas-sync.ts.
İlgili dosyalar:packages/connectors/src/ikas-sync.ts
wall clock
TR: duvar saatiKavramNasıl geliştiriyoruzDiğer adlar: wall-clock time, real time
Kalıcı bağlantıThe real elapsed clock time on the computer, which varies with CPU load and makes hard millisecond test thresholds flaky.
Measuring wall-clock duration tells you how fast one laptop happened to be at that exact second, mixing code speed with background CPU load. For performance guards, comparing how cost scales between a small input and a large input is far more reliable than asserting a fixed millisecond ceiling. For example, Wave 46 replaced 214 wall-clock millisecond assertions with growth-ratio checks.
Bu depoda nasıl kullanılır
Replaced as a performance-test oracle by tools/lib/linear-time.mjs in Wave 46.
İlgili dosyalar:tools/lib/linear-time.mjs
Executing a function untimed before benchmarking so JIT compilation and caches settle, preventing noisy false failures in complexity tests.
JavaScript's V8 engine compiles hot functions lazily on their first few calls, making the very first call appear artificially slow compared to subsequent runs. Running an untimed warm-up pass before taking median timings ensures the N/8 versus N growth-ratio measurement compares steady-state execution rather than JIT compiler noise. For example, tools/lib/linear-time.mjs runs a warm-up pass and takes medians over 5 runs with an automatic 2x confirmation re-check.
Bu depoda nasıl kullanılır
Built into tools/lib/linear-time.mjs (assertLinearTime, assertLinearTimeSync).
İlgili dosyalar:tools/lib/linear-time.mjs
watchdog
KavramNasıl geliştiriyoruzDiğer adlar: watchdog timer
Kalıcı bağlantıA hard safety timer that aborts a hung test or server process and cleans up its child processes so CI never stalls forever.
If a browser page waits indefinitely for a missing network response or a child process refuses to exit, a test run can hang until CI times out with no useful error message. A watchdog timer enforces a clear ceiling, prints diagnostics and kills every spawned child cleanly. For example, journey-harness.mjs installs a watchdog so stuck Chromium journeys terminate and free their temp clusters.
Bu depoda nasıl kullanılır
Implemented in tests/browser/support/journey-harness.mjs.
İlgili dosyalar:tests/browser/support/journey-harness.mjs
One numbered, goal-focused delivery cycle split into parallel workstreams, independently reviewed and merged as one coherent milestone.
Organizing development into waves keeps every batch tied to one concrete outcome a person can verify—such as "someone can sign in" (Wave 46) or "one real event, one real approval" (Wave 48). Each wave follows the same rhythm: briefs, parallel worktrees, reports, independent review, integration, full verification and pull request. For example, Wave 45 fixed the review's core findings before Wave 46 built sign-in.
Bu depoda nasıl kullanılır
Documented chronologically in LOG.md and docs/wave45/README.md through docs/wave49/README.md.
İlgili dosyalar:docs/wave45/README.mddocs/wave48/README.mddocs/wave49/README.md
WCAG 2.2 AA
WCAGTR: Web İçeriği Erişilebilirlik Yönergeleri 2.2 AAStandartÖn yüz ve tasarımDiğer adlar: WCAG, Web Content Accessibility Guidelines, AA, AAA, conformance level
Kalıcı bağlantıThe W3C Web Content Accessibility Guidelines version 2.2 at conformance level AA (the middle tier between A and AAA), the mandatory accessibility baseline for every screen.
WCAG 2.2 AA translates accessibility into testable engineering criteria: 4.5:1 text contrast, 3:1 control-edge contrast, never conveying status by colour alone, full keyboard access with visible focus, 320-pixel reflow, 200-percent text zoom, no drag-only controls, and minimum target sizes (where our kit raises the bar further to 44 x 44 px). Meeting AA across every route ensures the workspace works cleanly for all users and complies with international accessibility expectations. For example, every primitive in packages/ui and all 40 routes in apps/web are tested against WCAG 2.2 AA rules.
Bu depoda nasıl kullanılır
Enforced across packages/ui and apps/web via tools/check-a11y-static.mjs, packages/ui/test/a11y.test.tsx, and tests/browser/a11y-tree-audit.mjs.
İlgili dosyalar:tools/check-a11y-static.mjspackages/ui/test/a11y.test.tsxtests/browser/a11y-tree-audit.mjs
Web Animations API
WAAPITR: Web Animasyonları APIStandartÖn yüz ve tasarımDiğer adlar: WAAPI, element.animate
Kalıcı bağlantıThe browser built-in JavaScript animation interface (element.animate) used for lightweight GPU-only transitions without importing a heavy animation framework.
Heavy third-party motion packages add tens of kilobytes to every browser download for simple opacity or slide effects the browser already accelerates natively. Calling CSS transitions or element.animate strictly on transform and opacity keeps client bundles lean while honouring prefers-reduced-motion directly. For example, tools/check-web-budgets.mjs blocks framer-motion and gsap so animation stays native and tiny.
The Next.js application in apps/web that renders every public and workspace screen and talks only to the API.
Separating the web app from the database ensures that no screen component can accidentally bypass API authentication, authorization or audit logging. The web app renders Turkish and English layouts from the closed UI kit and calls the API over HTTP for live workspace data. For example, opening /w/{workspaceId}/overview renders the workspace shell and fetches live metrics from the API.
Bu depoda nasıl kullanılır
Lives in apps/web, imports UI parts strictly from packages/ui, and holds zero database or vault credentials.
İlgili dosyalar:apps/webpackages/ui
web application firewall
WAFTR: web uygulaması güvenlik duvarıTeknolojiOperasyon ve doğrulama
Kalıcı bağlantıAn edge HTTP filter that inspects incoming web requests and blocks automated attack patterns before they hit the API.
Whereas a host firewall blocks whole TCP ports like 5432, a web application firewall inspects HTTP paths, headers and request rates on ports 80 and 443 to stop credential stuffing, bot floods and common exploit probes. A WAF adds defence in depth alongside application-level rate limits and strict input validation, never replacing them. For example, Cloudflare's edge rules can throttle abusive bursts before traffic reaches the VPS.
Bu depoda nasıl kullanılır
Edge rate-limiting and WAF protections are part of the Zone 1 Cloudflare deployment design (docs/THREAT-MODEL.md, docs/ENTERPRISE-SECURITY-QUESTIONNAIRE-TR.md); in-process API rate limits are built in apps/api/src/platform/rate-limit.ts.
İlgili dosyalar:docs/THREAT-MODEL.mdapps/api/src/platform/rate-limit.ts
web budget gate
TR: web bütçe kapısıSüreçÖn yüz ve tasarımDiğer adlar: web budget, web budgets, check-web-budgets, FORBIDDEN_WEB_PACKAGES, forbidden web packages, web bütçe kapısı
Kalıcı bağlantıThe five-invariant gate in tools/check-web-budgets.mjs enforcing lean packages, local assets, session-token and JSON-body hygiene, client boundaries, and zero public mount fetches.
Performance and security regressions creep into frontends one convenient import or sloppy fetch at a time unless an automated script refuses them immediately. The web budget gate enforces five hard rules on every check: blocking 16 forbidden heavy or AI-vendor packages, requiring every /assets/** path to resolve locally with zero stock hosts, preserving verbatim sessionToken forwarding and single JSON serialisation, keeping Node built-ins out of client files (and requiring use client for hooks), and banning mount-time fetches on watched public pages. For example, adding lodash or a background fetch to /trust fails node tools/check-web-budgets.mjs immediately.
Bu depoda nasıl kullanılır
Implemented in tools/check-web-budgets.mjs (5 invariants) and mirrored into learning content checks via tools/learning/lib/gates.mjs.
İlgili dosyalar:tools/check-web-budgets.mjs
Web Crypto
TeknolojiKriptografi ve gizlilerDiğer adlar: Web Crypto API, crypto.subtle, SubtleCrypto
Kalıcı bağlantıThe standard browser and edge-runtime cryptography API (crypto.subtle) used for hashing, HMAC, and random bytes without extra packages.
The Web Crypto API exposes native, vetted implementations of SHA-256, HMAC, AES-GCM, and CSPRNG directly inside web browsers and edge workers. Using native platform crypto avoids shipping fragile hand-rolled JavaScript crypto libraries in front-end bundles. For example, the browser audit-bundle verifier calls crypto.subtle.digest('SHA-256', ...) locally in the user's tab with zero network traffic.
Bu depoda nasıl kullanılır
Used in apps/web/src/app/trust/bundle-verify-browser.ts for offline SHA-256 chain checks and in the edge collector for HMAC signing.
İlgili dosyalar:apps/web/src/app/trust/bundle-verify-browser.ts
web storage
TR: web depolama alanıTeknolojiÖn yüz ve tasarımDiğer adlar: localStorage, sessionStorage
Kalıcı bağlantıBrowser per-origin key-value stores (localStorage persistent, sessionStorage per tab) that exist only in the browser and never protect secrets from XSS.
Web storage is handy for non-sensitive UI preferences such as chosen theme (light/dark) or active locale (tr/en), read strictly inside useEffect after mount so server-rendered HTML does not hit hydration mismatches. Because any script running on the page can read localStorage, authentication session tokens belong in HttpOnly cookies, never in web storage. For example, WorkspaceUiProvider persists light/dark and TR/EN preferences in browser storage while real login sessions stay in HttpOnly cookies.
Bu depoda nasıl kullanılır
Used strictly for non-secret UI preferences in apps/web/src/lib/workspace-context.tsx; real session credentials stay in HttpOnly __Host-gd_session cookies.
İlgili dosyalar:apps/web/src/lib/workspace-context.tsx
WebAuthn
StandartKimlik ve erişimDiğer adlar: Web Authentication, FIDO2
Kalıcı bağlantıThe W3C and FIDO2 browser standard for passwordless, origin-bound public-key authentication using passkeys.
WebAuthn defines the browser APIs (navigator.credentials.create and navigator.credentials.get) and cryptographic message formats (clientDataJSON, authenticatorData, ES256/EdDSA signatures) that let websites authenticate people with device-bound passkeys instead of shared secrets. Because the browser itself embeds the true page origin and rpId into the signed payload, WebAuthn defeats credential phishing and database password leaks structurally. For example, both returning passkey sign-in and passkey step-up verification run on the same WebAuthn cryptographic verifier.
Bu depoda nasıl kullanılır
Verified with Node's built-in node:crypto (ES256, EdDSA) in apps/api/src/auth/session-and-mfa.ts and apps/api/src/auth/sign-in/passkey-verifier.ts.
İlgili dosyalar:apps/api/src/auth/session-and-mfa.tsapps/api/src/auth/sign-in/passkey-verifier.ts
webhook
TR: webhookKavramBağlayıcılar ve CRMDiğer adlar: inbound webhook, partner webhook, /v1/webhooks/:provider
Kalıcı bağlantıAn automated HTTP POST sent by an external platform to this product when an event happens, such as a new order or refund.
Instead of waiting 15 minutes for the next poll, webhooks push notifications from ikas, Shopify, WooCommerce, Ticimax, Meta or iyzico the moment a customer buys, cancels or messages. Because webhook endpoints face the public internet, every single delivery must pass raw-body constant-time HMAC signature verification, payload byte caps (1 MiB), replay-window checks (300 seconds) and SHA-256 deduplication in raw_ingest_envelopes before any JSON is trusted. For example, a forged ikas order webhook with an invalid x-ikas-signature is rejected immediately with 401 before reaching order normalisation or the ledger. Verified webhooks then act as fast hints paired with overlap polling.
Bu depoda nasıl kullanılır
Built in apps/api/src/routes/ingest-webhooks.ts, packages/connectors/src/hmac-verifiers.ts and packages/connectors/src/webhook-normalizer.ts, documented in docs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md.
İlgili dosyalar:apps/api/src/routes/ingest-webhooks.tspackages/connectors/src/hmac-verifiers.tsdocs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md
webhook bridge
KavramBağlayıcılar ve CRMDiğer adlar: Ticimax panel webhook bridge, generic webhook bridge
Kalıcı bağlantıA merchant-configured HTTP webhook forwarded from a storefront admin panel for platforms without public developer APIs (such as Ticimax).
Not every Turkish commerce platform offers OAuth apps and documented GraphQL APIs, yet merchants on those platforms still need accurate server-side order and refund tracking. A webhook bridge gives the merchant a workspace-specific signed ingress URL and secret to paste into their shop admin panel, then normalises incoming payloads into the same canonical order model as native connectors. For example, OD-06 ships the Ticimax panel webhook bridge on Day 1 via ticimax-adapter.ts, applying the exact same raw-body HMAC verification, Turkish currency parsing and deduplication rules as ikas. Bridges unlock Day-1 coverage without waiting on proprietary partner portals.
Bu depoda nasıl kullanılır
Built in packages/connectors/src/ticimax-adapter.ts under locked decision OD-06 (docs/OWNER-DECISIONS.md).
İlgili dosyalar:packages/connectors/src/ticimax-adapter.tsdocs/OWNER-DECISIONS.md
webhook delivery health
TR: webhook sağlığıMetrikBağlayıcılar ve CRMDiğer adlar: delivery health, signature-verified rate, DLQ rate, teslimat sağlığı
Kalıcı bağlantıA read-only five-channel operational summary tracking signature pass rates, duplicate suppression, retries and dead-letter rates.
Silent webhook failures are dangerous because dashboards keep loading old data while new orders stop arriving. Webhook delivery health aggregates raw_ingest_envelopes, sync_cursors and conversion outbox rows across five fixed channels (ikas_webhook, shopify_webhook, iyzico_webhook, meta_capi_dispatch, google_data_manager_dispatch) using pure BigInt counters that conserve 1:1 with totals. For example, a channel stays healthy at 98 percent or higher HMAC verification and 2 percent or lower DLQ rate, degrades above 2 percent DLQ or 5 retries, and escalates to critical above 10 percent DLQ, below 90 percent HMAC or on any quarantined cursor; idle channels with zero deliveries return null rates rendered as dashes. Every snapshot also stamps external_sandboxes_pending: true honestly until live partner credentials activate.
Bu depoda nasıl kullanılır
Built in apps/api/src/routes/developer-webhook-delivery-health.ts and documented in docs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md.
İlgili dosyalar:apps/api/src/routes/developer-webhook-delivery-health.tsdocs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md
webhook identity triad
KavramBağlayıcılar ve CRMDiğer adlar: identity triad, delivery_id, subscription_id, kimlik üçlüsü
Kalıcı bağlantıThe rule distinguishing delivery_id (changes on every resend), business event_id (stable) and subscription_id (webhook config).
A classic webhook bug is deduplicating orders solely by the HTTP delivery header (delivery_id), because many providers mint a brand-new delivery_id every time they retry a timed-out request. Keeping the three identifiers distinct—delivery_id for one HTTP attempt, business event_id (such as ikas:order:9001:paid) for the underlying commercial event, and subscription_id for which webhook registration fired it—prevents duplicate order ingestion even across retries and re-registrations. For example, if a store fires two webhook attempts with different delivery_id headers for the same order, deduplicating on the canonical business event ID suppresses the second copy cleanly. Separating the triad keeps kuruş ledgers exact.
Bu depoda nasıl kullanılır
Built in packages/connectors/src/kimi-v8-guards.ts and enforced alongside raw_ingest_envelopes in packages/connectors/src/replay-queue.ts.
İlgili dosyalar:packages/connectors/src/kimi-v8-guards.tspackages/connectors/src/replay-queue.ts
webhook normaliser
KavramBağlayıcılar ve CRMDiğer adlar: normaliser, normalizer, webhook normalizer
Kalıcı bağlantıThe fail-closed parser (packages/connectors/src/webhook-normalizer.ts) that converts storefront webhooks into canonical orders while rejecting floats, PII and over-refunds.
Incoming JSON from six different storefront platforms varies wildly in field names, date strings, Turkish currency punctuation and refund conventions—and hostile payloads can attempt prototype pollution (__proto__), binary float rounding or oversized bodies. The webhook normaliser enforces a 1 MiB byte cap, rejects prototype keys and non-integer monetary floats, verifies refunds never exceed order value (OVER_REFUND_FORBIDDEN), strips raw PII keys and emits one clean CanonicalUnifiedOrder in exact BigInt minor units. For example, a WooCommerce string "250.50" and a Ticimax string "250,50 TL" both become 25050n, while a binary JSON float 19.99 on a monetary key fails closed. Strict normalisation keeps bad data out of PostgreSQL.
Bu depoda nasıl kullanılır
Built in packages/connectors/src/webhook-normalizer.ts (WEBHOOK_MAX_PAYLOAD_BYTES = 1_048_576, MAX_INT64_MINOR).
İlgili dosyalar:packages/connectors/src/webhook-normalizer.ts
webhook replay
TR: yeniden oynatmaSüreçBağlayıcılar ve CRMDiğer adlar: replay queue, single-flight replay, WebhookReplayQueue
Kalıcı bağlantıRe-processing stored, signature-verified failed webhook envelopes single-flight per workspace once the root cause is fixed.
When a temporary parser bug or database outage pushes valid webhooks into the dead-letter queue, operators need a safe way to recover those missed orders without double-counting revenue or re-triggering unverified spoofed requests. Webhook replay re-runs only envelopes with signatureVerified === true inside a per-workspace single-flight lock (locked_single_flight if another replay is active), suppressing duplicates by request_hash, source_delivery_id and stale order version, and returning a PII-free SHA-256 batch checksum over newly persisted kuruş totals. For example, replaying ten quarantined envelopes where three were already recovered by overlap polling persists exactly seven orders and skips three duplicates cleanly. Consent-denied or erased contacts are never replayed.
Bu depoda nasıl kullanılır
Built in packages/connectors/src/replay-queue.ts (WebhookReplayQueue, REPLAY_DEFAULT_MAX_ATTEMPTS = 5) and operationalised in docs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md.
İlgili dosyalar:packages/connectors/src/replay-queue.tsdocs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md
webhook signature
TR: webhook imzasıKavramBağlayıcılar ve CRMDiğer adlar: X-IYZ-SIGNATURE-V3, X-Shopify-Hmac-Sha256, X-Hub-Signature-256, x-ikas-signature
Kalıcı bağlantıAn HMAC digest computed by the sending provider over verbatim raw webhook bytes and verified in constant time before parsing JSON.
Because any attacker on the internet can POST fake order JSON to /v1/webhooks/:provider, the receiver must cryptographically verify every request using the shared webhook secret before trusting a single field. Computing the HMAC over the parsed-and-re-stringified JSON breaks whenever key order or whitespace differs, so verification always hashes the verbatim raw request Buffer and compares digests with crypto.timingSafeEqual to defeat timing attacks. For example, Meta signs X-Hub-Signature-256 (sha256=<hex>), Shopify signs X-Shopify-Hmac-Sha256 (Base64), ikas signs x-ikas-signature and iyzico signs X-IYZ-SIGNATURE-V3. Any missing, malformed or mismatched signature is rejected fail-closed.
Bu depoda nasıl kullanılır
Built in packages/connectors/src/hmac-verifiers.ts (verifyMetaWebhook, verifyShopifyWebhook, verifyIkasWebhook, verifyIyzicoWebhookV3, verifyEdgeCollectorRequest) and called at ingress in apps/api/src/routes/ingest-webhooks.ts.
İlgili dosyalar:packages/connectors/src/hmac-verifiers.tsapps/api/src/routes/ingest-webhooks.ts
A modern compressed raster image format (RFC 9649) delivering sharply smaller file sizes than PNG or JPEG, used for every photo and editorial illustration in the web app.
Smaller image payloads directly improve Largest Contentful Paint on Turkish mobile networks while preserving crisp editorial colour and transparency. Verifying real RIFF....WEBP binary magic bytes and exact pixel dimensions ensures a misnamed uncompressed PNG never slips into public/assets/. For example, all 17 Higgsfield visuals in apps/web/public/assets/ are verified WebP files totalling under 2.5 MiB.
Bu depoda nasıl kullanılır
Verified for valid RIFF....WEBP headers, 512x512 / 1600x900 dimensions, and per-slot KiB limits by tools/check-media-assets.mjs.
İlgili dosyalar:tools/check-media-assets.mjs
wedge
TR: kamaKavramİş modeli ve pazarDiğer adlar: entry wedge, audit-to-sprint wedge, single-player utility wedge, single-player wedge, Audit Wedge
Kalıcı bağlantıThe narrow, zero-friction first offer—here the free 90-second read-only audit leading into a DIY trial or 7-day fix sprint—that earns trust before asking for larger commitments.
Asking a skeptical Turkish business owner to replace their entire marketing stack and hire a new retainer specialist on Day 1 creates huge resistance. A sharp entry wedge solves one urgent, undeniable pain in minutes with zero risk: /audit inspects Meta EMQ, 30-day wasted ad spend and top 5 SEO blockers read-only without a credit card, then lets the owner either fix signals themselves in a 14-day cardless trial or book a bounded 7-day sprint. For example, docs/adr/0008-audit-to-sprint-cold-start-wedge.md locks this audit-to-sprint wedge as the main acquisition engine.
Bu depoda nasıl kullanılır
Locked in docs/adr/0008-audit-to-sprint-cold-start-wedge.md and docs/GTM-TURKEY-PLAYBOOK.md (§2); /audit currently serves local sample data until live external APIs open (issue 4).
İlgili dosyalar:docs/adr/0008-audit-to-sprint-cold-start-wedge.mddocs/GTM-TURKEY-PLAYBOOK.md
The sum of open CRM deal values each multiplied by its stage win probability, computed in exact integer minor units.
Counting a brand-new lead worth 50,000 TRY the same as a signed proposal worth 50,000 TRY overstates expected near-term cash flow. Weighted pipeline multiplies each open deal integer minor value by a fixed stage probability weight in basis points so owners see a realistic revenue forecast alongside raw pipeline totals. For example, a 100,000-kuruş deal at proposal (50 percent weight) contributes 50,000 kuruş to weighted pipeline, whereas the same amount at lead (10 percent weight) contributes 10,000 kuruş. Using pure BigInt math avoids floating-point drift.
Bu depoda nasıl kullanılır
Built in apps/api/src/routes/crm-pipeline-velocity.ts alongside pipeline-velocity and stage-distribution.
İlgili dosyalar:apps/api/src/routes/crm-pipeline-velocity.ts