npx agentspec-cli install 6019b8b7-d154-42c4-9365-b3fe6d578cc7 --file-type agents-md→ .agents/
# Base64 - Agent Guide ## Project Overview Base64 is a lightweight, zero-dependency base64 encoding/decoding library for JavaScript and TypeScript that works across Node.js, Deno, Bun, and browsers. It supports both regular base64 and base64url encoding with string and ArrayBuffer conversions. ## Project Structure ``` base64/ ├── src/ # Source code │ └── base64.ts # Main entry point with all base64 functions ├── tests/ # Test files │ └── base64.test.ts # Test suite ├── build/ # Build scripts ├── docs/ # Documentation (Jekyll site) │ ├── index.md │ ├── installation.md │ ├── examples.md │ └── contributing.md └── deno.json # Deno configuration and tasks ``` ## Development Environment The project uses **Deno** as the primary development runtime, with cross-runtime support for Node.js and Bun. ### Setup ```bash # Install Deno dependencies deno install ``` ## Contribution Guidelines ### Pre-commit Checks Before committing changes, always run: ```bash deno fmt deno lint deno check src/base64.ts ``` This ensures: - **Formatting**: Code follows style guidelines - **Linting**: Code quality checks pass - **Type checking**: TypeScript types are valid ### Testing Run tests during development: ```bash deno test ``` **Note**: The project uses CI workflows from `@cross-org/workflows` for cross-runtime testing (Node.js, Deno, and Bun). These workflows are imported in `.github/workflows/test.yml`. ### Bun testing equivalent to CI ```bash # Prerequisites bun x jsr add @cross/test @std/assert # Run tests bun test ``` ### Node testing equivalent to CI package.json must be created with `"type": "module"` ```bash # Prerequisites npx jsr add @cross/test @std/assert # Run tests npx --yes tsx --test tests/*.test.ts ``` ### Full Build Before submitting a PR, run the full build to ensure all checks pass: ```bash deno task build ``` This runs all tests, builds distribution files for npm, and validates the entire codebase. ### Key Points - Base work on the `main` or `dev` branch - Add test cases for all changes - Zero dependencies - do not add external dependencies - Follow existing code style and patterns - Update documentation if changing public APIs - The library should work across Node.js, Deno, Bun, and browsers For detailed contribution guidelines, see [docs/contributing.md](docs/contributing.md). ## API Overview The library exports a single `base64` object with the following methods: - `fromArrayBuffer(buffer, urlMode)` - Encodes ArrayBuffer to base64/base64url - `toArrayBuffer(str, urlMode)` - Decodes base64/base64url to ArrayBuffer - `fromString(str, urlMode)` - Encodes string to base64/base64url - `toString(str, urlMode)` - Decodes base64/base64url to string - `validate(str, urlMode)` - Validates base64/base64url strings All methods support an optional `urlMode` parameter to switch between standard base64 and base64url encoding.
nano-binary-search — AI Agent Rules
nano-binary-search is a single-function binary search (lower bound) for JavaScript. Zero dependencies, single file. Equivalent to C++ `std::lower_bound` / Python `bisect.bisect_left`.
by AgentHub Crawler
AGENTS.md
This file provides guidance to AI coding agents when working with code in this repository.
by AgentHub Crawler
AGENTS.md: Coding Agent Guide for turbo-payload
Monorepo: **Next.js + Payload CMS** (web), **Bun server** (API), **React Native/Expo** (mobile).
by AgentHub Crawler
dollar-shell — AI Agent Rules
Sign in to leave a comment.
dollar-shell is a micro-library for running OS and shell commands from JavaScript/TypeScript using template tag functions. Works in Node, Deno, and Bun with the same API. All streams are web streams. The npm package name is `dollar-shell`.
by AgentHub Crawler