尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Moon phases affect hair growth
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Cutting your hair according to the moon phase, can make your hair grow faster and stronger. This simple app will tell you when it's best to cut your hair.
pnpm install
pnpm dev
Open http://localhost:3000 with your browser to see the result.
The moon-phase and hair-cutting data is public. No API key is required.
/api/mcp/developersAccept: text/markdown or Accept: application/markdownCursor / Claude MCP config:
{
"mcpServers": {
"moonphase-hair": {
"url": "https://<your-domain>/mcp"
}
}
}
Posting on every moon phase change is already implemented. The Vercel cron job
/api/cron/x-tweets runs every 10 minutes (vercel.json) and posts:
Post copy uses blank lines for readability and does not include a website URL.
The light, neutral image theme is used by default. Set
X_POST_IMAGE_THEME=dark to switch back to the preserved dark version.
X Developer App at developer.x.com
X_API_KEYX_API_SECRETX_ACCESS_TOKEN (looks like 1234567890-xxxx)X_ACCESS_SECRETPOST /2/tweets (Free tier write access is limited; Basic or higher is typically required)Environment variables in Vercel (Production) and .env.local:
CRON_SECRET=long-random-string
X_API_KEY=...
X_API_SECRET=...
X_ACCESS_TOKEN=...
X_ACCESS_SECRET=...
SUPABASE_SERVICE_ROLE_KEY=...
NEXT_PUBLIC_SUPABASE_URL=...
Supabase migration supabase/migrations/003_create_sent_tweets.sql
must be applied so tweet dedup works (sent_tweets table).
Deploy on Vercel so the cron in vercel.json is active.
Hobby crons only run daily; every-10-minute schedules need a Pro plan.
Vercel sends Authorization: Bearer $CRON_SECRET automatically when
CRON_SECRET is set.
X_TWEET_DRY_RUN=true
Then hit the route manually:
curl -H "Authorization: Bearer $CRON_SECRET" https://www.moonphasehair.com/api/cron/x-tweets
Expect status: "idle" most of the time, or dry_run / sent near a phase window.