{"id":39601242,"url":"https://github.com/boolean-maybe/navidown","last_synced_at":"2026-04-01T22:46:44.125Z","repository":{"id":332847627,"uuid":"1135245202","full_name":"boolean-maybe/navidown","owner":"boolean-maybe","description":"Navigable CLI Markdown renderer","archived":false,"fork":false,"pushed_at":"2026-03-27T13:56:30.000Z","size":331,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T16:48:10.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boolean-maybe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-15T20:51:40.000Z","updated_at":"2026-03-27T13:56:34.000Z","dependencies_parsed_at":"2026-03-12T05:37:12.181Z","dependency_job_id":"77427b95-fe8b-4fbb-977b-eda833019597","html_url":"https://github.com/boolean-maybe/navidown","commit_stats":null,"previous_names":["boolean-maybe/navidown"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/boolean-maybe/navidown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolean-maybe%2Fnavidown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolean-maybe%2Fnavidown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolean-maybe%2Fnavidown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolean-maybe%2Fnavidown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boolean-maybe","download_url":"https://codeload.github.com/boolean-maybe/navidown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolean-maybe%2Fnavidown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-18T07:53:39.198Z","updated_at":"2026-04-01T22:46:44.116Z","avatar_url":"https://github.com/boolean-maybe.png","language":"Go","readme":"# navidown\n\n## About\n\n`navidown` is a reusable navigable markdown CLI component:\n\n- renders markdown to **ANSI** (for terminal output)\n- supports **scrolling** and **pager-style navigation**\n- finds **links** and allows **Tab / Shift-Tab** traversal\n- on activation (Enter), loads linked markdown via a pluggable loader and replaces current content\n\nThis repo contains:\n\n- core package `github.com/boolean-maybe/navidown/navidown` (UI-agnostic state machine + renderers)\n- optional TView adapter `github.com/boolean-maybe/navidown/navidown/tview` (TView primitive)\n\n## Installation\n\n```bash\ngo get github.com/boolean-maybe/navidown/navidown\n```\n\nFor the TView adapter:\n```bash\ngo get github.com/boolean-maybe/navidown/navidown/tview\n```\n\nFor the file/HTTP content loader:\n```bash\ngo get github.com/boolean-maybe/navidown/loaders\n```\n\n## Quick Start\n\n### Using the TView Adapter\n\nTwo adapters are available: `BoxViewer` (custom draw) and `TextViewViewer` (TextView paging). This example uses `TextViewViewer`.\n\n```go\npackage main\n\nimport (\n\t\"github.com/boolean-maybe/navidown/loaders\"\n\tnav \"github.com/boolean-maybe/navidown/navidown\"\n\tnavtview \"github.com/boolean-maybe/navidown/navidown/tview\"\n\t\"github.com/rivo/tview\"\n)\n\nfunc main() {\n\tapp := tview.NewApplication()\n\tviewer := navtview.NewTextView()\n\n\t// Set initial markdown content\n\tviewer.SetMarkdown(`# Welcome to navidown\n\nNavigate through links with **Tab** and **Shift+Tab**.\nPress **Enter** to follow links.\n\n[Example Link](https://example.com)\n[Local File](./README.md)\n\n## Features\n- ANSI terminal rendering\n- Link navigation\n- Scrolling support\n`)\n\n\t// Handle link activation\n\tfetcher := nav.NewContentFetcher(\u0026loaders.FileHTTP{}, nil)\n\tviewer.SetSelectHandler(func(v *navtview.TextViewViewer, elem nav.NavElement) {\n\t\tcontent, err := fetcher.FetchContent(elem)\n\t\tif err == nil {\n\t\t\tv.SetMarkdownWithSource(content, elem.URL, true)\n\t\t}\n\t})\n\n\tif err := app.SetRoot(viewer, true).Run(); err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n\n### Using the Core API (UI-agnostic)\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/boolean-maybe/navidown/navidown\"\n)\n\nfunc main() {\n\tsession := navidown.New(navidown.Options{})\n\n\t// Set markdown content\n\t_ = session.SetMarkdown(`# Hello World\n\nThis is a [link](https://example.com).\n\n## Section\nMore content here.`)\n\n\t// Get rendered ANSI lines\n\tlines := session.RenderedLines()\n\tfor _, line := range lines {\n\t\tfmt.Println(line)\n\t}\n\n\t// Navigate through links\n\tsession.MoveToNextLink(20)\n\tif selected := session.Selected(); selected != nil {\n\t\tfmt.Printf(\"Selected: %s -\u003e %s\\n\", selected.Text, selected.URL)\n\t}\n}\n```\n\n![Build Status](https://github.com/boolean-maybe/navidown/actions/workflows/go.yml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/boolean-maybe/navidown)](https://goreportcard.com/report/github.com/boolean-maybe/navidown)\n[![Go Reference](https://pkg.go.dev/badge/github.com/boolean-maybe/navidown.svg)](https://pkg.go.dev/github.com/boolean-maybe/navidown)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolean-maybe%2Fnavidown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboolean-maybe%2Fnavidown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolean-maybe%2Fnavidown/lists"}