Skip to content

Commit 061696b

Browse files
feat: backend v2 (#204)
* feat: init * feat: update package details * feat: update authors * feat: update search * feat: add package search queries * feat: refactor sitemap overview fetch * feat: refactor author sitemap index * chore: cleanup * chore: bump version * fix: authors search * chore: update prompts * chore: remove deprecated code * fix: animation
1 parent 112a687 commit 061696b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1774
-254650
lines changed

.vscode/settings.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,12 @@
1212
"revalidator",
1313
"sonner",
1414
"subline",
15+
"supabase",
1516
"tailwindcss"
1617
],
1718
"tailwindCSS.experimental.classRegex": [
18-
[
19-
"cva\\(([^)]*)\\)",
20-
"[\"'`]([^\"'`]*).*?[\"'`]"
21-
],
22-
[
23-
"cx\\(([^)]*)\\)",
24-
"(?:'|\"|`)([^']*)(?:'|\"|`)"
25-
],
26-
[
27-
"tw`([^`]*)`",
28-
"tw`([^`]*)`"
29-
],
19+
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
20+
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
21+
["tw`([^`]*)`", "tw`([^`]*)`"]
3022
]
31-
}
23+
}

web/.env.example

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
VITE_RELEASE_CHANNEL = "development"
22

3-
VITE_API_KEY =
4-
53
VITE_PLAUSIBLE_SITE_ID =
64
VITE_PLAUSIBLE_API_KEY =
75

8-
VITE_AP_PKGS_URL
9-
VITE_SELECT_PKG_URL =
10-
VITE_OVERVIEW_PKGS_URL =
11-
VITE_SITEMAP_PKGS_URL =
6+
GOOGLE_GENERATIVE_AI_API_KEY =
127

13-
GOOGLE_GENERATIVE_AI_API_KEY =
8+
SUPABASE_URL =
9+
SUPABASE_ANON_KEY =

web/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.4.1
1+
v23.3.0
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export class AIPackageService {
2929
const prompt = [
3030
"You're a world-class summarizer of scientific code packages written in R.",
3131
"Given the currently most downloaded packages on CRAN and their descriptions below, summarize a concise analysis of the trending TOPICS of those packages.",
32-
"The goal is to get a birds-eye-view of the current trends. Respond with highly concise, to-the-point, well-written prose.",
32+
"The goal is to get a birds-eye-view of the current trends. Respond with highly concise, to-the-point briefings.",
3333
"Respond in HTML, but don't include 'html' or 'body' tags.",
34-
"Never use headings or lists.",
34+
"Never use headings or lists. Split your response into 3 (three) paragraphs with a <br/> after each.",
3535
].join(" ");
3636

3737
const context = await contextComposer();
@@ -62,9 +62,9 @@ export class AIPackageService {
6262
const prompt = [
6363
"You're a world-class summarizer of scientific code packages written in R.",
6464
"Given the currently trending packages and their descriptions below, summarize a highly concise analysis of the trending TOPICS of those packages.",
65-
"The goal is to get a birds-eye-view of the current trends. Respond with concise, to-the-point, well-written prose.",
65+
"The goal is to get a birds-eye-view of the current trends. Respond with highly concise, to-the-point briefings.",
6666
"Respond in HTML, but don't include 'html' or 'body' tags.",
67-
"Never use headings or lists.",
67+
"Never use headings or lists. Split your response into 3 (three) paragraphs with a <br/> after each.",
6868
].join(" ");
6969

7070
const context = await contextComposer();

0 commit comments

Comments
 (0)