This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" | |
import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js" | |
import { Socket } from "net" | |
import { Readable } from "stream" | |
import { IncomingMessage, type ServerResponse } from "http" | |
import { | |
subscribeToChannel, | |
unsubscribeFromChannel, | |
publishMessage, | |
} from "../redis.server.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
description: "Use shadcn/ui components as needed for any UI code" | |
patterns: "*.tsx" | |
--- | |
# Shadcn UI Components | |
This project uses @shadcn/ui for UI components. These are beautifully designed, accessible components that you can copy and paste into your apps. | |
## Finding and Using Components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
+ "typescript.preferences.autoImportFileExcludePatterns": [ | |
+ "zod", | |
+ ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { RemixBrowser } from "@remix-run/react"; | |
import { startTransition, StrictMode } from "react"; | |
import { hydrateRoot } from "react-dom/client"; | |
startTransition(() => { | |
hydrateRoot( | |
document, | |
<StrictMode> | |
<RemixBrowser /> | |
</StrictMode> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ import '#app/tailwind.css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { z } from "zod" | |
import { parseWithZod } from "@conform-to/zod" | |
import { Submission } from "@conform-to/react" | |
export async function parseRequest<ZodSchema>( | |
request: Request, | |
{ schema }: { schema: z.ZodType<ZodSchema> }, | |
) { | |
const type = request.headers.get("content-type") | |
if (type === "application/json") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { invariant } from "@epic-web/invariant" | |
import { createCookieSessionStorage, redirect } from "@vercel/remix" | |
import { GitHubProfile, GitHubStrategy } from "remix-auth-github" | |
import { Authenticator } from "remix-auth" | |
import { useNavigate } from "@remix-run/react" | |
invariant(process.env.GITHUB_CLIENT_ID, "GITHUB_CLIENT_ID is not set") | |
invariant(process.env.GITHUB_CLIENT_SECRET, "GITHUB_CLIENT_SECRET is not set") | |
invariant(process.env.GITHUB_REDIRECT_URI, "GITHUB_REDIRECT_URI is not set") | |
invariant(process.env.SESSION_SECRET, "SESSION_SECRET is not set") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
cachified as baseCachified, | |
type CacheEntry, | |
type Cache, | |
totalTtl, | |
type CachifiedOptions, | |
verboseReporter, | |
} from '@epic-web/cachified'; | |
import { remember } from '@epic-web/remember'; | |
import { LRUCache } from 'lru-cache'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { type IconName } from "#app/components/icons/icons.ts" | |
import href from "#app/components/icons/sprite.svg" | |
export function Icon({ | |
name, | |
className, | |
...props | |
}: React.SVGProps<SVGSVGElement> & { | |
name: IconName | |
}) { |
NewerOlder