尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证LossLens: automated profit troubleshooter for e-commerce & Shopify stores. Finds the root cause of a losing week (RTO, ad spend, COGS, cancels) with a ₹ action plan. Next.js + Claude.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Live: https://ecom-ai-troubleshooter.vercel.app · Built by S Surya Narayan
When an online store has a losing week, LossLens finds out why. Answer four quick questions, then paste the store's weekly PnL and any supporting data you have (ad campaigns, gender, age, platform, state, product, fulfilment, catalogue changelog). LossLens runs a strict 8-step troubleshooting method and returns:
The troubleshooting framework is in
prompts/l3-diagnostic.md. I built it from 12+ live seller case studies.
Browser (Next.js page) ──POST /api/analyze──▶ Serverless function (Vercel)
paste data / sample ├─ system prompt = prompts/*.md
charts (Recharts) ◀── JSON ─────────────────── ├─ Gemini (free tier, JSON validated by zod)
markdown report └─ rate limit + input caps
lib/schema.ts.Stack: Next.js 15 · TypeScript · Tailwind CSS v4 · Recharts · Google Gemini (free tier) · Zod
GEMINI_API_KEY = your free keyhttps://<name>.vercel.app link.Every later commit to GitHub, including edits made in GitHub's web editor, redeploys automatically.
Two add-on features can be turned off or back on without changing any code. Set the variable in Vercel → Settings → Environment Variables, then Redeploy.
| Variable | off means | Default |
|---|---|---|
NEXT_PUBLIC_FEATURE_STUDIO | Section Studio page, API, nav link and home promo are removed (/studio returns 404) | on |
NEXT_PUBLIC_FEATURE_TOKENS | Set to on to bring back the demo token wallet, pricing page and per-use costs | off |
To turn a feature back on, delete the variable (or set it to on) and redeploy. Balances and saved sections live in visitors' browsers, so they come back too.
Studio code is self-contained, so you can also remove it from the repo entirely if you want:
app/studio/, app/api/studio/, components/studio/, lib/theme.ts.
| Variable | Used by |
|---|---|
GEMINI_API_KEY | Everything: troubleshooter, Section Studio, Ask Lens (free tier, aistudio.google.com/apikey) |
WALLET_SECRET | Optional: a long random string used to sign token balances |
ANALYZE_MODEL / THEME_FREE_MODEL / THEME_PRO_MODEL / CHAT_MODEL | Optional model overrides (default: free Gemini models) |
| What | Where |
|---|---|
| Your name and links in the header | lib/site.ts |
| The diagnostic framework | prompts/l3-diagnostic.md |
| Web-app output rules | prompts/web-app-addendum.md |
| Demo dataset (fictional) | lib/sampleData.ts |
| Dashboard fields | lib/schema.ts + components/Dashboard.tsx |
npm install
cp .env.example .env.local # add your key
npm run dev