modscode / Gallery / cache-bar
cache-bar
Shows prompt cache hit rate and TTL status in Claude Code
What it does
- Draws a band above the prompt, a pane, toasts
- Hooks prompt.context, prompt.section, session.compact, session.end and 5 more
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like cache-bar by TsungYing (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/thetsungying-cache-bar/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Svg, Text, Button } = $.ui.resolve(e)
const broke = '…'
const rewriteNext = '…'
const context = '…'
const sparklineSvg = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" alignItems="center" gap={1}>
<Svg alt="cache TTL countdown" source="" width={16} height={16} />
<Text dimColor>
…
</Text>
<Text dimColor>
extending…
</Text>
<Button plain dimColor label="Details" />
<Box flexDirection="row" gap={1}>
<Text color="error">
⚠
</Text>
<Box display="none">
<Text color="error">
{`${broke}`}
</Text>
</Box>
</Box>
<Box display="none" flexDirection="row" alignItems="center" gap={1}>
<Text dimColor>
expired
{" · "}
{`${rewriteNext}`}
</Text>
<Text>
<Text dimColor>
hit
{" "}
</Text>
0
</Text>
<Text>
<Text dimColor>
ctx
{" "}
</Text>
{context}
</Text>
<Svg alt="hit rate per request" source={`${sparklineSvg}`} width={72} height={16} />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Prompt cache" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Svg, Text, Select } = $.ui.resolve(e)
const rewriteNext = '…'
const ttl = '…'
const context = '…'
const requests = '…'
const breaks = '…'
const extensions = '…'
const formatTokens = '…'
const source = '…'
const breakLine = '…'
const formatCauses = '…'
const formatCauses2 = '…'
const formatCauses3 = '…'
const breakSensitivity = '…'
const idleAt = '…'
const trigger = '…'
const extensionFailed = '…'
const trigger2 = '…'
const trigger3 = '…'
const onExpiring = '…'
const autoExtendMaxPerIdle = '…'
const toast = '…'
const ttlMode = '…'
const ttlNote = '…'
const band = '…'
const language = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" alignItems="center" gap={2}>
<Svg alt="cache TTL countdown" source="" width={48} height={48} />
<Box flexDirection="column">
<Text dimColor>
expired
{" · "}
{`${rewriteNext}`}
</Text>
<Text dimColor>
{"TTL "}
{ttl}
{" · "}
last hit
{" "}
0
{" · "}
ctx
{" "}
{context}
</Text>
</Box>
<Text dimColor>
extending…
</Text>
</Box>
<Box flexDirection="column">
<Text bold>
This conversation
</Text>
<Text>
<Text>
<Text dimColor>
avg hit
{" "}
</Text>
–
</Text>
{" ·"}
{" "}
<Text>
<Text dimColor>
req
{" "}
</Text>
{requests}
</Text>
{" · "}
<Text>
<Text dimColor>
breaks
{" "}
</Text>
{breaks}
</Text>
{" ·"}
{" "}
<Text>
<Text dimColor>
extended
{" "}
</Text>
{extensions}
</Text>
{" ·"}
{" "}
<Text>
<Text dimColor>
peak ctx
{" "}
</Text>
{formatTokens}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text bold>
Per request · token cost
</Text>
<Svg alt="cost of each request in uncached-token equivalents, with its hit rate and idle gaps" source={`${source}`} isInteractive />
<Box flexDirection="row" columnGap={2} rowGap={0} flexWrap="wrap">
<Text>
<Text>
■
</Text>
<Text dimColor>
{" "}
read ×0.1
</Text>
</Text>
<Text>
<Text>
■
</Text>
<Text dimColor>
{" "}
write
</Text>
</Text>
<Text>
<Text>
□
</Text>
<Text dimColor>
{" "}
miss
</Text>
</Text>
<Text>
<Text color="#8F8B83">
▬
</Text>
<Text color="#E0B04A">
▬
</Text>
<Text color="#D97757">
▬
</Text>
<Text dimColor>
{" "}
hit rate
</Text>
</Text>
</Box>
<Box flexDirection="row" columnGap={2} rowGap={0} flexWrap="wrap">
<Text>
<Text>
▬
</Text>
<Text dimColor>
{" "}
break
</Text>
</Text>
<Text>
<Text>
┊
</Text>
<Text dimColor>
{" "}
idle near expiry
</Text>
</Text>
<Text>
<Text>
▲
</Text>
<Text dimColor>
{" "}
extended
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text bold>
Cache breaks
</Text>
<Text dimColor>
none
</Text>
<Box flexDirection="column">
<Text>
<Text color="error">
{"● "}
</Text>
{`${breakLine}`}
</Text>
<Text dimColor>
{" "}
{formatCauses}
</Text>
</Box>
<Box flexDirection="column">
<Text>
<Text color="error">
{"● "}
</Text>
{`${breakLine}`}
</Text>
<Text dimColor>
{" "}
{formatCauses2}
</Text>
</Box>
<Box flexDirection="column">
<Text>
<Text color="error">
{"● "}
</Text>
{`${breakLine}`}
</Text>
<Text dimColor>
{" "}
{formatCauses3}
</Text>
</Box>
<Box marginTop={1}>
<Box flexDirection="column">
<Text dimColor>
Break sensitivity
</Text>
<Select value={`${breakSensitivity}`} />
<Text dimColor>
Higher counts smaller drops as breaks; applies from the next request
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
Extensions
</Text>
<Text dimColor>
none
</Text>
<Text>
<Text dimColor>
{`${idleAt}`}
{" · "}
</Text>
{trigger}
{" ·"}
{" "}
<Text color="error">
{`${extensionFailed}`}
</Text>
</Text>
<Text>
<Text dimColor>
{`${idleAt}`}
{" · "}
</Text>
{trigger2}
{" ·"}
{" "}
<Text color="error">
{`${extensionFailed}`}
</Text>
</Text>
<Text>
<Text dimColor>
{`${idleAt}`}
{" · "}
</Text>
{trigger3}
{" ·"}
{" "}
<Text color="error">
{`${extensionFailed}`}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
Settings
</Text>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text dimColor>
When about to expire
</Text>
<Select value={`${onExpiring}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Auto-extend per idle stretch
</Text>
<Select value={`${autoExtendMaxPerIdle}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Toast notifications
</Text>
<Select value={`${toast}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Cache TTL
</Text>
<Select value={`${ttlMode}`} />
<Text dimColor>
{ttlNote}
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor>
Band above the prompt
</Text>
<Select value={`${band}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Break sensitivity
</Text>
<Select value={`${breakSensitivity}`} />
<Text dimColor>
Higher counts smaller drops as breaks; applies from the next request
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor>
Language
</Text>
<Select value={`${language}`} />
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const bandTurnedOff = '…'
const notice = '…'
const hint = '…'
const panel = '…'
await $.ui.toast(`${bandTurnedOff}`)
await $.ui.toast(`${notice} · ${hint}${panel}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/cache-bar/hooks/register.tsx lines 487–617 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.surface !== 'desktop' || e.props.hasSurvey) {
return next(e)
}
// Set even when the band is off: the desktop keeps no status line then.
hasBand = true
// Redraw on the stage, not every second: the ring and the clock count down
// by SMIL, and a per-second redraw of the band resets an open Select's
// highlight in the panel too.
await read($, stage)
applyPicks(await read($, overrides))
if (config.band === 'off') {
return next(e)
}
const { Box, Text, Button, Svg } = $.ui.resolve(e)
const now = await $.clock.now()
const list = await read($, samples)
const last = list.at(-1)
const s = strings
const details = (
<Button
key="details"
plain
dimColor
label={s.details}
onPress={() => {
forgetPaneDrawings()
void $.ui.open({ id: PANE, title: s.paneTitle })
}}
/>
)
if (last === undefined) {
return (
<Box key="band" flexDirection="row" alignItems="center" gap={1}>
<Svg key="ring" alt={s.ringAlt} source={idleRingSvg()} width={RING_SIZE} height={RING_SIZE} />
{details}
<Box display="none" hover={{ display: 'flex' }}>
<Text dimColor>{s.waiting}</Text>
</Box>
</Box>
)
}
const breakList = await read($, breaks)
const countdown = countdownOf(list, await read($, extensions), config.ttlMode, await read($, ttl), config, now)
const isExtending = await read($, extending)
if (countdown === null) {
return next(e)
}
const context = formatTokens(contextOf(last))
const isAnswering = e.props.isWorking
const ringKey = isAnswering ? 'working' : `${countdown.anchor}|${countdown.ttl}|${countdown.phase}`
if (ring.key !== ringKey) {
ring = { key: ringKey, source: isAnswering ? pausedRingSvg() : ringSvg(countdown) }
}
const lastBreak = breakList.at(-1)
const didBreak = lastBreak !== undefined && lastBreak.at === last.sentAt
const isExpired = !isAnswering && countdown.phase === 'expired'
const canExtend = !isAnswering && countdown.phase === 'alert' && config.onExpiring !== 'notify'
const clockColor =
countdown.phase === 'warn' ? COLORS.warn : countdown.phase === 'alert' ? COLORS.alert : COLORS.neutral
if (smallClock.key !== ringKey) {
smallClock = { key: ringKey, ...clockSvg(countdown.leftMs, clockColor, CLOCK_SIZE) }
}
return (
<Box key="band" flexDirection="row" alignItems="center" gap={1}>
<Svg key="ring" alt={s.ringAlt} source={ring.source} width={RING_SIZE} height={RING_SIZE} />
{/* Answering: the countdown waits, since each request refreshes the cache. */}
{isAnswering ? (
<Text dimColor>…</Text>
) : isExpired ? null : (
<Svg
key="clock"
alt={formatClock(countdown.leftMs)}
source={smallClock.source}
width={smallClock.width}
height={smallClock.height}
/>
)}
{isExtending ? (
<Text dimColor>{s.extending}</Text>
) : canExtend ? (
<Button key="extend" variant="primary" label={s.extendShort} onPress={() => void extendNow?.('manual')} />
) : null}
{details}
{didBreak ? (
<Box key="break" flexDirection="row" gap={1}>
<Text color={TEXT_ALERT}>⚠</Text>
<Box display="none" hover={{ display: 'flex' }}>
<Text color={TEXT_ALERT}>{s.broke(formatCauses(lastBreak.causes, s))}</Text>
</Box>
</Box>
) : null}
{/* Shown while the pointer is over the band; after the buttons, so it never moves them. */}
<Box display="none" hover={{ display: 'flex' }} flexDirection="row" alignItems="center" gap={1}>
{isExpired ? (
<Text dimColor>
{s.expired} · {s.rewriteNext(context)}
</Text>
) : null}
<Text>
<Text dimColor>{s.hit} </Text>
{formatPercent(hitRateOf(last))}
</Text>
<Text>
<Text dimColor>{s.context} </Text>
{context}
</Text>
{list.length > 1 ? (
<Svg
key="spark"
alt={s.sparkAlt}
source={sparklineSvg(recentHits(list, breakList, SPARK_POINTS))}
width={SPARK_WIDTH}
height={SPARK_HEIGHT}
/>
) : null}
</Box>
</Box>
)
})plugins/cache-bar/hooks/register.tsx lines 630–789 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = $.ui.resolve(e)
const { Box, Text, Button } = ui
const Svg = 'Svg' in ui ? ui.Svg : null
const Select = 'Select' in ui ? ui.Select : null
// Redraw on the stage, not every second: the ring and clock count down by
// SMIL. Without Svg (the terminal) the clock is text, so it reads `now`.
await read($, stage)
applyPicks(await read($, overrides))
const s = strings
if (Svg === null) {
await read($, clock)
}
const now = await $.clock.now()
const list = await read($, samples)
const breakList = await read($, breaks)
const extensionList = await read($, extensions)
const learned = await read($, ttl)
const isExtending = await read($, extending)
const last = list.at(-1)
const countdown = countdownOf(list, extensionList, config.ttlMode, learned, config, now)
const setOption = async (field: QuickSetting, value: string) => {
const failed = await pickOption?.(field, value)
if (failed !== null && failed !== undefined) {
$.ui.toast(failed)
}
}
// How the TTL was settled; it explains the TTL setting, so it sits there.
const ttlNote =
config.ttlMode !== 'auto'
? null
: learned.detected === '1h' && learned.idleMs !== null
? s.ttlLearned('1h', Math.floor(learned.idleMs / 60_000))
: s.ttlAssumed
const title = (text: string) => <Text bold>{text}</Text>
const stat = (label: string, value: string) => (
<Text>
<Text dimColor>{label} </Text>
{value}
</Text>
)
const toastName = (isOn: boolean) => (isOn ? s.toastOptions.on : s.toastOptions.off)
const sensitivitySelect =
Select === null ? null : (
<Box flexDirection="column">
<Text dimColor>{s.breakSensitivityLabel}</Text>
<Select
key="breakSensitivity"
value={config.breakSensitivity}
options={SENSITIVITIES.map(v => ({ value: v, label: s.breakSensitivityOptions[v] }))}
onSelect={value => void setOption('breakSensitivity', value)}
/>
<Text dimColor>{s.breakSensitivityNote}</Text>
</Box>
)
const settings = (withSensitivity: boolean) => (
<Box flexDirection="column">
{title(s.settingsTitle)}
{Select === null ? (
<Text dimColor>
{s.onExpiringLabel}: {s.onExpiringOptions[config.onExpiring]}
{config.onExpiring === 'auto' ? ` (${s.autoExtendTimes(config.autoExtendMaxPerIdle)})` : ''} ·{' '}
{s.toastLabel}: {toastName(config.toast)} · {s.ttlModeLabel}: {s.ttlModeOptions[config.ttlMode]} ·{' '}
{s.bandLabel}: {s.bandOptions[config.band]} · {s.breakSensitivityLabel}:{' '}
{s.breakSensitivityOptions[config.breakSensitivity]} · {s.languageLabel}: {LANGUAGE_NAMES[config.language]}
{ttlNote === null ? '' : `\n${ttlNote}`}
</Text>
) : (
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text dimColor>{s.onExpiringLabel}</Text>
<Select
key="onExpiring"
value={config.onExpiring}
options={(['notify', 'button', 'auto'] as const).map(v => ({ value: v, label: s.onExpiringOptions[v] }))}
onSelect={value => void setOption('onExpiring', value)}
/>
</Box>
{/* Only automatic extension has a limit to set. */}
{config.onExpiring === 'auto' ? (
<Box flexDirection="column">
<Text dimColor>{s.autoExtendMaxLabel}</Text>
<Select
key="autoExtendMaxPerIdle"
value={String(config.autoExtendMaxPerIdle)}
options={autoExtendSteps(config.autoExtendMaxPerIdle).map(n => ({
value: String(n),
label: s.autoExtendTimes(n),
}))}
onSelect={value => void setOption('autoExtendMaxPerIdle', value)}
/>
</Box>
) : null}
<Box flexDirection="column">
<Text dimColor>{s.toastLabel}</Text>
<Select
key="toast"
value={String(config.toast)}
options={[true, false].map(v => ({ value: String(v), label: toastName(v) }))}
onSelect={value => void setOption('toast', value)}
/>
</Box>
<Box flexDirection="column">
<Text dimColor>{s.ttlModeLabel}</Text>
<Select
key="ttlMode"
value={config.ttlMode}
options={(['auto', '5m', '1h'] as const).map(v => ({ value: v, label: s.ttlModeOptions[v] }))}
onSelect={value => void setOption('ttlMode', value)}
/>
{ttlNote === null ? null : <Text dimColor>{ttlNote}</Text>}
</Box>
<Box flexDirection="column">
<Text dimColor>{s.bandLabel}</Text>
<Select
key="band"
value={config.band}
options={(['compact', 'off'] as const).map(v => ({ value: v, label: s.bandOptions[v] }))}
onSelect={value => void setOption('band', value)}
/>
</Box>
{withSensitivity ? sensitivitySelect : null}
<Box flexDirection="column">
<Text dimColor>{s.languageLabel}</Text>
<Select
key="language"
value={config.language}
options={LANGUAGES.map(v => ({ value: v, label: LANGUAGE_NAMES[v] }))}
onSelect={value => void setOption('language', value)}
/>
</Box>
</Box>
)}
</Box>
)
if (last === undefined || countdown === null) {
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" alignItems="center" gap={2}>
{Svg === null ? null : (
<Svg
key="ring"
alt={s.ringAlt}
source={idleRingSvg(BIG_RING_SIZE)}
width={BIG_RING_SIZE}
height={BIG_RING_SIZE}
/>
)}
<Text dimColor>{s.waiting}</Text>
</Box>
{settings(true)}
</Box>Licence text (MIT)
MIT License Copyright (c) 2026 TsungYing Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
drives Clauderemembers
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 12c1b78d2c88 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/cache-bar/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.4 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add TheTsungYing/claude-cache-bar/plugin install cache-bar@claude-cache-barThis installs the marketplace's latest commit, which may not be the one read here (12c1b78d2c88). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "thetsungying-cache-bar" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
spending-effort-with-jev: no TypeSafe API key, so effort tips are off. Set it in /plugin.⚠ effort: long run, fuzzy spec → have Claude interview you, then go maxAsk Claude…
-
✦ explain as pick how Claude answers×3 ● build3 ● build3 ● build▸ VideoAsk Claude…
-
● pace Write · Park to1 park 12 dismiss 2pace: resume point 2h 10m · Fix login · 33 resume 34 discard 45 all 3 5pace: Park to resume point older than 7 days6 clear 6Ask Claude…
-
Ask Claude…superpowersϟ Arc tokens showing buildNot now██ FinalFinal42%:1 ✓██ FinalFinal42%:1 ✓██ FinalFinal42%:1 ✓███ brand gradient (OKLCH)Not now██ FinalFinal42%:1 ✓██ FinalFinal42%:1 ✓██ FinalFinal42%:1 ✓███ brand gradient (OKLCH)Not now██ FinalFinal42%:1 ✓██ FinalFinal42%:1 ✓██ FinalFinal42%:1 ✓███ brand gradient (OKLCH)d darkl lightz daltonizeda ansiu auto
-
What it does
- Draws a band above the prompt, a pane, the status line, toasts in the terminal
- Adds /agentzero
- Watches Bash calls and can refuse them
- Hooks command.register, env.get, fs.read, fs.stat and 13 more