agentleFS
glitternetworkglitternetwork/pinme/AGENTS.md

pinme

AGENTS.md3.7k starsChanged 5 months agoMITView on GitHub

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. PinMe is a zero-config CLI tool for deploying static sites to IPFS. Built with TypeScript, bundled with esbuild, published to npm as pinme. Users run commands like pinme upload dist to deploy frontends. Build uses build.js (esbuild), NOT rollup.config.js (legacy, unused). esbuild reads .env via dotenv at build time and injects env vars as process.env.* defines. The output is a single CJS file at dist/index.js with…

  • Reads credentials

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the glitternetwork/pinme repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about glitternetwork/pinme

The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 7

Talked about on GitHub (7 times).

On GitHub · 7

2 more on GitHub

The file

Files
AGENTS.md

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Project Overview

PinMe is a zero-config CLI tool for deploying static sites to IPFS. Built with TypeScript, bundled with esbuild, published to npm as pinme. Users run commands like pinme upload dist to deploy frontends.

Build & Dev

npm run build          # Production build (esbuild → dist/index.js)
npm run dev            # Dev build
npm run test           # Unit/integration tests (Vitest)
npm run test:cli       # Real CLI black-box tests against dist/index.js
npm run verify         # Full PR gate: lint, typecheck, tests, build, CLI, pack
npm run test:mutation  # Slow mutation tests (manual/nightly)

Build uses build.js (esbuild), NOT rollup.config.js (legacy, unused). esbuild reads .env via dotenv at build time and injects env vars as process.env.* defines.

The output is a single CJS file at dist/index.js with a shebang, used as the pinme CLI binary.

Architecture

  • bin/index.ts — CLI entry point, uses commander to register all commands
  • bin/*.ts — Individual command implementations (upload, save, create, bind, importCar, exportCar, delete, etc.)
  • bin/utils/ — Shared utilities:
    • config.ts — APP_CONFIG singleton, all API base URLs and tuning knobs from env vars
    • apiClient.ts — Axios client factory (createPinmeApiClient, createCarApiClient)
    • pinmeApi.ts — High-level API wrappers (domain binding, wallet, CAR export, etc.)
    • uploadToIpfs.ts / uploadToIpfsSplit.ts — IPFS upload logic (single file vs chunked)
    • webLogin.ts — Auth token management (reads from ~/.pinme/)
    • domainValidator.ts — Domain name validation and DNS vs subdomain detection
    • cliError.ts — Structured CLI error types
  • bin/services/uploadService.ts — Upload orchestration (hash encryption, URL generation)
  • skills/ — Codex skill definitions for this project

Key Patterns

  • Auth: AppKey stored locally at ~/.pinme/. Auth headers injected via getAuthHeaders() in webLogin.ts.
  • API clients: Always use createPinmeApiClient() or createCarApiClient() from apiClient.ts, never raw axios.
  • Token expiry: pinmeApi.ts has centralized token-expired detection (isTokenExpired) — all API calls should go through wrappers there.
  • Config: All env-driven config lives in APP_CONFIG (config.ts). Don't read process.env directly elsewhere.
  • The save command reads pinme.toml from project root for full-stack deploy (frontend + Cloudflare Worker + D1).

Code Style

  • Prettier: single quotes, trailing commas, 80 char width
  • TypeScript with strict: false, target ESNext, module ESNext
  • CLI output uses chalk for colors, ora for spinners, inquirer for prompts, figlet for banner

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.