
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@farcaster/miniapp-codemods
Advanced tools
This package provides automated codemods to help migrate your codebase from Farcaster Frames to Mini Apps.
This tool might make mistakes. Make sure you are working from a clean, committed branch and have backed up your project.
npm install -g @farcaster/miniapp-codemods
Or run directly with npx:
npx @farcaster/miniapp-codemods <path-to-your-project>
Run all codemods on your project:
miniapp-migrate ./src
Preview changes without modifying files:
miniapp-migrate ./src --dry-run
Run only a specific transformation:
miniapp-migrate ./src --transform update-imports
update-imports - Updates package imports from @farcaster/frame-* to @farcaster/miniapp-*update-api-methods - Updates API method names (e.g., frameHost → miniAppHost)update-types - Updates TypeScript type names (e.g., FrameContext → MiniAppContext)update-event-names - Updates event names (e.g., frame_added → miniapp_added)- import { frameHost } from '@farcaster/frame-sdk'
+ import { miniAppHost } from '@farcaster/miniapp-sdk'
- import { FrameContext } from '@farcaster/frame-core'
+ import { MiniAppContext } from '@farcaster/miniapp-core'
- const context = await frameHost.getFrameContext()
+ const context = await miniAppHost.getMiniAppContext()
- frameHost.addFrame({ url: 'https://example.com' })
+ miniAppHost.addMiniApp({ url: 'https://example.com' })
- const context: FrameContext = { ... }
+ const context: MiniAppContext = { ... }
- export interface MyFrameHost extends FrameHost { ... }
+ export interface MyMiniAppHost extends MiniAppHost { ... }
- sdk.on('frame_added', handler)
+ sdk.on('miniapp_added', handler)
- if (event.type === 'frame_removed') { ... }
+ if (event.type === 'miniapp_removed') { ... }
The codemod will update farcaster.json files to include both frame and miniapp properties for backward compatibility:
{
"accountAssociation": { ... },
"frame": {
"version": "1",
"name": "My App",
...
}
+ "miniapp": {
+ "version": "1",
+ "name": "My App",
+ ...
+ }
}
After running the codemods, you'll need to:
Update your package.json dependencies:
{
"dependencies": {
"@farcaster/miniapp-sdk": "^0.0.61",
"@farcaster/miniapp-wagmi-connector": "^0.0.5"
}
}
Update meta tags in your HTML (if using embeds):
<meta name="fc:miniapp" content="..." />
<!-- Keep for backward compatibility -->
<meta name="fc:frame" content="..." />
Test your application thoroughly
The migration maintains backward compatibility:
@farcaster/frame-* packages still work but show deprecation warningsframe and miniapp properties in manifests are supportedfc:frame meta tag continues to work alongside fc:miniappMake sure your file extensions match the patterns:
.js, .jsx, .ts, .tsxfarcaster.json or .well-known/farcaster.jsonThe codemods use jscodeshift which preserves most formatting, but complex code might need manual adjustment. Always review the changes and run your tests.
Some edge cases might not be covered. Please report issues at: https://github.com/farcasterxyz/miniapps/issues
miniapp-migrate ./src --dry-run
# Review changes
miniapp-migrate ./src
miniapp-migrate ./src --transform update-types
miniapp-migrate ./src --verbose
FAQs
Codemods to help migrate from Farcaster Frames to MiniApps
We found that @farcaster/miniapp-codemods demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.