# Pocketship

> Turn your Next.js app into an installable PWA that feels native on the phone, works offline and never caches private data.

Pocketship is a paid AI agent skill on Agensi by MAJI, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [MAJI](https://www.agensi.io/creators/maji)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.1
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pocketship
- Tags: web-design, nextjs, pwa, serwist, service-worker

## About this skill

Your web app works, but on the phone it opens in a browser tab, zooms into every input, shows a blank screen offline, and users keep seeing last week's version after you deploy. Ask your agent to "make it a PWA" and Pocketship makes your Next.js App Router app install to the home screen, open full screen, show a proper offline page and tell people when a new version is ready, then checks it on a real phone.

### Why it's different
- **Private data stays off the disk:** signed-in pages, API calls and other hosts are network-only before any default caching, so one user's data is never served from cache.
- **Matched to your bundler:** picks the right Serwist mode for Turbopack or webpack and verifies every package on npm first, so no dead or invented plugins.
- **Feels native, not just installable:** safe areas, `100dvh`, 16px inputs, no tap flash or scroll bounce, and an install prompt only after the user got value.
- **Built from real projects:** 10 failures that actually happened, each with its guard.

### What it does
- **Manifest and icons:** `app/manifest.ts`, 192 and 512 icons plus a separate maskable icon, Apple touch icon, theme colour per light and dark scheme.
- **Service worker:** Serwist with private routes first, a precached offline page, and `sw.js` served with no-store.
- **Update prompt:** a small "New version ready" toast instead of a silent swap or a stuck old build.
- **iOS fixes:** safe-area padding, dynamic viewport height, no input zoom, standalone detection.
- **Install prompt:** `beforeinstallprompt` on Chromium, a one-time "Add to Home Screen" sheet on iOS, no re-ask for 30 days.

### How it works
1. **Check versions and bundler:** Next.js version, Turbopack or webpack, and every package checked on npm.
2. **Manifest, icons and theme colour** from your brand tokens.
3. **Service worker and offline page** with private routes excluded first.
4. **Update and install prompts** wired to the right moments.
5. **Real-device check:** DevTools Application panel, Lighthouse, then install on one Android and one iPhone.

### Frameworks & tools
Next.js 15 or 16 App Router, Serwist (`@serwist/next`, `@serwist/turbopack` or `@serwist/cli`), Chrome DevTools and Lighthouse, plus one Android phone and one iPhone for the final check.

### Use cases
- A mobile-first web app that should live on the home screen without an app store.
- Users stuck on an old version after every deploy.
- An app that must survive a flaky connection with a clear offline page.
- Making a web app feel native: no grey tap flash, no bounce, no zoom on inputs.

### Known limitations
Built for Next.js App Router; other frameworks need adapting. Not for native app-store builds. Push notifications are a variant, and on iOS they only reach home-screen installs.

## Requires

- next
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Pocketship skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it work with Turbopack in Next.js 16?

Yes. It picks the Serwist mode that matches your build, and the configurator mode works with any bundler.

### Will it cache my users' private data?

No. Signed-in pages, API calls and other hosts are network-only, and the check confirms Cache Storage holds none of them.

### Do I need a real phone?

Yes, for the final check. Emulation misses safe areas, standalone mode, input zoom and the tap flash.

### Can I skip offline and just make it installable?

Yes. The install-only variant ships the manifest, icons and theme colour without a service worker.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
