Skip to main content
MiniKit-JS is our official SDK for creating mini apps that work with World App.

Quick Start

The fastest way to get started is by using our template next-15 repository. Run the following command and follow the instructions to create a new mini app. This installs dependencies with npm; to use pnpm, add --no-install and run pnpm install in the new directory.
Template

Correctly running template should look like this

Manual Installation

MiniKit-JS is the core library and is framework agnostic. Install it with pnpm, or use a CDN like jsdelivr for inline HTML. Replace [version] with the release you want to load.
TypeScript: the package’s type declarations reference window.WorldApp without declaring it, so type-checking fails with "skipLibCheck": false. Set "skipLibCheck": true in tsconfig.json (the Next.js default), or add the Window.WorldApp declaration.

Usage

  1. Wrap your app with MiniKitProvider in a client component. This initializes MiniKit and makes it available throughout your app.
src/app/providers.tsx
src/app/layout.tsx
  1. Check if MiniKit is installed. MiniKit.isInstalled() will only return true if the mini app is opened and initialized inside the World App. This is useful to distinguish between a user opening your app in the browser or in the World App.
In a React component, you can read this reactively with the useMiniKit() hook, as the official starter template does:

Build with AI

The World Docs MCP lets any coding assistant search the World documentation to help you build your mini app.
--scope project writes a shareable .mcp.json to your project (recommended). Without it, the server is added only for you in this project (stored in ~/.claude.json); use --scope user to add it to all your projects.

Template Repositories

The following template repositories are also available: Otherwise, continue below with the installation instructions.
Watch a video tutorial here.