Skip to content
Back to skills

Zalo Mini App

ASecurity

Build Zalo Mini Apps - lightweight React web apps running inside the Zalo super-app. Use for Zalo Mini App setup, zmp-cli/devtools, ZaUI 1.11.x components, zmp-sdk APIs, permissions, token-based phone number flow, user info, storage, local file storage, camera/media, document preview, payment/Checkout, Open APIs, partner APIs, KYB/eKYC, publication, testing, and Zalo design guidelines.

  • 3 stars
  • 0 votes
  • 2 copies
  • 13 views
  • Added September 6, 2026
ai-agentsbashreacttestinggitapibackendperformance

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add neddtu/zalo-mini-app-skills --skill zalo-mini-app --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zalo Mini App?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zalo Mini App
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neddtu-zalo-mini-app/badge)](https://www.skillsdirectory.com/skills/neddtu-zalo-mini-app)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: zalo-mini-app
description: Build Zalo Mini Apps - lightweight React web apps running inside the Zalo super-app. Use for Zalo Mini App setup, zmp-cli/devtools, ZaUI 1.11.x components, zmp-sdk APIs, permissions, token-based phone number flow, user info, storage, local file storage, camera/media, document preview, payment/Checkout, Open APIs, partner APIs, KYB/eKYC, publication, testing, and Zalo design guidelines.
---

# Zalo Mini App Development

Build Mini Apps for the Zalo platform using React, ZaUI, zmp-sdk, Zalo Mini App CLI/Extension, and platform Open APIs.

Docs baseline: official Zalo Mini App docs checked on **2026-06-24**.

## Quick Start

```bash
npm install -g zmp-cli
zmp create my-app
cd my-app
zmp start
```

Core packages:

```bash
npm install zmp-ui zmp-sdk
```

```tsx
import { App, Page, Button, Input, Modal } from "zmp-ui";
import "zmp-ui/zaui.css";
import { getUserInfo, authorize } from "zmp-sdk/apis";
```

Current package versions observed on 2026-06-24:

- `zmp-sdk`: 2.51.x
- `zmp-ui`: 1.11.x
- `zmp-cli`: 4.0.x

Always verify package types in the installed project when implementing exact props or SDK return types.

## References

### Setup & Release
- [getting-started.md](./references/getting-started.md) - Create app, auth, permissions, CLI/Extension, test, publish
- [design-guidelines.md](./references/design-guidelines.md) - Zalo design standards and review checklist
- [web-design-guidelines.md](./references/web-design-guidelines.md) - Accessibility, mobile UX, forms, performance
- [react-best-practices.md](./references/react-best-practices.md) - Waterfalls, bundle size, re-renders, JS performance

### SDK APIs
- [api-overview.md](./references/api-overview.md) - API groups, import patterns, error handling
- [api-user.md](./references/api-user.md) - authorize, getUserInfo, token-based getPhoneNumber, getAccessToken
- [api-storage.md](./references/api-storage.md) - Storage APIs and legacy aliases
- [api-ui.md](./references/api-ui.md) - toast, navigation bar, webview, routing
- [api-device.md](./references/api-device.md) - location, camera, media picker, document, QR/NFC, network
- [api-local-file-storage.md](./references/api-local-file-storage.md) - Local File Storage APIs
- [api-permission-biometric.md](./references/api-permission-biometric.md) - permissions and biometric auth
- [api-advertising-widgets.md](./references/api-advertising-widgets.md) - ads and function/OA widgets
- [api-zalo.md](./references/api-zalo.md) - OA, chat, sharing, profile, shortcuts

### Payment / Backend APIs
- [payment-checkout.md](./references/payment-checkout.md) - Payment integration, order, callback, status, refund
- [open-apis.md](./references/open-apis.md) - Open APIs, partner APIs, signature verification, KYB notes
- [ekyc-apis.md](./references/ekyc-apis.md) - eKYC API map and secure integration notes

### ZaUI Components
- [zaui-overview.md](./references/zaui-overview.md) - Component list and design tokens
- [zaui-layout.md](./references/zaui-layout.md) - App, Page, Header, Router, BottomNavigation, Box utilities
- [zaui-display.md](./references/zaui-display.md) - Avatar, Icon, List, Swiper, Calendar, Text
- [zaui-form.md](./references/zaui-form.md) - Button, Input, Select, DatePicker, OTP, Slider
- [zaui-overlay.md](./references/zaui-overlay.md) - Modal, Sheet, ActionSheet, SnackbarProvider

## Critical Current Patterns

### Phone Number: Token Flow, Not Direct Number

```ts
import { getPhoneNumber } from "zmp-sdk/apis";

const { token } = await getPhoneNumber({});
// Send token to backend immediately.
// Backend exchanges token with Zalo Open API to get the actual phone number.
// Token is single-use and short-lived.
```

Do **not** expect `getPhoneNumber` to return `{ number }` in current docs.


### Location: Token Flow, Not Direct Coordinates

```ts
import { getLocation } from "zmp-sdk/apis";

const { token } = await getLocation();
// Send token to backend for Zalo Open API exchange.
```

Do **not** expect `getLocation` to return direct `{ latitude, longitude }` in current docs.

### Local File Storage: LFSStorage Namespace

```ts
import { LFSStorage } from "zmp-sdk/apis";

const { support } = await LFSStorage.isSupportLFS();
const { savedPath } = await LFSStorage.saveFile({ filePath: "local-temp-path" });
```

Use `filePath` / `savedPath`, not old `tempFilePath` helpers.

### Media Picker: Current Shape

```ts
import { openMediaPicker } from "zmp-sdk/apis";

const { data } = await openMediaPicker({
  type: "photo",
  maxSelectItem: 5,
  serverUploadUrl: "https://example.com/upload"
});
```

Use `maxSelectItem`, not `maxSelection`.

### Basic Page Layout

```tsx
import { App, Page, Header, List, Icon, BottomNavigation } from "zmp-ui";

export default function Root() {
  return (
    <App>
      <Page>
        <Header title="Home" />
        <List>
          <List.Item title="Item" suffix={<Icon icon="zi-chevron-right" />} />
        </List>
      </Page>
      <BottomNavigation fixed>
        <BottomNavigation.Item key="home" label="Home" icon={<Icon icon="zi-home" />} />
      </BottomNavigation>
    </App>
  );
}
```

## Resources

- Docs: https://miniapp.zaloplatforms.com/documents/
- API: https://miniapp.zaloplatforms.com/documents/api/
- ZaUI: https://miniapp.zaloplatforms.com/documents/zaui/
- Payment: https://miniapp.zaloplatforms.com/documents/payment/
- Open APIs: https://miniapp.zaloplatforms.com/documents/open-apis/
- Mini App Center: https://miniapp.zaloplatforms.com/

Files in this skill

  • SKILL.md5.4 KB
  • references/api-advertising-widgets.md996 B
  • references/api-device.md4.2 KB
  • references/api-local-file-storage.md1.6 KB
  • references/api-overview.md3.6 KB
  • references/api-permission-biometric.md2.2 KB
  • references/api-storage.md1.6 KB
  • references/api-ui.md1.9 KB
  • references/api-user.md3.7 KB
  • references/api-zalo.md1.9 KB
  • references/design-guidelines.md1.7 KB
  • references/ekyc-apis.md1.2 KB
  • references/getting-started.md2.8 KB
  • references/open-apis.md2 KB
  • references/payment-checkout.md2.6 KB
  • references/react-best-practices.md17.8 KB
  • references/web-design-guidelines.md13.1 KB
  • references/zaui-display.md2.1 KB
  • references/zaui-form.md2.2 KB
  • references/zaui-layout.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.