# entries

Entry-point discovery, resolution, and platform filtering primitives.

`discoverEntries(projectRoot)` scans `<projectRoot>/src` for the root `index.ts` plus every nested directory containing an `index.ts`, classifying the result into one of [`root`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-EntryPointCategory), [`platform`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-EntryPointCategory), [`feature`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-EntryPointCategory), [`hybrid`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-EntryPointCategory), or [`complex`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-EntryPointCategory). `resolveEntries(config, discovered)` filters that list by the format-level [`entry`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-FormatEntryConfig-prop-entry) and [`exclude`](https://www.hyperfrontend.dev/docs/libraries/builder/models/#api-FormatEntryConfig-prop-exclude) patterns (exact subpaths or globs). `getEntriesByPlatform(discovery, platform)` and `getSharedEntries(discovery)` partition discovered entries by their platform hint for callers that target a specific runtime.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/builder/bundle/entries/
This file: https://www.hyperfrontend.dev/docs/libraries/builder/bundle/entries.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
