Skip to content

Commit 6a39c03

Browse files
committed
defang branding
1 parent 8bb1f85 commit 6a39c03

File tree

7 files changed

+22
-7
lines changed

7 files changed

+22
-7
lines changed

samples/mastra-nextjs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Setting the permissions to public repositories only is sufficient, unless you wa
6363

6464
## Usage
6565

66-
1. Enter a GitHub repository URL in the input field (e.g., `https://github.com/facebook/react`)
66+
1. Enter a GitHub repository URL in the input field (e.g., `https://github.com/DefangLabs/defang`)
6767
2. Start chatting with mastra-nextjs about the repository
6868
3. Use commands like:
6969
- "Show me the file structure"
@@ -73,7 +73,7 @@ Setting the permissions to public repositories only is sufficient, unless you wa
7373

7474
## How It Works
7575

76-
Repo Base uses a tool-based approach rather than traditional RAG systems, making it more efficient for large codebases. When you provide a repository URL, Repo Base uses tools to:
76+
Mastra-nextjs uses a tool-based approach rather than traditional RAG systems, making it more efficient for large codebases. When you provide a repository URL, Mastra-nextjs uses tools to:
7777

7878
1. Fetch the repository's file tree
7979
2. Access file contents on demand
-12.5 KB
Binary file not shown.

samples/mastra-nextjs/app/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const geistMono = Geist_Mono({
1818
});
1919

2020
export const metadata: Metadata = {
21-
title: "Repo Base",
21+
title: "Mastra-Nextjs",
2222
description:
2323
"Turn your favorite repository into a knowledge base and get ai powered insights",
2424
};

samples/mastra-nextjs/app/src/app/page.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ export default function Page() {
1313
<p className="text-lg text-secondary-foreground">
1414
Chat with any GitHub repository. Understand code faster.
1515
</p>
16+
<p className="text-lg text-secondary-foreground">
17+
Powered by <a href="https://defang.io/" className="underline inline-flex items-center gap-1">
18+
Defang.io
19+
<img
20+
src="https://defang.io/_next/static/media/defang-icon-dark-colour.25f95b77.svg"
21+
alt="Defang"
22+
className="w-6 h-6 block dark:hidden"
23+
/>
24+
<img
25+
src="https://defang.io/_next/static/media/defang-icon-white-colour.55515156.svg"
26+
alt="Defang"
27+
className="w-6 h-6 hidden dark:block"
28+
/>
29+
</a>
30+
</p>
1631

1732
<p className="text-sm text-muted-foreground">
1833
Made with ❤️ love from{" "}
@@ -40,8 +55,8 @@ export default function Page() {
4055
<h2 className="text-xl font-semibold">Popular Repositories</h2>
4156
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
4257
<SuggestedRepo owner="mastra-ai" repo="mastra" />
58+
<SuggestedRepo owner="DefangLabs" repo="defang" />
4359
<SuggestedRepo owner="assistant-ui" repo="assistant-ui" />
44-
<SuggestedRepo owner="vercel" repo="next.js" />
4560
<SuggestedRepo owner="facebook" repo="react" />
4661
<SuggestedRepo owner="tailwindlabs" repo="tailwindcss" />
4762
<SuggestedRepo owner="shadcn" repo="ui" />

samples/mastra-nextjs/app/src/components/custom/AppSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const AppSidebar = async ({
4444
<SidebarMenuItem>
4545
<SidebarMenuButton asChild>
4646
<Link href="/">
47-
<Home /> Repo Base
47+
<Home /> Mastra-Nextjs
4848
</Link>
4949
</SidebarMenuButton>
5050
</SidebarMenuItem>

samples/mastra-nextjs/app/src/components/custom/inputForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const InputForm: FC = () => {
4545
action={handleSubmit}
4646
>
4747
<Input
48-
placeholder="facebook/react"
48+
placeholder="defanglabs/defang"
4949
className={cn("h-12 text-lg", hasErrored && "ring-1 ring-destructive")}
5050
type="text"
5151
name="input"

samples/mastra-nextjs/compose.dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
environment:
77
- DB_URL=postgres://postgres:password@database:5432/postgres
88
- DB_SSL=false #set this to true if deploying to defang playground
9-
- NODE_ENV=production
9+
- NODE_ENV=development
1010
- GOOGLE_GENERATIVE_AI_API_KEY=xxx
1111
- GITHUB_TOKEN=xxx # remove this line if unused
1212

0 commit comments

Comments
 (0)