MCPcopy Create free account

hub / github.com/alii/website / functions

Functions110 in github.com/alii/website

↓ 29 callersFunctiontext
* Draws a string (or individual characters with custom per-character colour) * onto the canvas. Supports optional letter-spacing, stroke outline, and
scripts/generate-88x31.mjs:72
↓ 18 callersFunctionborder
* Strokes a single-pixel rectangular border around the full canvas area. * * @param {import('@napi-rs/canvas').SKRSContext2D} x - The 2D rendering c
scripts/generate-88x31.mjs:144
↓ 6 callersFunctioncircle
* Fills a circle on the canvas at the given centre and radius using the * current `fillStyle`. A convenience wrapper around `arc` + `fill`. * * @pa
scripts/generate-88x31.mjs:193
↓ 6 callersFunctionclamp
scripts/generate-88x31.mjs:22
↓ 5 callersFunctionnormalizeTag
(tag: string)
src/utils/tags.ts:6
↓ 4 callersFunctionformat
(pennies: number)
src/pages/monzo/dashboard/index.tsx:71
↓ 3 callersFunctiongenerateNewState
(oldState: Partial<BoxState>)
src/pages/experiments/morphing-shapes.tsx:28
↓ 3 callersFunctionrng
* Creates a deterministic pseudo-random number generator using a linear * congruential generator (LCG). Seeding with the same value always produces
scripts/generate-88x31.mjs:32
↓ 3 callersFunctionsetFont
* Sets the canvas font, using the shared FONT stack. * * @param {import('@napi-rs/canvas').SKRSContext2D} x - The 2D rendering context to mutate. *
scripts/generate-88x31.mjs:48
↓ 2 callersFunctioncast
(next: Exclude<Vote, 0>)
src/components/post-listing.tsx:57
↓ 2 callersFunctionloadGoogleFont
(font: string)
src/pages/api/og.tsx:9
↓ 2 callersFunctionopenSideEffect
()
src/components/blog-post-list.tsx:37
↓ 2 callersFunctionparseVotes
( kv: Record<string, string | undefined> | undefined | null, )
src/utils/votes.ts:32
↓ 2 callersFunctionsortPosts
(p: typeof posts)
src/blog/posts.ts:19
↓ 2 callersFunctionuseFirstEverLoad
()
src/hooks/use-first-ever-load.ts:4
↓ 2 callersFunctionuseIsomorphicValue
(client: () => T, server: () => T)
src/hooks/use-isomorphic-value.ts:4
↓ 2 callersFunctionuseVisitCounts
()
src/hooks/use-first-ever-load.ts:14
↓ 2 callersFunctionvoteSlug
(slug: string)
src/utils/votes.ts:18
↓ 1 callersFunctionbevel
* Paints a classic Windows-style bevel highlight around the canvas edges: * a light top/left edge simulating a raised surface and a dark bottom/right
scripts/generate-88x31.mjs:128
↓ 1 callersFunctionbuildClawdSprite
* Builds a pre-rendered off-screen sprite of the Clawd mascot at the requested * height. The source SVG (`clawd-invert.svg`) is an inverse mask — tra
scripts/generate-88x31.mjs:261
↓ 1 callersFunctioncodeblock
(code: string, lang = 'ts')
src/utils/discord.ts:1
↓ 1 callersFunctioncreateSessionJWT
(data: SessionData)
src/server/sessions.ts:19
↓ 1 callersFunctiondither
* Applies a 4x4 ordered (Bayer matrix) dither pass directly to raw RGBA pixel * data. Each pixel's RGB channels are nudged up or down by a threshold
scripts/generate-88x31.mjs:171
↓ 1 callersFunctiondrawClawd
* Blits the pre-rendered Clawd sprite onto the button canvas at the given * top-left offset. Uses the display dimensions stored on the global `CLAWD`
scripts/generate-88x31.mjs:328
↓ 1 callersFunctiondrawSpark
* Draws the Anthropic "spark" logo: an asterisk-like burst of 11 irregular * triangular spikes radiating from a filled centre circle. Spike lengths a
scripts/generate-88x31.mjs:213
↓ 1 callersFunctionencode
* Renders all animation frames for a single button spec and encodes them as an * animated GIF file. The palette is derived globally from all frames m
scripts/generate-88x31.mjs:1017
↓ 1 callersFunctionexchangeCode
* Exchanges an OAuth code for a full user object * @param code The code from the callback querystring
src/pages/api/oauth.ts:32
↓ 1 callersFunctionfmtDate
(date: Date)
src/components/post-listing.tsx:23
↓ 1 callersFunctionfmtDate
(date: Date)
src/pages/[slug].tsx:17
↓ 1 callersFunctiongetCookieHeader
* Generates the set-cookie header value from a given JWT token
src/pages/api/oauth.ts:58
↓ 1 callersFunctiongetCookieHeader
(token: string)
src/server/sessions.ts:39
↓ 1 callersFunctiongetMapURL
(center: string, theme: 'light' | 'dark')
src/server/apple-maps.ts:6
↓ 1 callersFunctionhsl
* Converts HSL colour values to an RGB triplet. * * Uses the standard HSL-to-RGB algorithm; hue is automatically normalised into * the [0, 360) ran
scripts/generate-88x31.mjs:984
↓ 1 callersFunctionisActive
(pathname: string, href: string)
src/components/layout.tsx:15
↓ 1 callersFunctionparseSessionJWT
(token: string)
src/server/sessions.ts:25
↓ 1 callersFunctionparseTitleAndArtist
(title: string, artist: string)
src/pages/experiments/rekordbox-history-parser.tsx:3
↓ 1 callersFunctionrandomColor
()
src/pages/experiments/morphing-shapes.tsx:6
↓ 1 callersFunctionrandomNumber
(scale: number)
src/pages/experiments/morphing-shapes.tsx:16
↓ 1 callersMethodrender
()
src/pages/_document.tsx:4
↓ 1 callersFunctiontagCounts
()
src/utils/tags.ts:15
↓ 1 callersFunctionuseShouldDoInitialPageAnimations
()
src/hooks/use-did-initial-page-animations.ts:9
↓ 1 callersFunctionvoteKey
(slug: string)
src/utils/votes.ts:23
FunctionApp
({Component, pageProps}: AppProps)
src/pages/_app.tsx:13
FunctionBlog
(props: Props)
src/pages/blog.tsx:28
FunctionBlogPostList
()
src/components/blog-post-list.tsx:11
FunctionBox
()
src/pages/experiments/morphing-shapes.tsx:45
FunctionBoxes
({count}: {count: number})
src/pages/experiments/morphing-shapes.tsx:82
FunctionButtonWall
()
src/components/banner-88x31.tsx:18
FunctionErrorPage
()
src/pages/_error.tsx:1
FunctionExperimentsList
()
src/pages/experiments/index.tsx:23
FunctionExternalLink
(props: ComponentProps<'a'>)
src/components/external-link.tsx:3
FunctionFilename
({filename}: {readonly filename: string})
src/components/syntax-highligher.tsx:60
FunctionFooterLink
({href, children}: {href: string; children: React.ReactNode})
src/components/blog-footer.tsx:26
FunctionGET
({req, res})
src/pages/api/oauth/[platform]/callback.ts:11
FunctionGET
({req})
src/pages/api/oauth/[platform]/redirect.ts:14
FunctionHighlighter
({ children, language = 'typescript', filename, }: PropsWithChildren<{ readonly children: string; readonl
src/components/syntax-highligher.tsx:84
FunctionHome
(props: Props)
src/pages/index.tsx:35
FunctionLayout
({children, sidebar}: {children: ReactNode; sidebar?: ReactNode})
src/components/layout.tsx:32
FunctionMessageBubble
({ content, className, }: { isLast?: boolean; isFirst?: boolean; content: ReactNode; className?: string
src/components/message.tsx:57
FunctionMessageGroup
({messages}: MessageGroupProps)
src/components/message.tsx:111
FunctionMessageGroupContainer
({children}: {children: ReactNode})
src/components/message.tsx:87
FunctionMonzoDashboard
(props: Props)
src/pages/monzo/dashboard/index.tsx:31
FunctionMorphingShapes
()
src/pages/experiments/morphing-shapes.tsx:88
FunctionNote
(props: NoteProps)
src/components/note.tsx:25
FunctionPOST
({req, ctx})
src/pages/api/contact.ts:15
FunctionPOST
({req, ctx})
src/pages/api/vote.ts:21
FunctionPage404
()
src/pages/404.tsx:5
FunctionPostListing
({ posts, votes, showTags = true, }: { posts: Array<Post | PostListingPost>; votes?: Record<string, numbe
src/components/post-listing.tsx:140
FunctionPostPage
({slug}: Props)
src/pages/[slug].tsx:21
FunctionRekordboxHistoryParser
()
src/pages/experiments/rekordbox-history-parser.tsx:21
FunctionServerlessDiscordOAuthDemoPage
({user}: Props)
src/pages/demos/serverless-discord-oauth.tsx:11
FunctionShell
({ children, hasDollarOnFirstLineOnly, }: { readonly children: string; readonly hasDollarOnFirstLineOnly?:
src/components/syntax-highligher.tsx:27
FunctionStats
()
src/components/stats.tsx:5
FunctionStatsPage
()
src/pages/stats.tsx:10
FunctionTagCloud
()
src/components/tag-cloud.tsx:7
FunctionVoteBox
* Real voting. The `count` is the global tally from Lanyard KV (live over the * websocket); the user's own up/down choice is remembered in localStora
src/components/post-listing.tsx:36
Functionblur
()
src/components/blog-post-list.tsx:54
Functiondebounce
(func: (...args: A) => void, ms: number)
src/utils/timers.ts:3
Functiondebounced
(...args: A)
src/utils/timers.ts:6
Functiondraw
(x, p)
scripts/generate-88x31.mjs:366
Functionfocus
()
src/components/blog-post-list.tsx:49
FunctionformatList
(list: string[], type: Intl.ListFormatType)
src/utils/lists.ts:5
FunctiongetContext
()
src/server/api.ts:16
FunctiongetServerSideProps
src/pages/demos/serverless-discord-oauth.tsx:41
FunctiongetServerSideProps
({req})
src/pages/monzo/dashboard/index.tsx:200
FunctiongetStaticPaths
()
src/pages/[slug].tsx:127
FunctiongetStaticProps
()
src/pages/blog.tsx:19
FunctiongetStaticProps
({params})
src/pages/[slug].tsx:113
FunctiongetStaticProps
()
src/pages/index.tsx:20
Functionhandler
(req, res)
src/pages/api/oauth.ts:68
Functionhandler
(req: NextApiRequest, res: NextApiResponse)
src/pages/api/og.tsx:27
Functionhover
()
src/components/blog-post-list.tsx:44
Functionmessage
( ...args: | [key: string, content: ReactNode, className?: string] | [message: DistributedOmit<Extract<Me
src/components/message.tsx:7
Functionnoopsub
()
src/hooks/use-isomorphic-value.ts:3
FunctiononError
(_req, _res, error)
src/server/api.ts:7
FunctiononResize
()
src/pages/experiments/morphing-shapes.tsx:92
Functionout
()
src/components/blog-post-list.tsx:55
Functionredirects
()
next.config.mjs:25
Methodrender
()
src/blog/2025/ambient-declarations/ambient-declarations.tsx:19
Methodrender
()
src/blog/2022/01/serverless-discord-oauth/serverless-discord-oauth.tsx:15
next →1–100 of 110, ranked by callers