Repository navigation
feat(llm): bundled AI key — hosted proxy + per-user daily quota #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
719a34f
feat(llm): bundled AI key — hosted proxy + per-user daily quota
Codehagen 068f31f
fix(cli): update tests + strip ANSI in CI spinner fallback
Codehagen cf0af5a
fix(scaffolder): add shiki/rehype-pretty-code deps + exclude hosted f…
Codehagen 1b9e80b
fix(registry): add mdx-config.ts + content-dir.ts to registry.json, u…
Codehagen 61739b3
fix(llm-proxy): address CodeRabbit review — critical + high issues
Codehagen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| import type { Metadata } from "next" | ||
| import { joinWaitlist } from "@/lib/waitlist" | ||
|
|
||
| export const metadata: Metadata = { | ||
| title: "Join the paid-tier waitlist — helpbase", | ||
| description: | ||
| "helpbase is free to use (500k tokens/day). Paid tier with higher limits is coming. Drop your email to get notified when it ships.", | ||
| } | ||
|
|
||
| export default function WaitlistPage({ | ||
| searchParams, | ||
| }: { | ||
| searchParams?: Promise<{ status?: string; from?: string }> | ||
| }) { | ||
| return <WaitlistContent searchParamsP={searchParams} /> | ||
| } | ||
|
|
||
| /** Mirrors lib/waitlist.ts — same regex, same fallback. */ | ||
| const SAFE_SOURCE_RE = /^[a-z0-9_-]{1,40}$/ | ||
|
|
||
| async function WaitlistContent({ | ||
| searchParamsP, | ||
| }: { | ||
| searchParamsP?: Promise<{ status?: string; from?: string }> | ||
| }) { | ||
| const sp = (await searchParamsP) ?? {} | ||
| const status = sp.status | ||
| const rawFrom = sp.from ?? "waitlist" | ||
| const from = SAFE_SOURCE_RE.test(rawFrom) ? rawFrom : "waitlist" | ||
|
|
||
| return ( | ||
| <main className="mx-auto max-w-xl px-6 py-24"> | ||
| <p className="font-mono text-xs uppercase tracking-widest text-muted-foreground"> | ||
| paid tier (coming soon) | ||
| </p> | ||
| <h1 className="mt-3 text-4xl font-semibold tracking-tight">Join the waitlist</h1> | ||
| <p className="mt-4 text-muted-foreground"> | ||
| helpbase is free to use — 500,000 tokens per day is enough for most teams. A paid tier | ||
| with higher limits, priority support, and team accounts is on the way. Drop your email | ||
| and we’ll let you know when it ships. | ||
| </p> | ||
|
|
||
| <p className="mt-2 text-sm text-muted-foreground"> | ||
| Need more tokens right now?{" "} | ||
| <a href="/docs/byok" className="underline hover:text-foreground"> | ||
| Bring your own Vercel AI Gateway key | ||
| </a>{" "} | ||
| — unlimited, your own cost. | ||
| </p> | ||
|
|
||
| {status === "ok" ? ( | ||
| <div className="mt-8 rounded-md border border-green-500/40 bg-green-500/10 px-4 py-3 text-sm"> | ||
| Thanks — you’re on the list. We’ll email you when the paid tier ships. | ||
| </div> | ||
| ) : status === "error" ? ( | ||
| <div className="mt-8 rounded-md border border-red-500/40 bg-red-500/10 px-4 py-3 text-sm"> | ||
| Something went wrong. Try again, or email hi@helpbase.dev. | ||
| </div> | ||
| ) : null} | ||
|
|
||
| <form action={joinWaitlist} className="mt-8 flex gap-3"> | ||
| <input type="hidden" name="source" value={from} /> | ||
| <input | ||
| type="email" | ||
| name="email" | ||
| required | ||
| placeholder="you@company.com" | ||
| className="flex-1 rounded-md border border-border bg-background px-4 py-2 text-sm outline-none focus:ring-2 focus:ring-ring" | ||
| /> | ||
| <button | ||
| type="submit" | ||
| className="rounded-md bg-foreground px-5 py-2 text-sm font-medium text-background hover:opacity-90" | ||
| > | ||
| Join | ||
| </button> | ||
| </form> | ||
|
|
||
| <p className="mt-6 text-xs text-muted-foreground"> | ||
| No spam. We’ll email once when the paid tier opens. Unsubscribe any time. | ||
| </p> | ||
| </main> | ||
| ) | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Codehagen/helpbase
Length of output: 89
🏁 Script executed:
Repository: Codehagen/helpbase
Length of output: 266
🏁 Script executed:
Repository: Codehagen/helpbase
Length of output: 1004
🏁 Script executed:
Repository: Codehagen/helpbase
Length of output: 919
🏁 Script executed:
Repository: Codehagen/helpbase
Length of output: 9157
🏁 Script executed:
Repository: Codehagen/helpbase
Length of output: 1016
Fix broken BYOK documentation link.
The link should be
/guides/byok, not/docs/byok. The docs are organized under route groups, so/docsdoesn't appear in the URL. The route is/guides/byokbased on the article location atapps/web/content/guides/byok.mdx.Update line 46:
📝 Committable suggestion
🤖 Prompt for AI Agents