foundation-models-on-device
Patterns for integrating Apple's on-device language models into iOS apps using Swift and FoundationModels.
Install
npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-deviceStats
| Total installs | 1,036 |
| Weekly installs | 1.0K |
| GitHub stars | 112.5K |
| First seen | Feb 24, 2026 |
| Source | @affaan-m/everything-claude-code |
Summary
- Covers text generation, structured output via @Generable macro, custom tool calling, and snapshot streaming—all running locally without cloud dependency
- Requires availability checks before session creation; supports single-turn and multi-turn conversations with optional system instructions
- Guided generation with @Guide constraints (numeric ranges, array counts, semantic hints) produces strongly-typed Swift structs instead of raw strings
- Tool calling lets models invoke custom functions for domain-specific tasks; streaming mode progressively yields partial results for real-time UI updates
- 4,096 token context limit applies across instructions, prompt, and output combined; single request per session enforced via isResponding flag
Tags
Related skills
| Skill | Installs | vs foundation-models-on-device |
|---|---|---|
| vibe-coding | 1,006 | -30 |
| agentic-engineering | 990 | -46 |
| base44-cli | 965 | -71 |
| rag-architect | 1,076 | +40 |
| computer-vision-opencv | 1,069 | +33 |
FAQ
- How many installs does foundation-models-on-device have?
- foundation-models-on-device has 1,036 total installs and 1.0K installs this week.
- Where is foundation-models-on-device hosted?
- foundation-models-on-device is published by @affaan-m/everything-claude-code at https://github.com/affaan-m/everything-claude-code.
- How many GitHub stars does foundation-models-on-device have?
- foundation-models-on-device has 112.5K GitHub stars.
- When was foundation-models-on-device first indexed?
- OrangeBot.AI first indexed foundation-models-on-device on Feb 24, 2026.
- How do I install foundation-models-on-device?
- Run: npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device