The Navs family is a set of router-like abstractions for F#.
- Navs — core router (inspired by web routers such as vue-router and angular-router), generic and suitable for application-specific adapters.
- UrlTemplates — URL template parsing and matching, used by Navs to parse navigable URLs.
- Navs.CSharp — C# facade for the core router.
- UrlTemplates.CSharp — C# facade for standalone URL template parsing, matching and building.
- Navs.Avalonia — adapter for Avalonia applications.
- Navs.FuncUI — adapter for Avalonia.FuncUI applications.
- Navs.Terminal.Gui — adapter for Terminal.Gui applications.
General setup and usage instructions can be found in the README.md file.
- NEVER PUSH WITHOUT PERMISSION. Always ask before pushing to the remote.
- NEVER FORCE PUSH. Tell the user they have to force push instead of you.
- Always run
dotnet fantomas .before committing code. Format all F# files before staging. - Prefer
Option.*(orValueOptionorResult) combinators over nested matches. When threading optional/result values, chainOption.map/bind/filter/iter/defaultValue/orElseinstead of hand-rollingmatch ... with | Some x -> ... | None -> ...ladders. Match only when the two branches carry substantially different logic, not to unwrap and re-wrap. - Pull requests made with the
ghcommand should use a markdown file as the PR body, not inline escaped markdown strings.
src/contains the main source.- Packable libraries:
UrlTemplatesUrlTemplates.CSharpNavsNavs.CSharpNavs.AvaloniaNavs.FuncUINavs.Terminal.Gui
- Test projects (not packable):
Navs.TestsNavs.CSharp.TestsNavs.Adapters.TestsNavs.FuncUI.TestsUrlTemplates.TestsUrlTemplates.CSharp.Tests
- Packable libraries:
samples/contains sample applications (not packable):RouterishFuncUITGUINxuiDeclarativeCSharpToo
docs/contains the FsDocs documentation site.
Multi-targeting: most libraries target net10.0;net8.0; Navs.Terminal.Gui and the C# and adapter test projects target net10.0 only.
We follow https://github.com/ionide/KeepAChangelog guidelines.
Changelog format:
# Changelog
## [Unreleased]
Content that is pending for release goes here.
## [1.0.0] - 2026-06-24
### Added
- Initial releaseEach section may contain the following categories:
- Added
- Changed
- Deprecated
- Removed
- Fixed
- Security
When adding entries to the changelog, make sure to follow format and categories.
The changelog is written for developers upgrading their version, not as a development journal. Keep these rules in mind:
-
Concise and reader-focused. Each entry is one bullet that says what changed and why a user cares — not how it's implemented internally. No internal module/file paths, no build/milestone/phase numbers (e.g. "B12", "Phase 3"), no section references (e.g. "§6.2"), and no "mirrors the canonical X" narration. A reader should understand the entry without reading the code.
-
Group by user-facing concern, not by task. One bullet per feature/fix area. If multiple commits touch the same subsystem, collapse them into one bullet that names each fix briefly, rather than one bullet per commit.
-
Only released code can be Changed or Fixed. Features that have never shipped belong in
Added— there is no prior version to change from or fix against. Design choices and implementation details of a new feature are part of itsAddeddescription, not separateFixed/Changedentries. UseChanged/Fixedonly for modifications to already-released behavior (and mark breakage with Breaking: or Breaking (behavioral):). -
Lead with the affected surface. Bold-prefix each bullet with the area:
**Navs:**,**UrlTemplates:**,**Navs.Avalonia:**,**Navs.FuncUI:**,**Navs.Terminal.Gui:**,**CI:**,**Project:**, etc. Keep breaking changes at the top of their category. -
Plain language. Describe the user-visible effect, not the code diff. The reader wants to know what they'll observe, not what line changed.
The package version is derived from CHANGELOG.md at pack time by Ionide.KeepAChangelog.Tasks. There is no need to edit versions in project files or CI manually. Cutting a release is done by moving the desired content from [Unreleased] into a new version section, then triggering the release workflow.