Bun Cookies
Work with cookies in HTTP requests and responses using Bun's built-in Cookie API.
Install
npx skills add jarle/bun-skills --skill Bun Cookiesgit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-runtime-http-cookies ~/.claude/skills/Bun-CookiesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Cookies
> Work with cookies in HTTP requests and responses using Bun's built-in Cookie API.
Bun provides a built-in API for working with cookies in HTTP requests and responses. The `BunRequest` object includes a `cookies` property that provides a `CookieMap` for easily accessing and manipulating cookies. When using `routes`, `Bun.serve()` automatically tracks `request.cookies.set` and applies them to the response.
## Reading cookies
Read cookies from incoming requests using the `cookies` property on the `BunRequest` object:
```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
Bun.serve({
routes: {
"/profile": req => {
// Access cookies from the request
const userId = req.cookies.get("user_id");
const theme = req.cookies.get("theme") || "light";
return Response.json({
userId,
theme,
message: "Profile page",
});
},
},
});
```
## Setting cookies
To set cookies, use the `set` method on the `CookieMap` from the `BunRequest` object.Details
- Skill name
Bun Cookies- Repository
- jarle/bun-skills
- Path
skills/bun-runtime-http-cookies/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Cookies skill do?
Work with cookies in HTTP requests and responses using Bun's built-in Cookie API.
How do I install the Bun Cookies skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Cookies. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Cookies popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Debugging
9jarle/bun-skills
Debug your Bun code with an interactive debugger using WebKit Inspector Protocol
Bun Codesign a Single File JavaScript Executable on macOS
9jarle/bun-skills
Fix the "can't be opened because it is from an unidentified developer" Gatekeeper warning when running your JavaScript executable.
Bun FFI
9jarle/bun-skills
Use Bun's FFI module to efficiently call native libraries from JavaScript
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.