Paperlab AGENTS.md

Paperlab AGENTS.md is an instructions file for Codex, OpenCode from NourMtir0722/Paperlab. It costs 13,242 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Paperlab, a React component that renders realistic, bendable paper with text and images on its surface. React is a JavaScript library for building user interfaces.

In plain words
What is it for?
Useful when adding Paperlab to a React project, configuring paper dimensions and content, choosing a preset, or contributing to the component.
Why use it?
They explain how to install and integrate the component, including its required packages, supported paper types, and important setup details.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/nourmtir0722/paperlab/agents-md
Clone the repo
git clone --depth 1 https://github.com/NourMtir0722/Paperlab

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Paperlab AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nourmtir0722/paperlab/agents-md.svg)](https://agentmods.dev/instructions/nourmtir0722/paperlab/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nourmtir0722/paperlab/agents-md"><img src="https://agentmods.dev/badge/instructions/nourmtir0722/paperlab/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 13,242 This file is loaded in full into every session.
When invoked 13,242 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.13242 $0.13242
Opus 5 $0.06621 $0.06621
Sonnet 5 $0.02648 $0.02648
Haiku 4.5 $0.01324 $0.01324

Measured yesterday against content hash 8e66d999510f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Paperlab AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Paperlab renders physical, realistic paper as a React component. Content is a texture on a mesh that genuinely bends — text and imagery curl with perfect continuity. This file is the dense reference for agents integratin
AGENTS.md · 816 lines

How it starts

The opening of the file, as written. The whole thing — 816 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Paperlab — for coding agents

Paperlab renders physical, realistic paper as a React component. Content is a texture on a mesh that genuinely bends — text and imagery curl with perfect continuity. This file is the dense reference for agents integrating Paperlab into a project or contributing to this repo.

Reading as a human rather than as an agent? The reference is the same catalogue with everything rendering live.

Integrating Paperlab into a project

npm i paperlab three @react-three/fiber gsap

Peer requirements: React ≥ 19, three ≥ 0.160. TypeScript types ship with the package.

import { Paper } from 'paperlab'

// Simplest: a built-in preset. <Paper> owns its own <Canvas> and fills its
// parent — THE PARENT MUST HAVE A HEIGHT or the canvas renders 0px tall.
<Paper preset="receipt-unroll" />

// Or configure inline (all fields optional, validated by zod):
<Paper
  sheet={{ width: 1, height: 2.6, thickness: 0.3 }}
  stock="thermal"          // printer | thermal | kraft | newsprint | vellum | photo-gloss | sticker
  content={{ type: 'receipt', store: 'acme.dev', items: [{ name: 'Widget', price: 9.99 }] }}
  behavior={{ type: 'unroll', progress: 0.6, tightness: 0.5, sway: 0.3 }}
  surface={{ grain: 0.3, deckle: { edges: ['bottom'], roughness: 0.5 } }}
  physics="none"           // 'none' | float | tumble | dangle | taped | breeze | 'cloth' | 'strip' | {type:…}
  interactive              // drag handles / grab cloth
  autoplay                 // play the behavior loop on mount
/>

Inside an existing React Three Fiber scene use <PaperMesh /> (same props, no Canvas). For galleries use <PaperField />:

import { PaperField } from 'paperlab'

<PaperField
  images={['/a.jpg', '/b.jpg', '/c.jpg']}
  preset="photo-print"
  layout="ring"            // ring | fan | spread | pile | wall | spill | sweep | book | accordion | rack | colonnade | sheet
  layoutOptions={{ radius: 3, tiltDeg: 8 }}
  motion={{ driver: 'autoplay', speed: 0.5 }}   // autoplay | drag | none
  entrance={{ type: 'rise', stagger: 0.06 }}    // rise | scatter | none
/>

Read the full file on GitHub · 816 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +346 lines · +6,026 tokens per session 8e66d999510f
  2. 5d ago First seen · 470 lines · 7,216 tokens per session scan A 11aadc208d1f

Subscribe to this mod's changes

Paperlab AGENTS.md is an instructions file published in the GitHub repository NourMtir0722/Paperlab (51 stars, last pushed 2d ago), licensed Apache-2.0. It adds 13,242 tokens to every session, about $0.0662 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.