
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
github.com/15dkatz/official_joke_api
https://official-joke-api.appspot.com/random_joke
https://official-joke-api.appspot.com/jokes/random
https://official-joke-api.appspot.com/types
https://official-joke-api.appspot.com/random_ten
https://official-joke-api.appspot.com/jokes/ten
Usage: https://official-joke-api.appspot.com/jokes/random/<any-number>
For example:
The endpoints are jokes/:type/random
or jokes/:type/ten
. For example:
https://official-joke-api.appspot.com/jokes/programming/random
https://official-joke-api.appspot.com/jokes/programming/ten
Use endpoint /jokes/:id
The majority of these jokes were contributed by joke-loving coders around the world!
Submit a Pull Request, with your joke added to the jokes/index.json file. Make sure the joke is in this format:
{
"type": "programming",
"setup": "What's the best thing about a Boolean?",
"punchline": "Even if you're wrong, you're only off by a bit."
}
npm i && npm run dev
localhost:3005/jokes/random
or localhost:3005/jokes/ten
on your browserFAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.