{
  "id": 13578822,
  "title": "NestJS tip: how to try any official sample in seconds",
  "url": "https://urgent.news/2026/10/10/nestjs-tip-how-to-try-any-official-sample-in-seconds",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-10T23:34:38.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/micalevisk/nestjs-tip-how-to-try-any-official-sample-in-seconds-20dp"
  },
  "original_language": "en",
  "account": "Running one of the official NestJS samples in just a few seconds is now possible thanks to a new tool. Even if you don't want to clone the entire framework just to see how a particular feature works, you can easily run the sample you're interested in.\n\nTo use this tool, you'll need Node.js version 22 or higher. Simply run the command `npx try-nest@latest`, pick the sample you'd like to try from the list, and optionally install the dependencies using npm, pnpm, yarn, or bun. Each sample includes its own description, so you won't have to guess what any of the features are for.\n\nThe tool reads the list of samples from the nestjs/nest repository at runtime, so new samples will appear as soon as they're added to the repository. It also reads the description field of each sample's package.json to provide a description of the sample. The tool downloads the repo tarball and writes only the sample folder into your directory, ensuring that your project has no reference back to the monorepo.\n\nYou can list all available samples, add a flag to get machine-readable output, skip the prompts, or specify a sample and directory to create a standalone project. This is especially useful if you only want to run a specific sample without having to clone the entire framework or know the sample's name beforehand.\n\nThe tool is heavily inspired by try-prisma and the source code can be found on GitHub.",
  "summary": "Let's say you want to run one of the official NestJS samples, the ones under the sample folder of the nestjs/nest repository, to see how some feature looks like in a real app. But you don't want to clone the whole framework just for that! What? Just run this: ## Node.js v22+ is required npx try-nest@latest Pick a sample, pick a directory, and optionally install the dependencies with npm , pnpm ,…",
  "key_points": [
    "New tool lets you run NestJS samples in seconds",
    "Requires Node.js 22 or higher to use npx try-nest@latest",
    "Samples list updates automatically from nestjs/nest repo"
  ],
  "editors_take": "This development streamlines testing of NestJS features, making it easier for developers to explore and work with official samples without having to clone the entire framework or set up a project from scratch.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}