Karat
Karat est la plateforme SaaS qui permet aux commerçants de Mauritanie et du Sénégal de créer une boutique en ligne premium en quelques minutes. Essai gratuit de 3 jours.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证TR CoffeeDB is a Next.js and Supabase app for discovering specialty coffees from Turkish roasters.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗KahveDrop runs on Cloudflare Workers/D1 through vinext, with a Three.js coffee studio and a Turkish coffee discovery catalog. The public name is set in src/lib/brand.ts and is provisional; the repository and some infrastructure names still use the earlier project name. The original Next/Supabase (v1) paths remain only for rollback and export. The product goal is simple: help buyers compare beans across roasters without opening a dozen separate storefronts.
src/app: Next.js App Router pages (catalog, coffee detail, roasters, quiz, guide, compare) and the /go outbound-link route.src/components: UI; the live catalog UI is in components/v2.src/lib: brand config, D1 catalog access, and legacy Supabase query helpers (still used by /compare).shared/v2: catalog, qualification, ingestion and profile logic shared by the web app, crawler and scripts.scrapers: source adapters and parsers (its own package.json).workers, wrangler*.jsonc: the web Worker and the crawler Worker (Cloudflare cron is currently off).migrations: D1 schema. supabase/migrations: legacy Postgres schema, kept for rollback and export.scripts: refresh, digest, export and audit scripts.wrangler (installed as a dev dependency); the local D1 database is created by npm run db:migrate:local.CLOUDFLARE_D1_API_TOKEN for refresh and migrations) and a Kit API key for the newsletter; see .env.example. Supabase credentials are needed only for the legacy rollback paths below.Use the checked-in .nvmrc to align local and CI Node versions.
npm ci
npm --prefix scrapers ci
npm run db:migrate:local
npm run dev
Open http://localhost:3001. npm run dev uses the Workers runtime so the D1 catalog binding is present. Schema migration alone does not import data; use the migration runbook. This workspace already has a repaired local catalog. npm run dev:next is retained for legacy compatibility and does not supply D1.
Three.js loads only on the home page after hydration. It pauses when offscreen/hidden and supports reduced motion and WebGL fallback.
Maintenance: npx tsx scripts/v2-repair-local-catalog.ts --local-db <existing-project-.wrangler-database.sqlite> (dry-run; add --apply after reviewing the report) checks saved qualified captures; internal repair reports live under .local/v2. Do not expose these reports in public routes.
Install dependencies:
npm ci
npm --prefix scrapers ci
Create local env files:
cp .env.example .env.local
cp scrapers/.env.example scrapers/.env
Fill in the required variables:
App runtime:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYScrapers and migrations:
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYDB_PASSWORDSUPABASE_DB_SSL_CA_FILE pointing to the Server root certificate from
Supabase Database Settings when running migrations over the poolerRun database migrations:
npm run scrapers:migrate
Start the app:
npm run dev:next
Open http://localhost:3000.
npm run dev
npm run lint
npm run typecheck
npm run build
npm run check
npm run scrapers:migrate
npm run scrapers:scrape -- --roaster <slug>
Run npm test && npm run check before opening or updating a PR. The first command runs the automated tests; npm run check runs linting, TypeScript checks, the production build, and the scraper typecheck.
npm run scrapers:migrate to apply the SQL files in supabase/migrations.SUPABASE_DB_SSL_CA_FILE to its absolute path.npm run scrapers:scrape to run all configured scrapers.npm run scrapers:scrape -- --roaster <slug> when you only want one roaster.The contributor rules live in CONTRIBUTING.md. The short version:
main protected and deployable..github/workflows/ci.yml runs the smoke checks we want required on pull requests:
The database job replays the legacy Supabase migrations against PostgreSQL and is retained with them for rollback. The web job also builds the Cloudflare web Worker and validates the crawler Worker bundle.
The daily D1 refresh (scrape.yml running scripts/v2-refresh.mts) crawls every active qualified source once. There is no retry and no success-rate gate: the run exits non-zero if any requested source does not finish as success, and the refresh report is uploaded as an artifact. Dispatching with specific slugs refreshes only those sources.
The retry (SCRAPE_MAX_ATTEMPTS) and success-rate (MIN_SCRAPE_SUCCESS_RATE) policy in scrapers/src/run-policy.ts belongs to the legacy Supabase scraper (npm run scrapers:scrape) and is not used by the scheduled refresh.
The approved implementation plan is preserved in PLAN.md. Current deferred work and priorities live in TODOS.md, and shipped releases are recorded in CHANGELOG.md. See CONTRIBUTING.md for the branch and pull-request workflow.
The daily catalog refresh runs on GitHub Actions at 03:00 Istanbul using the scoped CLOUDFLARE_D1_API_TOKEN secret. Cloudflare cron is disabled. See the data pipeline runbook for source coverage, quota recovery and verification.