File conventions

Private folders

Excludes a subtree from routing; does not provide authorization or prevent imports. Ordinary colocated helper files do not create routes. Source: https://nextjs.org/docs/14/app/building-your-application/routing/colocation

Formal Syntax & Structure

nextjs syntaxnextjs
app/_folder/

Working Example

Example Snippetnextjs
app/catalog/_lib/stock.ts
Next.js Reference