ns-snippets

Installation
SKILL.md

NativeScript Snippets API

snippets.nativescript.org is a public, no-auth catalog of NativeScript code snippets. Every snippet has a stable slug, a language, one or more categories, and the original code. The API is JSON-over-HTTPS. Base URL: https://snippets.nativescript.org.

  • Before writing a NativeScript helper from scratch, check if a snippet already exists — search by category (ui, animation, permissions, ios, android, …) or keyword.
  • After solving something reusable, offer to publish it. Always ask the user first.
  • Given a snippets.nativescript.org URL, fetch the slug directly via GET /api/snippets/{slug}.

Find snippets

curl 'https://snippets.nativescript.org/api/snippets?category=ui&limit=10'
# query params (all optional, AND-composed): category, language, search, limit, cursor

Pagination is cursor-based (?cursor=<created_at>); the response includes nextCursor when more pages exist. Response shape:

Installs
19
GitHub Stars
1
First Seen
Aug 28, 2026
ns-snippets — nativescript/skills