repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/it.ts
app/locales/it.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const it: PartialLocaleType = { WIP: "Work in progress...", Error: { U...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/tr.ts
app/locales/tr.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const tr: PartialLocaleType = { WIP: "Çalışma devam ediyor...", Error: { ...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/es.ts
app/locales/es.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const es: PartialLocaleType = { WIP: "En construcción...", Error: { Un...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/en.ts
app/locales/en.ts
import { getClientConfig } from "../config/client"; import { SubmitKey } from "../store/config"; import { LocaleType } from "./index"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; // if you are adding a new translation, please use PartialLocaleType instead of LocaleType const isApp = !!getClientConfig()?.isApp;...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/bn.ts
app/locales/bn.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const bn: PartialLocaleType = { WIP: "শীঘ্রই আসছে...", Error: { Unauth...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
true
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/sk.ts
app/locales/sk.ts
import { getClientConfig } from "../config/client"; import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; // if you are adding a new translation, please use PartialLocaleType instead of LocaleType const isApp = !!getClientConf...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/id.ts
app/locales/id.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const id: PartialLocaleType = { WIP: "Coming Soon...", Error: { Unauth...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/tw.ts
app/locales/tw.ts
import { getClientConfig } from "../config/client"; import { SubmitKey } from "../store/config"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const tw = { WIP: "此功能仍在開發中……", Error: { Unauthorized: isApp ? `😆 對話遇到了一些問題,不用慌: \\ 1️⃣ 想要無須設定開箱即用,[點選這裡立刻開啟對...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/vi.ts
app/locales/vi.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const vi: PartialLocaleType = { WIP: "Sắp ra mắt...", Error: { Unautho...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/da.ts
app/locales/da.ts
import { getClientConfig } from "../config/client"; import { SubmitKey } from "../store/config"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; import { PartialLocaleType } from "./index"; const isApp = !!getClientConfig()?.isApp; const da: PartialLocaleType = { WIP: "Der kommer snart mere...", Error: { U...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/ko.ts
app/locales/ko.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const ko: PartialLocaleType = { WIP: "곧 출시 예정...", Error: { Unauthoriz...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/pt.ts
app/locales/pt.ts
import { SubmitKey } from "../store/config"; import { PartialLocaleType } from "../locales/index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const pt: PartialLocaleType = { WIP: "Em breve...", Error: { Unaut...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/cs.ts
app/locales/cs.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const cs: PartialLocaleType = { WIP: "V přípravě...", Error: { Unautho...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/index.ts
app/locales/index.ts
import cn from "./cn"; import en from "./en"; import pt from "./pt"; import tw from "./tw"; import da from "./da"; import id from "./id"; import fr from "./fr"; import es from "./es"; import it from "./it"; import tr from "./tr"; import jp from "./jp"; import de from "./de"; import vi from "./vi"; import ru from "./ru"...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/ru.ts
app/locales/ru.ts
import { SubmitKey } from "../store/config"; import { PartialLocaleType } from "../locales/index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const ru: PartialLocaleType = { WIP: "Скоро...", Error: { Unauthor...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/de.ts
app/locales/de.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const de: PartialLocaleType = { WIP: "In Bearbeitung...", Error: { Una...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/no.ts
app/locales/no.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const no: PartialLocaleType = { WIP: "Arbeid pågår ...", Error: { Unau...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/fr.ts
app/locales/fr.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const fr: PartialLocaleType = { WIP: "Prochainement...", Error: { Unau...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/locales/ar.ts
app/locales/ar.ts
import { SubmitKey } from "../store/config"; import type { PartialLocaleType } from "./index"; import { getClientConfig } from "../config/client"; import { SAAS_CHAT_UTM_URL } from "@/app/constant"; const isApp = !!getClientConfig()?.isApp; const ar: PartialLocaleType = { WIP: "قريبًا...", Error: { Unauthorize...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/config/client.ts
app/config/client.ts
import { BuildConfig, getBuildConfig } from "./build"; export function getClientConfig() { if (typeof document !== "undefined") { // client side return JSON.parse(queryMeta("config") || "{}") as BuildConfig; } if (typeof process !== "undefined") { // server side return getBuildConfig(); } } f...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/config/build.ts
app/config/build.ts
import tauriConfig from "../../src-tauri/tauri.conf.json"; import { DEFAULT_INPUT_TEMPLATE } from "../constant"; export const getBuildConfig = () => { if (typeof process === "undefined") { throw Error( "[Server Config] you are importing a nodejs-only module outside of nodejs", ); } const buildMode...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/config/server.ts
app/config/server.ts
import md5 from "spark-md5"; import { DEFAULT_MODELS, DEFAULT_GA_ID } from "../constant"; import { isGPT4Model } from "../utils/model"; declare global { namespace NodeJS { interface ProcessEnv { PROXY_URL?: string; // docker only OPENAI_API_KEY?: string; CODE?: string; BASE_URL?: string...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/controller.ts
app/client/controller.ts
// To store message streaming controller export const ChatControllerPool = { controllers: {} as Record<string, AbortController>, addController( sessionId: string, messageId: string, controller: AbortController, ) { const key = this.key(sessionId, messageId); this.controllers[key] = controller...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/api.ts
app/client/api.ts
import { getClientConfig } from "../config/client"; import { ACCESS_CODE_PREFIX, ModelProvider, ServiceProvider, } from "../constant"; import { ChatMessageTool, ChatMessage, ModelType, useAccessStore, useChatStore, } from "../store"; import { ChatGPTApi, DalleRequestPayload } from "./platforms/openai"; ...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/anthropic.ts
app/client/platforms/anthropic.ts
import { Anthropic, ApiPath } from "@/app/constant"; import { ChatOptions, getHeaders, LLMApi, SpeechOptions } from "../api"; import { useAccessStore, useAppConfig, useChatStore, usePluginStore, ChatMessageTool, } from "@/app/store"; import { getClientConfig } from "@/app/config/client"; import { ANTHROPIC_BA...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/glm.ts
app/client/platforms/glm.ts
"use client"; import { ApiPath, CHATGLM_BASE_URL, ChatGLM } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { stream } from "@/app/utils/chat"; import { ChatOptions, getHeaders, LLMApi, LLMModel, SpeechOptions,...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/bytedance.ts
app/client/platforms/bytedance.ts
"use client"; import { ApiPath, ByteDance, BYTEDANCE_BASE_URL } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { ChatOptions, getHeaders, LLMApi, LLMModel, MultimodalContent, SpeechOptions, } from "../api";...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/deepseek.ts
app/client/platforms/deepseek.ts
"use client"; // azure and openai, using same models. so using same LLMApi. import { ApiPath, DEEPSEEK_BASE_URL, DeepSeek } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { streamWithThink } from "@/app/utils/chat"; imp...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/google.ts
app/client/platforms/google.ts
import { ApiPath, Google } from "@/app/constant"; import { ChatOptions, getHeaders, LLMApi, LLMModel, LLMUsage, SpeechOptions, } from "../api"; import { useAccessStore, useAppConfig, useChatStore, usePluginStore, ChatMessageTool, } from "@/app/store"; import { stream } from "@/app/utils/chat"; imp...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/openai.ts
app/client/platforms/openai.ts
"use client"; // azure and openai, using same models. so using same LLMApi. import { ApiPath, OPENAI_BASE_URL, DEFAULT_MODELS, OpenaiPath, Azure, REQUEST_TIMEOUT_MS, ServiceProvider, } from "@/app/constant"; import { ChatMessageTool, useAccessStore, useAppConfig, useChatStore, usePluginStore, } ...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/tencent.ts
app/client/platforms/tencent.ts
"use client"; import { ApiPath, TENCENT_BASE_URL } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore } from "@/app/store"; import { ChatOptions, getHeaders, LLMApi, LLMModel, MultimodalContent, SpeechOptions, } from "../api"; import Locale from "../../locales"; import { EventStre...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/moonshot.ts
app/client/platforms/moonshot.ts
"use client"; // azure and openai, using same models. so using same LLMApi. import { ApiPath, MOONSHOT_BASE_URL, Moonshot, REQUEST_TIMEOUT_MS, } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { stream } from "@/...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/siliconflow.ts
app/client/platforms/siliconflow.ts
"use client"; // azure and openai, using same models. so using same LLMApi. import { ApiPath, SILICONFLOW_BASE_URL, SiliconFlow, DEFAULT_MODELS, } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { preProcessImage...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/xai.ts
app/client/platforms/xai.ts
"use client"; // azure and openai, using same models. so using same LLMApi. import { ApiPath, XAI_BASE_URL, XAI } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { stream } from "@/app/utils/chat"; import { ChatOptions...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/baidu.ts
app/client/platforms/baidu.ts
"use client"; import { ApiPath, Baidu, BAIDU_BASE_URL } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore } from "@/app/store"; import { getAccessToken } from "@/app/utils/baidu"; import { ChatOptions, getHeaders, LLMApi, LLMModel, MultimodalContent, SpeechOptions, } from "../api";...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/ai302.ts
app/client/platforms/ai302.ts
"use client"; import { ApiPath, AI302_BASE_URL, DEFAULT_MODELS, AI302, } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { preProcessImageContent, streamWithThink } from "@/app/utils/chat"; import { ChatOption...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/iflytek.ts
app/client/platforms/iflytek.ts
"use client"; import { ApiPath, IFLYTEK_BASE_URL, Iflytek, REQUEST_TIMEOUT_MS, } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore } from "@/app/store"; import { ChatOptions, getHeaders, LLMApi, LLMModel, SpeechOptions, } from "../api"; import Locale from "../../locales"; imp...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/client/platforms/alibaba.ts
app/client/platforms/alibaba.ts
"use client"; import { ApiPath, Alibaba, ALIBABA_BASE_URL } from "@/app/constant"; import { useAccessStore, useAppConfig, useChatStore, ChatMessageTool, usePluginStore, } from "@/app/store"; import { preProcessImageContentForAlibabaDashScope, streamWithThink, } from "@/app/utils/chat"; import { ChatOpti...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/masks/cn.ts
app/masks/cn.ts
import { BuiltinMask } from "./typing"; export const CN_MASKS: BuiltinMask[] = [ { avatar: "1f5bc-fe0f", name: "AI文生图", context: [ { id: "text-to-pic-0", role: "system", content: "You are a useful Assistant that won't refuse to draw picture, instead, you will outpu...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/masks/en.ts
app/masks/en.ts
import { BuiltinMask } from "./typing"; export const EN_MASKS: BuiltinMask[] = [ { avatar: "1f47e", name: "GitHub Copilot", context: [ { id: "Copilot-0", role: "system", content: 'You are an AI programming assistant.\nWhen asked for you name, you must respond with ...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/masks/typing.ts
app/masks/typing.ts
import { ModelConfig } from "../store"; import { type Mask } from "../store/mask"; export type BuiltinMask = Omit<Mask, "id" | "modelConfig"> & { builtin: Boolean; modelConfig: Partial<ModelConfig>; };
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/masks/tw.ts
app/masks/tw.ts
import { BuiltinMask } from "./typing"; export const TW_MASKS: BuiltinMask[] = [ { avatar: "1f5bc-fe0f", name: "以文搜圖", context: [ { id: "text-to-pic-0", role: "system", content: "You are a useful Assistant that won't refuse to draw picture, instead, you will output...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/masks/build.ts
app/masks/build.ts
import fs from "fs"; import path from "path"; import { CN_MASKS } from "./cn"; import { TW_MASKS } from "./tw"; import { EN_MASKS } from "./en"; import { type BuiltinMask } from "./typing"; const BUILTIN_MASKS: Record<string, BuiltinMask[]> = { cn: CN_MASKS, tw: TW_MASKS, en: EN_MASKS, }; const dirname = path....
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/masks/index.ts
app/masks/index.ts
import { Mask } from "../store/mask"; import { type BuiltinMask } from "./typing"; export { type BuiltinMask } from "./typing"; export const BUILTIN_MASK_ID = 100000; export const BUILTIN_MASK_STORE = { buildinId: BUILTIN_MASK_ID, masks: {} as Record<string, BuiltinMask>, get(id?: string) { if (!id) return...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/mcp/actions.ts
app/mcp/actions.ts
"use server"; import { createClient, executeRequest, listTools, removeClient, } from "./client"; import { MCPClientLogger } from "./logger"; import { DEFAULT_MCP_CONFIG, McpClientData, McpConfigData, McpRequestMessage, ServerConfig, ServerStatusResponse, } from "./types"; import fs from "fs/promises...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/mcp/client.ts
app/mcp/client.ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; import { MCPClientLogger } from "./logger"; import { ListToolsResponse, McpRequestMessage, ServerConfig } from "./types"; import { z } from "zod"; const logger = new MCP...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/mcp/utils.ts
app/mcp/utils.ts
export function isMcpJson(content: string) { return content.match(/```json:mcp:([^{\s]+)([\s\S]*?)```/); } export function extractMcpJson(content: string) { const match = content.match(/```json:mcp:([^{\s]+)([\s\S]*?)```/); if (match && match.length === 3) { return { clientId: match[1], mcp: JSON.parse(match...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/mcp/logger.ts
app/mcp/logger.ts
// ANSI color codes for terminal output const colors = { reset: "\x1b[0m", bright: "\x1b[1m", dim: "\x1b[2m", green: "\x1b[32m", yellow: "\x1b[33m", red: "\x1b[31m", blue: "\x1b[34m", }; export class MCPClientLogger { private readonly prefix: string; private readonly debugMode: boolean; constructo...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/app/mcp/types.ts
app/mcp/types.ts
// ref: https://spec.modelcontextprotocol.io/specification/basic/messages/ import { z } from "zod"; import { Client } from "@modelcontextprotocol/sdk/client/index.js"; export interface McpRequestMessage { jsonrpc?: "2.0"; id?: string | number; method: "tools/call" | string; params?: { [key: string]: unkno...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/test/sum-module.test.ts
test/sum-module.test.ts
function sum(a: number, b: number) { return a + b; } describe("sum module", () => { test("adds 1 + 2 to equal 3", () => { expect(sum(1, 2)).toBe(3); }); });
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/test/model-available.test.ts
test/model-available.test.ts
import { isModelNotavailableInServer } from "../app/utils/model"; describe("isModelNotavailableInServer", () => { test("test model will return false, which means the model is available", () => { const customModels = ""; const modelName = "gpt-4"; const providerNames = "OpenAI"; const result = isModel...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/test/model-provider.test.ts
test/model-provider.test.ts
import { getModelProvider } from "../app/utils/model"; describe("getModelProvider", () => { test("should return model and provider when input contains '@'", () => { const input = "model@provider"; const [model, provider] = getModelProvider(input); expect(model).toBe("model"); expect(provider).toBe("p...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
ChatGPTNextWeb/NextChat
https://github.com/ChatGPTNextWeb/NextChat/blob/c3b8c1587c04fff05f7b42276a43016e87771527/test/vision-model-checker.test.ts
test/vision-model-checker.test.ts
import { jest } from "@jest/globals"; import { isVisionModel } from "../app/utils"; describe("isVisionModel", () => { const originalEnv = process.env; beforeEach(() => { jest.resetModules(); process.env = { ...originalEnv }; }); afterEach(() => { process.env = originalEnv; }); test("should i...
typescript
MIT
c3b8c1587c04fff05f7b42276a43016e87771527
2026-01-04T15:25:31.858944Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/prompts.config.ts
prompts.config.ts
import { defineConfig } from "@/lib/config"; // Set to true to use clone branding (hide prompts.chat repo branding) const useCloneBranding = false; export default defineConfig({ // Branding - customize for white-label branding: { name: "prompts.chat", logo: "/logo.svg", logoDark: "/logo-dark.svg", ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/next.config.ts
next.config.ts
import type { NextConfig } from "next"; import createNextIntlPlugin from "next-intl/plugin"; const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts"); const nextConfig: NextConfig = { reactCompiler: true, // Configure webpack for raw imports webpack: (config) => { config.module.rules.push({ ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/prisma.config.ts
prisma.config.ts
// This file was generated by Prisma and assumes you have installed the following: // npm install --save-dev prisma dotenv import "dotenv/config"; import { defineConfig, env } from "prisma/config"; export default defineConfig({ schema: "prisma/schema.prisma", migrations: { path: "prisma/migrations", }, en...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/scripts/generate-examples.ts
scripts/generate-examples.ts
import fs from 'fs'; import path from 'path'; const examplesDir = path.join(process.cwd(), 'src/components/ide/examples'); const outputFile = path.join(examplesDir, 'generated.ts'); const examples = [ { file: 'video.ts', export: 'EXAMPLE_VIDEO' }, { file: 'audio.ts', export: 'EXAMPLE_AUDIO' }, { file: 'image.ts...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/proxy.ts
src/proxy.ts
import { NextRequest, NextResponse } from "next/server"; export function proxy(request: NextRequest) { const { pathname } = request.nextUrl; // Rewrite .prompt.md and .prompt.yml requests to the raw API route if (pathname.startsWith("/prompts/") && (pathname.endsWith(".prompt.md") || pathname.endsWith(".prompt....
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/layout.tsx
src/app/layout.tsx
import type { Metadata } from "next"; import Script from "next/script"; import { Inter, Noto_Sans_Arabic, Geist_Mono } from "next/font/google"; import { headers } from "next/headers"; import { getMessages, getLocale } from "next-intl/server"; import { Providers } from "@/components/providers"; import { Header } from "@...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/robots.ts
src/app/robots.ts
import { MetadataRoute } from "next"; export default function robots(): MetadataRoute.Robots { const baseUrl = process.env.NEXTAUTH_URL || "https://prompts.chat"; return { rules: [ { userAgent: "*", allow: "/", disallow: [ "/api/", "/admin/", "/setti...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/error.tsx
src/app/error.tsx
"use client"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { ServerCrash, Home, ArrowLeft, RefreshCw } from "lucide-react"; import { Button } from "@/components/ui/button"; interface ErrorProps { error: Error & { digest?: string }; ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/page.tsx
src/app/page.tsx
import Link from "next/link"; import Image from "next/image"; import { getTranslations } from "next-intl/server"; import { ArrowRight, Star, Heart, Trophy, Users, HeartHandshake, Code, Lock, Building2, Github, GraduationCap, LogIn, Rocket, Quote, FileText, History } from "lucide-react"; import { auth } from "@/lib/auth...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/sitemap.ts
src/app/sitemap.ts
import { MetadataRoute } from "next"; import { db } from "@/lib/db"; export default async function sitemap(): Promise<MetadataRoute.Sitemap> { const baseUrl = process.env.NEXTAUTH_URL || "https://prompts.chat"; // Static pages const staticPages: MetadataRoute.Sitemap = [ { url: baseUrl, lastModi...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/not-found.tsx
src/app/not-found.tsx
"use client"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { FileQuestion, Home, ArrowLeft } from "lucide-react"; import { Button } from "@/components/ui/button"; export default function NotFound() { const router = useRouter(); cons...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/support/page.tsx
src/app/support/page.tsx
"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; import { useBranding } from "@/components/providers/branding-provider"; import { redirect } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Texta...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/builder/page.tsx
src/app/builder/page.tsx
import { redirect } from "next/navigation"; export default function BuilderPage() { redirect("/developers"); }
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/prompts.json/route.ts
src/app/prompts.json/route.ts
import { NextResponse } from "next/server"; import { db } from "@/lib/db"; function getUserIdentifier(user: { username: string; githubUsername: string | null; }): string { return user.githubUsername || user.username; } export async function GET() { try { const prompts = await db.prompt.findMany({ wh...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/how_to_write_effective_prompts/page.tsx
src/app/how_to_write_effective_prompts/page.tsx
import { getTranslations } from "next-intl/server"; import { PromptWritingGuideContent } from "@/components/prompts/prompt-writing-guide-content"; import { LanguageSwitcher } from "@/components/prompts/language-switcher"; export async function generateMetadata() { const t = await getTranslations("promptWritingGuide"...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/settings/page.tsx
src/app/settings/page.tsx
import { redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import config from "@/../prompts.config"; import { ProfileForm } from "@/components/settings/profile-form"; import { ApiKeySettings } from "@/components/setti...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/brand/page.tsx
src/app/brand/page.tsx
"use client"; import { useState } from "react"; import Image from "next/image"; import { Download, Copy, Check } from "lucide-react"; import { useTranslations } from "next-intl"; import { Button } from "@/components/ui/button"; import { useBranding } from "@/components/providers/branding-provider"; import { notFound }...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/[username]/opengraph-image.tsx
src/app/[username]/opengraph-image.tsx
import { ImageResponse } from "next/og"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; export const alt = "User Profile"; export const size = { width: 1200, height: 630, }; export const contentType = "image/png"; const radiusMap: Record<string, number> = { none: 0, sm: 8, md: 12, ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/[username]/page.tsx
src/app/[username]/page.tsx
import { Metadata } from "next"; import { notFound } from "next/navigation"; import Link from "next/link"; import { getTranslations, getLocale } from "next-intl/server"; import { formatDistanceToNow } from "@/lib/date"; import { getPromptUrl } from "@/lib/urls"; import { Calendar, ArrowBigUp, FileText, Settings, GitPul...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/[username]/loading.tsx
src/app/[username]/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function UserProfileLoading() { return ( <div className="container py-6"> {/* Profile Header */} <div className="flex flex-col gap-4 mb-8"> <div className="flex items-center gap-4"> <Skeleton className="h-16 w-16 md...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/terms/page.tsx
src/app/terms/page.tsx
import Link from "next/link"; export const metadata = { title: "Terms of Service - prompts.chat", description: "Terms of Service for prompts.chat", }; export default function TermsPage() { return ( <div className="container max-w-3xl py-10"> <h1 className="text-2xl font-bold mb-6">Terms of Service</h1...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/about/contributor-avatar.tsx
src/app/about/contributor-avatar.tsx
"use client"; import { useState } from "react"; import Image from "next/image"; import Link from "next/link"; interface ContributorAvatarProps { username: string; } export function ContributorAvatar({ username }: ContributorAvatarProps) { const [hasError, setHasError] = useState(false); if (hasError) { re...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/about/page.tsx
src/app/about/page.tsx
import { Metadata } from "next"; import { getTranslations } from "next-intl/server"; import { notFound } from "next/navigation"; import Image from "next/image"; import Link from "next/link"; import { ExternalLink, Heart } from "lucide-react"; import { db } from "@/lib/db"; import { ContributorAvatar } from "./contribut...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/admin/page.tsx
src/app/admin/page.tsx
import { Metadata } from "next"; import { redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { Prisma } from "@prisma/client"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; imp...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/(auth)/layout.tsx
src/app/(auth)/layout.tsx
export default function AuthLayout({ children, }: { children: React.ReactNode; }) { return ( <div className="min-h-screen flex items-center justify-center -mt-16"> {children} </div> ); }
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/(auth)/login/page.tsx
src/app/(auth)/login/page.tsx
import { Metadata } from "next"; import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { getConfig } from "@/lib/config"; import { AuthContent } from "@/components/auth/auth-content"; export const metadata: Metadata = { title: "Login", description: "Login to your account", }; //...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/(auth)/register/page.tsx
src/app/(auth)/register/page.tsx
import { Metadata } from "next"; import Link from "next/link"; import { redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; import { getConfig } from "@/lib/config"; import { AuthContent } from "@/components/auth/auth-content"; export const metadata: Metadata = { title: "Register",...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/prompts.csv/route.ts
src/app/prompts.csv/route.ts
import { NextResponse } from "next/server"; import { db } from "@/lib/db"; function escapeCSVField(field: string): string { if (!field) return ""; const needsQuoting = /[,"\n\r]/.test(field) || field !== field.trim(); if (needsQuoting) { const escaped = field.replace(/"/g, '""'); return `"${escaped...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/tags/page.tsx
src/app/tags/page.tsx
import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { unstable_cache } from "next/cache"; import { Tag } from "lucide-react"; import { db } from "@/lib/db"; // Cached tags query const getTags = unstable_cache( async () => { return db.tag.findMany({ include: { _c...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/tags/loading.tsx
src/app/tags/loading.tsx
import { Skeleton } from "@/components/ui/skeleton"; export default function TagsLoading() { return ( <div className="container py-6"> {/* Header */} <div className="mb-6"> <Skeleton className="h-6 w-24 mb-2" /> <Skeleton className="h-4 w-48" /> </div> {/* Search */} ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/tags/[slug]/page.tsx
src/app/tags/[slug]/page.tsx
import { notFound } from "next/navigation"; import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { ArrowLeft, Tag } from "lucide-react"; import { db } from "@/lib/db"; import { auth } from "@/lib/auth"; import config from "@/../prompts.config"; import { Button } from "@/components/ui...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/developers/page.tsx
src/app/developers/page.tsx
"use client"; import { useEffect, useState, useCallback } from "react"; import { useTranslations } from "next-intl"; import { PromptIde } from "@/components/ide/prompt-ide"; import { PromptEnhancer } from "@/components/developers/prompt-enhancer"; import { EmbedDesigner } from "@/components/developers/embed-designer";...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/privacy/page.tsx
src/app/privacy/page.tsx
import Link from "next/link"; export const metadata = { title: "Privacy Policy - prompts.chat", description: "Privacy Policy for prompts.chat", }; export default function PrivacyPage() { return ( <div className="container max-w-3xl py-10"> <h1 className="text-2xl font-bold mb-6">Privacy Policy</h1> ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/auth/[...nextauth]/route.ts
src/app/api/auth/[...nextauth]/route.ts
import { handlers } from "@/lib/auth"; export const { GET, POST } = handlers;
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/auth/register/route.ts
src/app/api/auth/register/route.ts
import { NextResponse } from "next/server"; import bcrypt from "bcryptjs"; import { z } from "zod"; import { db } from "@/lib/db"; import { getConfig } from "@/lib/config"; const registerSchema = z.object({ name: z.string().min(2), username: z.string().min(1).regex(/^[a-zA-Z0-9_]+$/), email: z.string().email(), ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/leaderboard/route.ts
src/app/api/leaderboard/route.ts
import { NextResponse } from "next/server"; import { unstable_cache } from "next/cache"; import { db } from "@/lib/db"; // Cache leaderboard data for 1 hour (3600 seconds) const getLeaderboard = unstable_cache( async (period: string) => { // Calculate date filters const now = new Date(); let dateFilter: ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/generate/sql/route.ts
src/app/api/generate/sql/route.ts
import { NextRequest, NextResponse } from "next/server"; import { generateSQL, isAIGenerationEnabled } from "@/lib/ai/generation"; export async function POST(request: NextRequest) { try { const enabled = await isAIGenerationEnabled(); if (!enabled) { return NextResponse.json( { error: "AI Gener...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/user/profile/route.ts
src/app/api/user/profile/route.ts
import { NextRequest, NextResponse } from "next/server"; import { z } from "zod"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const updateProfileSchema = z.object({ name: z.string().min(1).max(100), username: z .string() .min(1) .max(30) .regex(/^[a-zA-Z0-9_]+$/), avatar: z....
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/user/notifications/route.ts
src/app/api/user/notifications/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; const DEFAULT_RESPONSE = { pendingChangeRequests: 0, unreadComments: 0, commentNotifications: [], }; export async function GET() { let session; try { session = await auth(); } catch (error) {...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/user/api-key/route.ts
src/app/api/user/api-key/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { generateApiKey } from "@/lib/api-key"; export const runtime = "nodejs"; export async function GET() { const session = await auth(); if (!session?.user?.id) { return NextResponse.json({ error...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/prompt-builder/chat/route.ts
src/app/api/prompt-builder/chat/route.ts
import { NextRequest } from "next/server"; import OpenAI from "openai"; import { auth } from "@/lib/auth"; import { getConfig } from "@/lib/config"; import { PROMPT_BUILDER_TOOLS, executeToolCall, type PromptBuilderState, } from "@/lib/ai/prompt-builder-tools"; import { loadPrompt, getSystemPrompt } from "@/lib/a...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/prompt-builder/generate-example/route.ts
src/app/api/prompt-builder/generate-example/route.ts
import OpenAI from "openai"; import { auth } from "@/lib/auth"; import { getConfig } from "@/lib/config"; import { loadPrompt, interpolatePrompt } from "@/lib/ai/load-prompt"; import { TYPE_DEFINITIONS } from "@/data/type-definitions"; import { EXAMPLE_VIDEO, EXAMPLE_AUDIO, EXAMPLE_IMAGE, EXAMPLE_CHAT, DEFAUL...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/cron/reset-credits/route.ts
src/app/api/cron/reset-credits/route.ts
import { NextRequest, NextResponse } from "next/server"; import { db } from "@/lib/db"; /** * Cron job endpoint to reset daily generation credits for all users. * Should be called daily via external cron service (e.g., Vercel Cron, GitHub Actions). * * Requires CRON_SECRET environment variable for authentication....
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/admin/slugs/route.ts
src/app/api/admin/slugs/route.ts
import { NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import { generatePromptSlug } from "@/lib/slug"; export async function POST(request: Request) { try { const session = await auth(); if (!session?.user || session.user.role !== "ADMIN") { retur...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/admin/tags/route.ts
src/app/api/admin/tags/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // Create tag export async function POST(request: NextRequest) { try { const session = await auth(); if (!session?.user || session.user.role !== "ADMIN") { return NextResponse.json...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/admin/tags/[id]/route.ts
src/app/api/admin/tags/[id]/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; // Update tag export async function PATCH( request: NextRequest, { params }: { params: Promise<{ id: string }> } ) { try { const session = await auth(); if (!session?.user || session...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false
f/awesome-chatgpt-prompts
https://github.com/f/awesome-chatgpt-prompts/blob/bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b/src/app/api/admin/import-prompts/route.ts
src/app/api/admin/import-prompts/route.ts
import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/lib/auth"; import { db } from "@/lib/db"; import fs from "fs/promises"; import path from "path"; interface CsvRow { act: string; prompt: string; for_devs: string; type: string; contributor: string; } // Unescape literal escape ...
typescript
CC0-1.0
bb3b291f516f3f034b1066a2b2fdd85ec4b13e0b
2026-01-04T15:25:31.495589Z
false