panes
CLAUDE.md729 starsChanged 6 years agoMITView on GitHub
Cupertino Panes is a TypeScript library that creates multi-functional modals, cards, and panes with touch technologies. It provides native iOS-style behaviors and animations for web applications. Each module can be enabled/disabled through the modules configuration option.
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use npm run serve to test changes in the /playground directory
- Distinctive: line 67
Follow existing TypeScript patterns and interfaces
- Distinctive: line 68
Test changes using the playground environment
- Distinctive: line 70
Consider cross-platform compatibility (specified in browserslist)
- Distinctive: line 71
Use the modular architecture for new features
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Cupertino Panes is a TypeScript library that creates multi-functional modals, cards, and panes with touch technologies. It provides native iOS-style behaviors and animations for web applications.
Development Commands
Build and Development
npm run build- Production build (creates minified bundles in/dist)npm run serve- Development server with live reload on port 3000npm run tslint- Run TSLint for code quality checksnpm run changelog- Generate changelog using conventional commits
Testing Environment
- Use
npm run serveto test changes in the/playgrounddirectory - Visit
http://localhost:3000/playground/to view examples - Multiple demo pages available in
/playgroundfor testing different features
Code Architecture
Core Structure
- Main Class:
CupertinoPanein/src/cupertino-pane.ts- Primary API class - Settings: Configuration managed through
/src/settings.tswith TypeScript interfaces in/src/models.ts - Module System: Modular architecture with feature modules in
/src/modules/
Key Components
- Breakpoints:
/src/breakpoints.ts- Manages pane positioning and snapping points - Transitions:
/src/transitions.ts- Handles animations and state transitions - Events:
/src/events/- Touch events, keyboard events, and resize handling - Device Detection:
/src/device.ts- Platform-specific optimizations - Support Detection:
/src/support.ts- Feature detection utilities
Module System
Available modules (all in /src/modules/):
backdrop.ts- Backdrop overlay functionalityfit-height.ts- Auto-height calculationfollower.ts- Element following behaviorhorizontal.ts- Horizontal pane orientationinverse.ts- Inverse animation directionmodal.ts- Modal-specific featuresz-stack.ts- Stacking multiple panes
Each module can be enabled/disabled through the modules configuration option.
Build System
- Uses Gulp for build orchestration (
/gulp/gulpfile.js) - TypeScript compilation with Rollup bundling
- Outputs multiple formats: UMD, ESM, and TypeScript declarations
- Development server with live reload capability
Configuration
- tsconfig.json: TypeScript compilation targets ES2015 with ES2020 modules
- tslint.json: Strict linting rules following Airbnb-style conventions
- package.json: Defines browser support (Android 7+, iOS 11+, Safari 11+)
Key Files to Understand
/src/cupertino-pane.ts- Main API implementation/src/settings.ts- Default configuration/src/models.ts- TypeScript interfaces and type definitions/src/events/events.ts- Core touch and gesture handling/playground/- Example implementations for testing
Development Guidelines
- Follow existing TypeScript patterns and interfaces
- Test changes using the playground environment
- Maintain iOS-native behavior patterns
- Consider cross-platform compatibility (specified in browserslist)
- Use the modular architecture for new features
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
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.

