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 |
|---|---|---|---|---|---|---|---|---|
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/lab/svar-theme/tests/widgets.svelte.test.ts | lab/svar-theme/tests/widgets.svelte.test.ts | import { widgetTests } from 'theme-testing/snapshots/widget-tests';
import { theme } from '../src/lib/index.js';
import { specs } from '../src/lib/specs.js';
import Form from './form.svelte';
widgetTests(theme, specs, { Form });
| typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/lab/svar-theme/tests/array-field.svelte.test.ts | lab/svar-theme/tests/array-field.svelte.test.ts | import { arrayFieldTests } from "theme-testing/snapshots/array-field-tests";
import { theme } from "../src/lib/index.js";
import Form from './form.svelte'
arrayFieldTests(theme, { Form });
| typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
x0k/svelte-jsonschema-form | https://github.com/x0k/svelte-jsonschema-form/blob/45bb0836603959b7f573840bcd04f0d2e95b5110/lab/svar-theme/tests/object-field.svelte.test.ts | lab/svar-theme/tests/object-field.svelte.test.ts | import { objectTests } from 'theme-testing/snapshots/object-field-tests';
import { theme } from '../src/lib/index.js';
import Form from './form.svelte';
objectTests(theme, { Form });
| typescript | MIT | 45bb0836603959b7f573840bcd04f0d2e95b5110 | 2026-01-05T05:01:03.910308Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/commitlint.config.ts | commitlint.config.ts | import type { UserConfig } from '@commitlint/types';
const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
parserPreset: 'conventional-changelog-atom',
formatter: '@commitlint/format',
};
export default config;
| typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/turbo/generators/config.ts | turbo/generators/config.ts | import { execSync } from "node:child_process";
import type { PlopTypes } from "@turbo/gen";
interface PackageJson {
name: string;
scripts: Record<string, string>;
dependencies: Record<string, string>;
devDependencies: Record<string, string>;
}
export default function generator(plop: PlopTypes.NodePlopAPI): vo... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/eslint.config.ts | apps/style/eslint.config.ts | import { defineConfig } from "eslint/config";
import { baseConfig, restrictEnvAccess } from "@repo/eslint-config/base";
export default defineConfig(
{
ignores: ["dist/**", "plugins/**"],
},
baseConfig,
restrictEnvAccess,
);
| typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/postcss.config.ts | apps/style/postcss.config.ts | import root from "../../package.json";
import { version } from "./package.json";
import postcssBanner from "./plugins/postcss/banner";
import appendThemeIdentifier from "./plugins/postcss/theme-identifier";
import wrapMozDocument from "./plugins/postcss/wrap-moz-document";
const banner = `==UserStyle==
@name ${root.na... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/scripts/watch.ts | apps/style/scripts/watch.ts | import fs from "node:fs";
import path from "node:path";
import { Command } from "commander";
import ora from "ora";
import { z } from "zod";
import type { BuildParams, BuildResult } from "./build";
import { build as defaultBuild } from "./build";
const WatchParamsSchema = z.object({
dir: z.string().default("src"),
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/scripts/build.ts | apps/style/scripts/build.ts | import { existsSync } from "node:fs";
import fs from "node:fs/promises";
import path from "node:path";
import browserslist from "browserslist";
import { Command } from "commander";
import { browserslistToTargets, transform as lcTransform } from "lightningcss";
import ora from "ora";
import postcss from "postcss";
impor... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/plugins/postcss/banner.ts | apps/style/plugins/postcss/banner.ts | import { type Plugin } from "postcss";
interface Options {
banner?: string;
footer?: string;
important?: boolean;
inline?: boolean;
}
const banner = (opts: Options = {}): Plugin => {
function makeComment(banner: string) {
const bang = opts.important ? "!" : "";
if (opts.inline) {
return `/*${... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/plugins/postcss/theme-identifier.ts | apps/style/plugins/postcss/theme-identifier.ts | import type { AtRule, Plugin, Root, Rule } from "postcss";
import postcss from "postcss";
import { ContainerWithChildren } from "postcss/lib/container";
const START = "==UI-THEME-VARS:START==";
const END = "==UI-THEME-VARS:END==";
const hasVars = (r: Rule) => {
let bg = false,
fg = false;
r.walkDecls((d) => {... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/style/plugins/postcss/wrap-moz-document.ts | apps/style/plugins/postcss/wrap-moz-document.ts | import type { Plugin } from "postcss";
import postcss from "postcss";
interface DomainConfig {
type: "url-prefix" | "url" | "regexp" | "domain";
value: string;
}
interface Options {
domains?: (string | DomainConfig)[];
}
const wrapMozDocument = (options: Options = {}): Plugin => ({
postcssPlugin: "wrap-moz-d... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/eslint.config.ts | apps/api/eslint.config.ts | import { defineConfig } from "eslint/config";
import { baseConfig, restrictEnvAccess } from "@repo/eslint-config/base";
export default defineConfig(
{
languageOptions: {
parserOptions: {
projectService: true,
},
},
ignores: [".nitro/**", ".output/**"],
},
baseConfig,
{
rule... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/nitro.config.ts | apps/api/nitro.config.ts | import { fileURLToPath } from "node:url";
import { defineConfig } from "nitro";
export default defineConfig({
serverDir: "src",
experimental: {
openAPI: true,
},
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
openAPI: {
route: "/_docs/openapi.json",
production: "runtime"... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/config.ts | apps/api/src/config.ts | export const owner = "techwithanirudh";
export const repo = "coolify-tweaks";
export const allowedHeaders = [
"etag",
"last-modified",
"x-ratelimit-remaining",
"x-ratelimit-limit",
];
| typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/middleware/cors.ts | apps/api/src/middleware/cors.ts | import { defineHandler } from "nitro/h3";
const ALLOW_ORIGIN = "*";
const ALLOW_METHODS = "GET,POST,PUT,PATCH,DELETE,OPTIONS";
const FALLBACK_ALLOW_HEADERS = "Content-Type,Authorization";
const MAX_AGE_SECONDS = "86400";
// @ts-expect-error - this is expected
export default defineHandler((event) => {
event.res.head... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/routes/index.ts | apps/api/src/routes/index.ts | import { defineRouteMeta } from "nitro";
import { defineHandler } from "nitro/h3";
defineRouteMeta({
openAPI: {
tags: ["Operations"],
summary: "API information",
description: "Returns basic information about the API service.",
operationId: "getApiInfo",
responses: {
"200": {
descrip... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/routes/release/[tag]/index.ts | apps/api/src/routes/release/[tag]/index.ts | import { lookup as getType } from "mime-types";
import { defineRouteMeta } from "nitro";
import { $fetch } from "nitro/deps/ofetch";
import { defineHandler, getQuery, getRouterParam, HTTPError } from "nitro/h3";
import { allowedHeaders, owner, repo } from "@/config";
import { processContent } from "@/utils/themes";
d... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/routes/health/index.ts | apps/api/src/routes/health/index.ts | import { defineRouteMeta } from "nitro";
import { defineHandler } from "nitro/h3";
defineRouteMeta({
openAPI: {
tags: ["Operations"],
summary: "Health check",
description: "Returns service status information for monitoring.",
operationId: "getHealth",
responses: {
"200": {
descripti... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/utils/css-compiler.ts | apps/api/src/utils/css-compiler.ts | import browserslist from "browserslist";
import { browserslistToTargets, transform } from "lightningcss-wasm";
export function transformCss(css: string): string {
const blQueries =
browserslist.loadConfig({ path: "apps/style" }) ?? browserslist.defaults;
const targets = browserslistToTargets(browserslist(blQue... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/utils/themes.ts | apps/api/src/utils/themes.ts | import type { H3Event } from "nitro/h3";
import type { RegistryItem } from "shadcn/schema";
import { $fetch } from "nitro/deps/ofetch";
import { getQuery, getRequestURL, HTTPError } from "nitro/h3";
import { registryItemSchema } from "shadcn/schema";
import { transformCss } from "./css-compiler";
import { cssVarsToCss... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/api/src/utils/css-transformer.ts | apps/api/src/utils/css-transformer.ts | import postcss from "postcss";
const LEADING_DASHES_REGEX = /^--/;
export function cssVarsToCss(cssVars: Record<string, Record<string, string>>) {
const root = postcss.root();
for (const [themeKey, vars] of Object.entries(cssVars)) {
const selector = themeKey === "light" ? ":root" : `.${themeKey}`;
cons... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/eslint.config.ts | apps/docs/eslint.config.ts | import { defineConfig } from "eslint/config";
import { baseConfig, restrictEnvAccess } from "@repo/eslint-config/base";
import { nextjsConfig } from "@repo/eslint-config/nextjs";
import { reactConfig } from "@repo/eslint-config/react";
export default defineConfig(
{
ignores: [".next/**"],
},
baseConfig,
r... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/source.script.ts | apps/docs/source.script.ts | import type { Root } from "mdast";
import { defineConfig } from "fumadocs-mdx/config";
import { visit } from "unist-util-visit";
export { docs } from "./source.config";
function remarkElementIds() {
return (tree: Root, vfile: unknown) => {
const file = vfile as { data?: { elementIds?: string[] } };
file.dat... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/sentry.server.config.ts | apps/docs/sentry.server.config.ts | // This file configures the initialization of Sentry on the server.
// The config you add here will be used whenever the server handles a request.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
Sentry.init({
enabled: process.env.NODE_ENV === "production",
d... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/source.config.ts | apps/docs/source.config.ts | import type { ElementContent } from "hast";
import {
rehypeCodeDefaultOptions,
remarkMdxFiles,
remarkSteps,
} from "fumadocs-core/mdx-plugins";
import {
defineConfig,
defineDocs,
frontmatterSchema,
metaSchema,
} from "fumadocs-mdx/config";
import jsonSchema from "fumadocs-mdx/plugins/json-schema";
import ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/next.config.ts | apps/docs/next.config.ts | import { fileURLToPath } from "node:url";
import type { NextConfig } from "next";
import bundleAnalyzer from "@next/bundle-analyzer";
import { withSentryConfig } from "@sentry/nextjs";
import { createMDX } from "fumadocs-mdx/next";
async function createNextConfig(): Promise<NextConfig> {
const { createJiti } = await... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/sentry.edge.config.ts | apps/docs/sentry.edge.config.ts | // This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on).
// The config you add here will be used whenever one of the edge features is loaded.
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
// https://docs.se... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/scripts/post-build.ts | apps/docs/scripts/post-build.ts | import env from "@next/env";
env.loadEnvConfig(process.cwd());
async function main() {
// todo: add content
// await Promise.all([]);
}
await main().catch((e) => {
console.error("Failed to run post build script", e);
process.exit(1);
});
| typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/scripts/sync-changelog.ts | apps/docs/scripts/sync-changelog.ts | import { existsSync } from "node:fs";
import { mkdir, readFile, writeFile } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
import type { BlockContent, Heading, Root, RootContent } from "mdast";
import type { MdxJsxAttribute, MdxJsxFlowElement } from "mdas... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/scripts/pre-build.ts | apps/docs/scripts/pre-build.ts | import { generateDocs } from "./generate-docs.js";
import { syncChangelog } from "./sync-changelog.js";
async function main() {
// comment the below to disable openapi generation
await Promise.all([generateDocs(), syncChangelog()]);
}
await main().catch((e) => {
console.error("Failed to run pre build script", e... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/scripts/preload.ts | apps/docs/scripts/preload.ts | /* eslint-disable @typescript-eslint/no-floating-promises -- Top-level await in Bun plugin */
import { createMdxPlugin } from "fumadocs-mdx/bun";
import { postInstall } from "fumadocs-mdx/next";
const configPath = "source.script.ts";
await postInstall(configPath);
Bun.plugin(createMdxPlugin({ configPath, disableMetaFi... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/scripts/generate-docs.ts | apps/docs/scripts/generate-docs.ts | import * as OpenAPI from "fumadocs-openapi";
import { rimraf } from "rimraf";
import { openapi } from "@/lib/openapi";
const out = "./content/docs/api/(generated)";
export async function generateDocs() {
await rimraf(out, {
filter(v) {
return !v.endsWith("meta.json");
},
});
await OpenAPI.genera... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/scripts/lint.ts | apps/docs/scripts/lint.ts | import type { InferPageType } from "fumadocs-core/source";
import type { FileObject } from "next-validate-link";
import { printErrors, scanURLs, validateFiles } from "next-validate-link";
import { source } from "@/lib/source";
type AnySource = typeof source;
async function checkLinks() {
const scanned = await scan... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/content/docs/style/theming.tsx | apps/docs/content/docs/style/theming.tsx | "use client";
import type { ReactNode } from "react";
import { createContext, useContext, useEffect, useMemo, useState } from "react";
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";
import { CheckIcon, CopyIcon } from "lucide-react";
import { useInterval, useLocalStorage, useSessionStorag... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/instrumentation.ts | apps/docs/src/instrumentation.ts | import * as Sentry from "@sentry/nextjs";
import { env } from "./env";
export async function register() {
if (env.NEXT_RUNTIME === "nodejs") {
await import("../sentry.server.config");
}
if (env.NEXT_RUNTIME === "edge") {
await import("../sentry.edge.config");
}
}
export const onRequestError = Sentry... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/mdx-components.tsx | apps/docs/src/mdx-components.tsx | import type { MDXComponents } from "mdx/types";
import type { ComponentProps, FC } from "react";
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
import { Banner } from "fumadocs-ui/components/banner";
import { Callout } from "fumadocs-ui/components/callout";
import * as StepsComponents from "f... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/instrumentation-client.ts | apps/docs/src/instrumentation-client.ts | // This file configures the initialization of Sentry on the client.
// The added config here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://a453fcb267d9832bc3a9511e93c00a... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/env.ts | apps/docs/src/env.ts | import { createEnv } from "@t3-oss/env-nextjs";
import { vercel } from "@t3-oss/env-nextjs/presets-zod";
import { z } from "zod";
export const env = createEnv({
extends: [vercel()],
shared: {
NEXT_RUNTIME: z.enum(["nodejs", "edge"]).default("nodejs"),
NODE_ENV: z
.enum(["development", "production", "... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/proxy.ts | apps/docs/src/proxy.ts | import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
import { isMarkdownPreferred, rewritePath } from "fumadocs-core/negotiation";
// eslint-disable-next-line @typescript-eslint/unbound-method
const { rewrite: rewriteLLM } = rewritePath("/docs/*path", "/llms.mdx/*path");
export ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/providers.tsx | apps/docs/src/app/providers.tsx | "use client";
import type { ReactNode } from "react";
import dynamic from "next/dynamic";
import { ProgressProvider } from "@bprogress/next/app";
import { RootProvider } from "fumadocs-ui/provider/base";
import { Toaster } from "@repo/ui/toast";
import { TooltipProvider } from "@repo/ui/tooltip";
const SearchDialog ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/global-error.tsx | apps/docs/src/app/global-error.tsx | "use client";
import { useEffect } from "react";
import NextError from "next/error";
import * as Sentry from "@sentry/nextjs";
export default function GlobalError({
error,
}: {
error: Error & { digest?: string };
}) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
return (
<html>
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/layout.tsx | apps/docs/src/app/layout.tsx | import { baseUrl, createMetadata } from "@/lib/metadata";
import "@/styles/globals.css";
import type { Viewport } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { Body } from "./layout.client";
import { Providers } from "./providers";
import "katex/dist/katex.css";
import { NextProvider ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/layout.client.tsx | apps/docs/src/app/layout.client.tsx | "use client";
import type { Root } from "fumadocs-core/page-tree";
import type { ReactNode } from "react";
import { usePathname } from "next/navigation";
import { cn } from "@repo/ui";
import { findPage } from "@/lib/page-tree";
export function Body({ children, tree }: { children: ReactNode; tree: Root }) {
const... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/sitemap.ts | apps/docs/src/app/sitemap.ts | import type { MetadataRoute } from "next";
import { baseUrl } from "@/lib/metadata";
import { source } from "@/lib/source";
export const revalidate = false;
export default function sitemap(): MetadataRoute.Sitemap {
const url = (path: string): string => new URL(path, baseUrl).toString();
return [
{
ur... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/not-found.tsx | apps/docs/src/app/not-found.tsx | import Link from "next/link";
export default function NotFound() {
return (
<main className="flex flex-1">
<div className="flex flex-auto flex-col items-center justify-center px-4 text-center sm:flex-row">
<h1 className="border-border text-foreground text-2xl font-extrabold tracking-tight sm:mr-6 s... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/llms.mdx/[[...slug]]/route.ts | apps/docs/src/app/llms.mdx/[[...slug]]/route.ts | import type { NextRequest } from "next/server";
import { notFound } from "next/navigation";
import { NextResponse } from "next/server";
import { getLLMText } from "@/lib/get-llm-text";
import { source } from "@/lib/source";
export const revalidate = false;
export async function GET(
_req: NextRequest,
{ params }... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/api/chat/route.ts | apps/docs/src/app/api/chat/route.ts | import type { UIMessage } from "ai";
import {
convertToModelMessages,
InvalidToolInputError,
NoSuchToolError,
smoothStream,
stepCountIs,
streamText,
} from "ai";
import { env } from "@/env";
import { systemPrompt } from "@/lib/ai/prompts";
import { provider } from "@/lib/ai/providers";
import { getPageCont... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/api/search/route.ts | apps/docs/src/app/api/search/route.ts | import { createSearchAPI } from "fumadocs-core/search/server";
import { source } from "@/lib/source";
export const { GET } = createSearchAPI("advanced", {
language: "english",
indexes: source.getPages().map((page) => ({
title: page.data.title,
description: page.data.description,
url: page.url,
id:... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/layout.tsx | apps/docs/src/app/(home)/layout.tsx | import { HomeLayout } from "fumadocs-ui/layouts/home";
import { baseOptions, linkItems } from "@/lib/layout.shared";
export default function Layout({ children }: LayoutProps<"/">) {
const base = baseOptions();
return (
<HomeLayout
{...base}
links={linkItems}
style={
{
"--s... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/page.tsx | apps/docs/src/app/(home)/page.tsx | import type { ReactElement } from "react";
import { CTA } from "./_components/cta";
import { Features } from "./_components/features";
import { Footer } from "./_components/footer";
import { Hero } from "./_components/hero";
import { Testimonials } from "./_components/testimonials";
export default function LandingPag... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/testimonials.tsx | apps/docs/src/app/(home)/_components/testimonials.tsx | // cspell:disable
"use client";
import { useState } from "react";
import { MessageCircle } from "lucide-react";
import { cn } from "@repo/ui";
import { Badge } from "@repo/ui/badge";
import { Button } from "@repo/ui/button";
import { BlurImage } from "@/components/blur-image";
import { ProgressiveBlur } from "@/comp... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/cta.tsx | apps/docs/src/app/(home)/_components/cta.tsx | import Link from "next/link";
import { ArrowUpRight } from "lucide-react";
import { Button } from "@repo/ui/button";
export function CTA() {
return (
<div className="relative flex w-full flex-col items-center justify-center gap-2 overflow-hidden">
<div className="bg-dashed relative z-10 flex items-center ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/footer.tsx | apps/docs/src/app/(home)/_components/footer.tsx | "use client";
import Link from "next/link";
import { Check, Copy, Github, MailIcon } from "lucide-react";
import { Button } from "@repo/ui/button";
import { useCopyToClipboard } from "@repo/ui/hooks/use-copy-to-clipboard";
import { owner, repo } from "@/lib/github";
import { Love } from "./love";
export function Fo... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/features.tsx | apps/docs/src/app/(home)/_components/features.tsx | import type { LucideIcon } from "lucide-react";
import type { ReactNode } from "react";
import { Download, Github, Grid2X2, Palette, Sparkles } from "lucide-react";
import { cn } from "@repo/ui";
import { Badge } from "@repo/ui/badge";
import { BlurImage } from "@/components/blur-image";
import { getRepoStarsAndForks... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/hero.tsx | apps/docs/src/app/(home)/_components/hero.tsx | "use client";
import { useState } from "react";
import Link from "next/link";
import { ArrowUpRight, Sparkles } from "lucide-react";
import { useInterval } from "usehooks-ts";
import { cn } from "@repo/ui";
import { Button } from "@repo/ui/button";
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/feature-card.tsx | apps/docs/src/app/(home)/_components/feature-card.tsx | "use client";
export function FeatureCard({
title,
description,
isActive,
progress,
onClick,
}: {
title: string;
description: string;
isActive: boolean;
progress: number;
onClick: () => void;
}) {
return (
<div
className={`border-border relative flex w-full cursor-pointer flex-col items... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/love.tsx | apps/docs/src/app/(home)/_components/love.tsx | "use client";
import confetti from "canvas-confetti";
import { HeartIcon } from "lucide-react";
export function Love() {
const handleClick = (event: React.MouseEvent<SVGSVGElement>) => {
const rect = event.currentTarget.getBoundingClientRect();
const x = rect.left + rect.width / 2;
const y = rect.top + ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/features/github-showcase.tsx | apps/docs/src/app/(home)/_components/features/github-showcase.tsx | import type { LucideIcon } from "lucide-react";
import type React from "react";
import { Github, Hammer, Sparkles, Star, Wrench } from "lucide-react";
import { cn } from "@repo/ui";
import { Shimmer } from "@repo/ui/shimmer";
import { humanizeNumber } from "@/lib/github";
const COMMITS: CommitCardProps[] = [
{
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/features/theme-showcase.tsx | apps/docs/src/app/(home)/_components/features/theme-showcase.tsx | "use client";
import type * as React from "react";
import { Autoplay, EffectCards } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react";
import { BlurImage } from "@/components/blur-image";
import "swiper/css";
import "swiper/css/effect-cards";
interface ThemeShowcaseProps {
className?: stri... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/(home)/_components/features/install-methods.tsx | apps/docs/src/app/(home)/_components/features/install-methods.tsx | import type { VariantProps } from "class-variance-authority";
import type { LucideIcon } from "lucide-react";
import type React from "react";
import Link from "next/link";
import { Puzzle, ServerCog } from "lucide-react";
import type { badgeVariants } from "@repo/ui/badge";
import { cn } from "@repo/ui";
import { Badg... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/docs/layout.tsx | apps/docs/src/app/docs/layout.tsx | import { LargeSearchToggle } from "fumadocs-ui/components/layout/search-toggle";
import { DocsLayout } from "fumadocs-ui/layouts/notebook";
import { AISearchTrigger } from "@/components/fumadocs/ai/search";
import { baseOptions, linkItems, logo } from "@/lib/layout.shared";
import { source } from "@/lib/source";
impo... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/docs/[[...slug]]/page.tsx | apps/docs/src/app/docs/[[...slug]]/page.tsx | import type { Metadata } from "next";
import type { ComponentProps, ReactElement } from "react";
import { notFound } from "next/navigation";
import Link from "fumadocs-core/link";
import { getPageTreePeers } from "fumadocs-core/page-tree";
import { PathUtils } from "fumadocs-core/source";
import * as Twoslash from "fum... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/og/[...slug]/generate.tsx | apps/docs/src/app/og/[...slug]/generate.tsx | import { readFileSync } from "node:fs";
import { join } from "node:path";
import type { ImageResponseOptions } from "@takumi-rs/image-response";
import type { ReactNode } from "react";
import { title as siteName } from "@/lib/layout.shared";
export interface GenerateProps {
title: ReactNode;
description?: ReactNo... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/og/[...slug]/route.tsx | apps/docs/src/app/og/[...slug]/route.tsx | import { notFound } from "next/navigation";
import { ImageResponse } from "@takumi-rs/image-response";
import { categories } from "@/lib/constants";
import { getPageImage } from "@/lib/metadata";
import { source } from "@/lib/source";
import { getImageResponseOptions, generate as MetadataImage } from "./generate";
ex... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/llms-full.txt/route.ts | apps/docs/src/app/llms-full.txt/route.ts | import { getLLMText } from "@/lib/get-llm-text";
import { source } from "@/lib/source";
export const revalidate = false;
export async function GET() {
const scan = source
.getPages()
.filter((page) => page.slugs[0] !== "api")
.map(getLLMText);
const scanned = await Promise.all(scan);
return new Res... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/app/llms.txt/route.ts | apps/docs/src/app/llms.txt/route.ts | import { categories } from "@/lib/constants";
import { source } from "@/lib/source";
export const revalidate = false;
export function GET() {
const scanned: string[] = [];
scanned.push("# Docs");
const map = new Map<string, string[]>();
for (const page of source.getPages()) {
const dir = page.slugs[0] ??... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/api-page.tsx | apps/docs/src/components/api-page.tsx | import { createAPIPage } from "fumadocs-openapi/ui";
import { openapi } from "@/lib/openapi";
export const APIPage = createAPIPage(openapi, {
shikiOptions: {
themes: {
dark: "vesper",
light: "vitesse-light",
},
},
});
| typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/search.tsx | apps/docs/src/components/search.tsx | "use client";
import type { Item, Node } from "fumadocs-core/page-tree";
import type {
SearchItemType,
SharedProps,
} from "fumadocs-ui/components/dialog/search";
import { useMemo, useState } from "react";
import { useRouter } from "next/navigation";
import { useDocsSearch } from "fumadocs-core/search/client";
imp... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/blur-image.tsx | apps/docs/src/components/blur-image.tsx | "use client";
/**
* website
* Copyright (c) Delba de Oliveira
* Source: https://github.com/delbaoliveira/website/blob/59e6f181ad75751342ceaa8931db4cbcef86b018/ui/BlurImage.tsx
*/
import { useState } from "react";
import NextImage from "next/image";
import { cn } from "@repo/ui";
type ImageProps = {
imageClassN... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/docs-background.tsx | apps/docs/src/components/docs-background.tsx | const DocsBackground = () => (
<span
className="absolute inset-0 z-[-1] h-[64rem] max-h-screen overflow-hidden"
style={{
backgroundImage:
"radial-gradient(49.63% 57.02% at 58.99% -7.2%, hsl(var(--color-fd-primary)/0.1) 39.4%, transparent 100%)",
}}
>
<svg
width="790"
height... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/progressive-blur.tsx | apps/docs/src/components/progressive-blur.tsx | "use client";
import type { HTMLMotionProps } from "motion/react";
import { motion } from "motion/react";
import { cn } from "@repo/ui";
export const GRADIENT_ANGLES = {
top: 0,
right: 90,
bottom: 180,
left: 270,
};
export type ProgressiveBlurProps = {
direction?: keyof typeof GRADIENT_ANGLES;
blurLayer... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/theme-toggle.tsx | apps/docs/src/components/theme-toggle.tsx | "use client";
import type { HTMLAttributes } from "react";
import { useLayoutEffect, useState } from "react";
import { Airplay, Moon, Sun } from "lucide-react";
import { LayoutGroup, motion } from "motion/react";
import { useTheme } from "next-themes";
import { cn } from "@repo/ui";
const themes = [
{ key: "light"... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/files.tsx | apps/docs/src/components/fumadocs/files.tsx | "use client";
import type { HTMLAttributes, ReactNode } from "react";
import { useState } from "react";
import { cva } from "class-variance-authority";
import {
File as FileIcon,
Folder as FolderIcon,
FolderOpen,
} from "lucide-react";
import { cn } from "@/lib/fumadocs/cn";
import {
Collapsible,
Collapsibl... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/page-actions.tsx | apps/docs/src/components/fumadocs/page-actions.tsx | "use client";
import { useMemo, useState } from "react";
import { cva } from "class-variance-authority";
import { buttonVariants } from "fumadocs-ui/components/ui/button";
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "fumadocs-ui/components/ui/popover";
import { useCopyButton } from "fumadocs-ui/util... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/updates.tsx | apps/docs/src/components/fumadocs/updates.tsx | "use client";
import type { ReactNode } from "react";
import { cn } from "@repo/ui";
import { Badge } from "@repo/ui/badge";
export interface UpdatesProps {
children: ReactNode;
className?: string;
}
export interface UpdateProps {
children: ReactNode;
label: string;
id?: string;
className?: string;
}
e... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ai/tool.tsx | apps/docs/src/components/fumadocs/ai/tool.tsx | "use client";
import type { ToolUIPart } from "ai";
import type { ComponentProps, ReactNode } from "react";
import { isValidElement } from "react";
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";
import {
CheckCircleIcon,
ChevronDownIcon,
CircleIcon,
ClockIcon,
WrenchIcon,
XCir... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ai/search.tsx | apps/docs/src/components/fumadocs/ai/search.tsx | "use client";
import type { ProvideLinksToolSchema } from "@/lib/ai/qa-schema";
import type { UIMessage, UseChatHelpers } from "@ai-sdk/react";
import type { ComponentProps, SyntheticEvent } from "react";
import type { z } from "zod";
import {
createContext,
use,
useEffect,
useId,
useMemo,
useRef,
useSta... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ai/markdown.tsx | apps/docs/src/components/fumadocs/ai/markdown.tsx | import type { ElementContent, Root, RootContent } from "hast";
import type { ComponentProps, ReactElement, ReactNode } from "react";
import { Children, Suspense, use, useDeferredValue } from "react";
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
import { DynamicCodeBlock } from "fumadocs-ui/components/dynami... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ai/tools/search-docs.tsx | apps/docs/src/components/fumadocs/ai/tools/search-docs.tsx | import type { ComponentProps } from "react";
import Link from "fumadocs-core/link";
import { cn } from "@repo/ui";
import { Skeleton } from "@repo/ui/skeleton";
interface SearchDocsInput {
query: string;
tag?: string;
locale?: string;
limit?: number;
}
export interface SearchDocsOutput {
success: boolean;
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ai/tools/get-page-content.tsx | apps/docs/src/components/fumadocs/ai/tools/get-page-content.tsx | import type { ComponentProps } from "react";
import Link from "fumadocs-core/link";
import { cn } from "@repo/ui";
import { Skeleton } from "@repo/ui/skeleton";
interface GetPageContentInput {
path: string;
}
export interface GetPageContentOutput {
success: boolean;
data?: string;
}
type ToolState =
| "inpu... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ai/tools/provide-links.tsx | apps/docs/src/components/fumadocs/ai/tools/provide-links.tsx | import type { ProvideLinksToolSchema } from "@/lib/ai/qa-schema";
import type { ComponentProps } from "react";
import type { z } from "zod";
import Link from "fumadocs-core/link";
import { cn } from "@repo/ui";
type ProvideLinksInput = z.infer<typeof ProvideLinksToolSchema>;
interface ProvideLinksOutput {
links?: ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ui/collapsible.tsx | apps/docs/src/components/fumadocs/ui/collapsible.tsx | "use client";
import { forwardRef, useEffect, useState } from "react";
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
import { cn } from "@repo/ui";
const Collapsible = CollapsiblePrimitive.Root;
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
const CollapsibleContent = fo... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/fumadocs/ui/button.tsx | apps/docs/src/components/fumadocs/ui/button.tsx | import type { VariantProps } from "class-variance-authority";
import { cva } from "class-variance-authority";
export const buttonVariants = cva(
"inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50",
{
varian... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/components/mdx/mermaid.tsx | apps/docs/src/components/mdx/mermaid.tsx | "use client";
import { use, useEffect, useId, useState } from "react";
import { useTheme } from "next-themes";
export function Mermaid({ chart }: { chart: string }) {
const [mounted, setMounted] = useState(false);
/* eslint-disable react-hooks/set-state-in-effect -- mounted state initialization */
useEffect(()... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/get-llm-text.ts | apps/docs/src/lib/get-llm-text.ts | import type { Page } from "@/lib/source";
import { categories } from "@/lib/constants";
import { owner, repo } from "@/lib/github";
export async function getLLMText(page: Page) {
const slugs = page.slugs;
const category = categories[slugs[0] ?? "style"] ?? slugs[0];
const processed = await page.data.getText("p... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/page-tree.ts | apps/docs/src/lib/page-tree.ts | import type { Item, Root } from "fumadocs-core/page-tree";
import { flattenTree, getPageTreeRoots } from "fumadocs-core/page-tree";
export { flattenTree, getPageTreeRoots } from "fumadocs-core/page-tree";
/**
* normalize url
* adapted from: https://github.com/fuma-nama/fumadocs/blob/dev/packages/ui/src/utils/is-act... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/layout.shared.tsx | apps/docs/src/lib/layout.shared.tsx | import type { LinkItemType } from "fumadocs-ui/layouts/docs";
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
import Image from "next/image";
import { ThemeToggle } from "@/components/theme-toggle";
export const title = "Coolify Tweaks";
export const logo = (
<>
<Image
alt={title}
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/metadata.ts | apps/docs/src/lib/metadata.ts | import type { Metadata } from "next";
import type { Page } from "./source";
import { env } from "@/env";
import { title } from "@/lib/layout.shared";
export function createMetadata(override: Metadata): Metadata {
return {
...override,
openGraph: {
title: override.title ?? undefined,
description:... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/source.ts | apps/docs/src/lib/source.ts | import type { InferMetaType, InferPageType } from "fumadocs-core/source";
import { loader } from "fumadocs-core/source";
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
import { docs } from "@/.source";
export const source = loader(docs.toFumadocsSource(), {
baseUrl: "/docs",
plugins: [luci... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/github.ts | apps/docs/src/lib/github.ts | export const owner = "techwithanirudh";
export const repo = "coolify-tweaks";
export async function getRepoStarsAndForks(
owner: string,
repo: string,
token?: string,
baseUrl = "https://api.github.com",
): Promise<{
stars: number;
forks: number;
}> {
const endpoint = `${baseUrl}/repos/${owner}/${repo}`;
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/providers.ts | apps/docs/src/lib/ai/providers.ts | import { openai } from "@ai-sdk/openai";
import { customProvider } from "ai";
export const provider = customProvider({
languageModels: {
"chat-model": openai("gpt-5-mini"),
"artifact-model": openai("gpt-5-nano"),
},
textEmbeddingModels: {
"small-model": openai.embedding("text-embedding-3-small"),
... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/qa-schema.ts | apps/docs/src/lib/ai/qa-schema.ts | import { z } from "zod";
const InkeepRecordTypes = z.enum([
"documentation",
"site",
"discourse_post",
"github_issue",
"github_discussion",
"stackoverflow_question",
"discord_forum_post",
"discord_message",
"custom_question_answer",
]);
const LinkType = z.union([
InkeepRecordTypes,
z.string(), /... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/tools/search-docs.ts | apps/docs/src/lib/ai/tools/search-docs.ts | import { tool } from "ai";
import { initAdvancedSearch } from "fumadocs-core/search/server";
import { z } from "zod";
import { categories } from "@/lib/constants";
import { source } from "@/lib/source";
const server = initAdvancedSearch({
language: "english",
indexes: source.getPages().map((page) => ({
id: pa... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/tools/provide-links.ts | apps/docs/src/lib/ai/tools/provide-links.ts | import { tool } from "ai";
import { ProvideLinksToolSchema } from "../qa-schema";
export const provideLinks = tool({
description:
"Provide links to articles found using the Web Search tool. This is compulsory and MUST be called after a web search, as it gives the user context on which URLs were used to generate... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/tools/get-page-content.ts | apps/docs/src/lib/ai/tools/get-page-content.ts | import { tool } from "ai";
import { z } from "zod";
import { source } from "@/lib/source";
export const getPageContent = tool({
description: "Get the list of pages in the documentation.",
inputSchema: z.object({
path: z.string().describe("The path of the page to get the content of."),
}),
execute: async (... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/prompts/examples.ts | apps/docs/src/lib/ai/prompts/examples.ts | export const examplesPrompt = `
<examples>
### 1. Search and answer from docs
User: How do I customize Fumadocs with themes and layouts?
You:
\`\`\`tool
searchDocs(query: "customize Fumadocs themes layouts", locale: "en")
\`\`\`
\`\`\`tool
getPageContent(path: "guides/using-custom-themes")
\`\`\`
\`\`\`tool
getPageCo... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/prompts/tools.ts | apps/docs/src/lib/ai/prompts/tools.ts | export const toolsPrompt = `
<tools>
You have access to these tools. Use them exactly as shown below.
### 1) searchDocs
Purpose: Search the internal documentation using the search server.
Usage:
- Use this first to find relevant pages, then fetch them using \`getPageContent\`
Inputs:
- query: the search phrase (requ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/prompts/llms.ts | apps/docs/src/lib/ai/prompts/llms.ts | export const llmsPrompt = (llms: string) =>
`
<context>
You are given a list of documents that you can use to answer the user's question.
You can discover pages with \`searchDocs\` and fetch specific content with \`getPageContent\`.
ALWAYS consider the following documents when answering:
${llms}
If you cannot find ... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
techwithanirudh/coolify-tweaks | https://github.com/techwithanirudh/coolify-tweaks/blob/df774164e0d71a7c6be44cc517f1db20bf43b0f8/apps/docs/src/lib/ai/prompts/index.ts | apps/docs/src/lib/ai/prompts/index.ts | import { corePrompt } from "./core";
import { examplesPrompt } from "./examples";
import { llmsPrompt } from "./llms";
import { toolsPrompt } from "./tools";
export const systemPrompt = ({ llms }: { llms: string }) => {
return [corePrompt, toolsPrompt, llmsPrompt(llms), examplesPrompt]
.join("\n\n")
.trim();... | typescript | MIT | df774164e0d71a7c6be44cc517f1db20bf43b0f8 | 2026-01-05T05:01:00.273039Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.