Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alii/website
/ functions
Functions
110 in github.com/alii/website
⨍
Functions
110
◇
Types & classes
29
↓ 29 callers
Function
text
* 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 callers
Function
border
* 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 callers
Function
circle
* 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 callers
Function
clamp
scripts/generate-88x31.mjs:22
↓ 5 callers
Function
normalizeTag
(tag: string)
src/utils/tags.ts:6
↓ 4 callers
Function
format
(pennies: number)
src/pages/monzo/dashboard/index.tsx:71
↓ 3 callers
Function
generateNewState
(oldState: Partial<BoxState>)
src/pages/experiments/morphing-shapes.tsx:28
↓ 3 callers
Function
rng
* 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 callers
Function
setFont
* 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 callers
Function
cast
(next: Exclude<Vote, 0>)
src/components/post-listing.tsx:57
↓ 2 callers
Function
loadGoogleFont
(font: string)
src/pages/api/og.tsx:9
↓ 2 callers
Function
openSideEffect
()
src/components/blog-post-list.tsx:37
↓ 2 callers
Function
parseVotes
( kv: Record<string, string | undefined> | undefined | null, )
src/utils/votes.ts:32
↓ 2 callers
Function
sortPosts
(p: typeof posts)
src/blog/posts.ts:19
↓ 2 callers
Function
useFirstEverLoad
()
src/hooks/use-first-ever-load.ts:4
↓ 2 callers
Function
useIsomorphicValue
(client: () => T, server: () => T)
src/hooks/use-isomorphic-value.ts:4
↓ 2 callers
Function
useVisitCounts
()
src/hooks/use-first-ever-load.ts:14
↓ 2 callers
Function
voteSlug
(slug: string)
src/utils/votes.ts:18
↓ 1 callers
Function
bevel
* 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 callers
Function
buildClawdSprite
* 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 callers
Function
codeblock
(code: string, lang = 'ts')
src/utils/discord.ts:1
↓ 1 callers
Function
createSessionJWT
(data: SessionData)
src/server/sessions.ts:19
↓ 1 callers
Function
dither
* 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 callers
Function
drawClawd
* 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 callers
Function
drawSpark
* 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 callers
Function
encode
* 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 callers
Function
exchangeCode
* Exchanges an OAuth code for a full user object * @param code The code from the callback querystring
src/pages/api/oauth.ts:32
↓ 1 callers
Function
fmtDate
(date: Date)
src/components/post-listing.tsx:23
↓ 1 callers
Function
fmtDate
(date: Date)
src/pages/[slug].tsx:17
↓ 1 callers
Function
getCookieHeader
* Generates the set-cookie header value from a given JWT token
src/pages/api/oauth.ts:58
↓ 1 callers
Function
getCookieHeader
(token: string)
src/server/sessions.ts:39
↓ 1 callers
Function
getMapURL
(center: string, theme: 'light' | 'dark')
src/server/apple-maps.ts:6
↓ 1 callers
Function
hsl
* 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 callers
Function
isActive
(pathname: string, href: string)
src/components/layout.tsx:15
↓ 1 callers
Function
parseSessionJWT
(token: string)
src/server/sessions.ts:25
↓ 1 callers
Function
parseTitleAndArtist
(title: string, artist: string)
src/pages/experiments/rekordbox-history-parser.tsx:3
↓ 1 callers
Function
randomColor
()
src/pages/experiments/morphing-shapes.tsx:6
↓ 1 callers
Function
randomNumber
(scale: number)
src/pages/experiments/morphing-shapes.tsx:16
↓ 1 callers
Method
render
()
src/pages/_document.tsx:4
↓ 1 callers
Function
tagCounts
()
src/utils/tags.ts:15
↓ 1 callers
Function
useShouldDoInitialPageAnimations
()
src/hooks/use-did-initial-page-animations.ts:9
↓ 1 callers
Function
voteKey
(slug: string)
src/utils/votes.ts:23
Function
App
({Component, pageProps}: AppProps)
src/pages/_app.tsx:13
Function
Blog
(props: Props)
src/pages/blog.tsx:28
Function
BlogPostList
()
src/components/blog-post-list.tsx:11
Function
Box
()
src/pages/experiments/morphing-shapes.tsx:45
Function
Boxes
({count}: {count: number})
src/pages/experiments/morphing-shapes.tsx:82
Function
ButtonWall
()
src/components/banner-88x31.tsx:18
Function
ErrorPage
()
src/pages/_error.tsx:1
Function
ExperimentsList
()
src/pages/experiments/index.tsx:23
Function
ExternalLink
(props: ComponentProps<'a'>)
src/components/external-link.tsx:3
Function
Filename
({filename}: {readonly filename: string})
src/components/syntax-highligher.tsx:60
Function
FooterLink
({href, children}: {href: string; children: React.ReactNode})
src/components/blog-footer.tsx:26
Function
GET
({req, res})
src/pages/api/oauth/[platform]/callback.ts:11
Function
GET
({req})
src/pages/api/oauth/[platform]/redirect.ts:14
Function
Highlighter
({ children, language = 'typescript', filename, }: PropsWithChildren<{ readonly children: string; readonl
src/components/syntax-highligher.tsx:84
Function
Home
(props: Props)
src/pages/index.tsx:35
Function
Layout
({children, sidebar}: {children: ReactNode; sidebar?: ReactNode})
src/components/layout.tsx:32
Function
MessageBubble
({ content, className, }: { isLast?: boolean; isFirst?: boolean; content: ReactNode; className?: string
src/components/message.tsx:57
Function
MessageGroup
({messages}: MessageGroupProps)
src/components/message.tsx:111
Function
MessageGroupContainer
({children}: {children: ReactNode})
src/components/message.tsx:87
Function
MonzoDashboard
(props: Props)
src/pages/monzo/dashboard/index.tsx:31
Function
MorphingShapes
()
src/pages/experiments/morphing-shapes.tsx:88
Function
Note
(props: NoteProps)
src/components/note.tsx:25
Function
POST
({req, ctx})
src/pages/api/contact.ts:15
Function
POST
({req, ctx})
src/pages/api/vote.ts:21
Function
Page404
()
src/pages/404.tsx:5
Function
PostListing
({ posts, votes, showTags = true, }: { posts: Array<Post | PostListingPost>; votes?: Record<string, numbe
src/components/post-listing.tsx:140
Function
PostPage
({slug}: Props)
src/pages/[slug].tsx:21
Function
RekordboxHistoryParser
()
src/pages/experiments/rekordbox-history-parser.tsx:21
Function
ServerlessDiscordOAuthDemoPage
({user}: Props)
src/pages/demos/serverless-discord-oauth.tsx:11
Function
Shell
({ children, hasDollarOnFirstLineOnly, }: { readonly children: string; readonly hasDollarOnFirstLineOnly?:
src/components/syntax-highligher.tsx:27
Function
Stats
()
src/components/stats.tsx:5
Function
StatsPage
()
src/pages/stats.tsx:10
Function
TagCloud
()
src/components/tag-cloud.tsx:7
Function
VoteBox
* 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
Function
blur
()
src/components/blog-post-list.tsx:54
Function
debounce
(func: (...args: A) => void, ms: number)
src/utils/timers.ts:3
Function
debounced
(...args: A)
src/utils/timers.ts:6
Function
draw
(x, p)
scripts/generate-88x31.mjs:366
Function
focus
()
src/components/blog-post-list.tsx:49
Function
formatList
(list: string[], type: Intl.ListFormatType)
src/utils/lists.ts:5
Function
getContext
()
src/server/api.ts:16
Function
getServerSideProps
src/pages/demos/serverless-discord-oauth.tsx:41
Function
getServerSideProps
({req})
src/pages/monzo/dashboard/index.tsx:200
Function
getStaticPaths
()
src/pages/[slug].tsx:127
Function
getStaticProps
()
src/pages/blog.tsx:19
Function
getStaticProps
({params})
src/pages/[slug].tsx:113
Function
getStaticProps
()
src/pages/index.tsx:20
Function
handler
(req, res)
src/pages/api/oauth.ts:68
Function
handler
(req: NextApiRequest, res: NextApiResponse)
src/pages/api/og.tsx:27
Function
hover
()
src/components/blog-post-list.tsx:44
Function
message
( ...args: | [key: string, content: ReactNode, className?: string] | [message: DistributedOmit<Extract<Me
src/components/message.tsx:7
Function
noopsub
()
src/hooks/use-isomorphic-value.ts:3
Function
onError
(_req, _res, error)
src/server/api.ts:7
Function
onResize
()
src/pages/experiments/morphing-shapes.tsx:92
Function
out
()
src/components/blog-post-list.tsx:55
Function
redirects
()
next.config.mjs:25
Method
render
()
src/blog/2025/ambient-declarations/ambient-declarations.tsx:19
Method
render
()
src/blog/2022/01/serverless-discord-oauth/serverless-discord-oauth.tsx:15
next →
1–100 of 110, ranked by callers