Build|Claude Code Mods

ModsCode / Claude Code Mods / Build / Fetch named hosts

Fetch only hosts named in the code

Start each URL you give $.http.fetch with https:// and its host, in the code. A reader then sees every place the mod sends requests to, and a URL put together from settings or input cannot point it somewhere else. Reach the network only from the part of the mod that needs it.

$.http.fetch('https://…')

Rules it rests on: Calls in the open, Network

Real mods' code (2)

Quoted as is from public mods on GitHub, at the commit ModsCode read. The heading leads to the mod's page (what it does, its good points, what its code reaches); the file name leads to the lines on GitHub.

An excerpt shows what that code does; it is not a rating of the mod. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for any mod. Read the code yourself before you copy or install it.

pulse-cc fatwang2 · ★ 113

fetchYahoo: path => $.http.fetch(`https://query1.finance.yahoo.com/v8/finance/chart/${path}`, {
  headers: { 'User-Agent': 'Pulse-CC/0.4.1', Accept: 'application/json' },
}),

From fatwang2/Pulse at commit aab069d. MIT licence. Keep its notice when you copy the code.

What the check read in this mod: Calls in the open: every call outside goes through $ in the open · Network: https://query1.finance.yahoo.com, https://data-api.binance.vision

Licence text (MIT)
MIT License

Copyright (c) 2026 fatwang2

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.

live-scores thickiran · ★ 0

async function fetchFeed($: EngineInterface, path: string): Promise<string> {
  const res = await $.http.fetch(`https://site.api.espn.com/apis/site/v2/sports/soccer/${path}`, {
    headers: { 'user-agent': USER_AGENT, accept: 'application/json' },
  })
  if (!res.ok) throw new Error(`HTTP ${res.status}`)
  if (!res.text.trimStart().startsWith('{')) throw new Error('the feed did not answer with JSON')

  return res.text
}

From thickiran/claude-live-scores at commit bf78862. MIT licence. Keep its notice when you copy the code.

What the check read in this mod: Calls in the open: every call outside goes through $ in the open · Network: https://site.api.espn.com

Licence text (MIT)
MIT License

Copyright (c) 2026 thickiran

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.

Excerpts are picked by one rule, never by name: listed mods under an open licence whose text ModsCode keeps and that no check flags; the most starred repositories first, then the shorter excerpt; one mod per repository; at most 16 lines each.

Other security practices