{"id":27900411,"url":"https://github.com/fvd/zettelviewer-r","last_synced_at":"2026-02-25T18:32:00.891Z","repository":{"id":289495889,"uuid":"971451648","full_name":"FvD/zettelviewer-R","owner":"FvD","description":"R implementation of zettelviewer","archived":false,"fork":false,"pushed_at":"2025-04-23T15:01:46.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T00:47:55.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FvD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2025-04-23T14:40:58.000Z","updated_at":"2025-04-23T15:01:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d49a77e-8298-4586-9949-c614ab456029","html_url":"https://github.com/FvD/zettelviewer-R","commit_stats":null,"previous_names":["fvd/zettelviewer-r"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FvD/zettelviewer-R","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FvD%2Fzettelviewer-R","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FvD%2Fzettelviewer-R/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FvD%2Fzettelviewer-R/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FvD%2Fzettelviewer-R/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FvD","download_url":"https://codeload.github.com/FvD/zettelviewer-R/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FvD%2Fzettelviewer-R/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29834617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:57:15.019Z","status":"ssl_error","status_checked_at":"2026-02-25T17:56:11.472Z","response_time":61,"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":"2025-05-05T20:14:52.028Z","updated_at":"2026-02-25T18:32:00.868Z","avatar_url":"https://github.com/FvD.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown Memory Server\n\nA lightweight R tool that renders markdown files to HTML and serves them via a local web server entirely from memory, without writing permanent files to disk.\n\n## Features\n\n- Renders multiple markdown files (`.md`, `.Rmd`, `.markdown`) to HTML in a single command\n- Keeps all rendered content in memory (RAM) - no HTML files are written to disk\n- Creates an index page showing document titles and filenames\n- Extracts titles from markdown content automatically\n- Serves documents via a local web server for easy viewing in any browser\n- Supports various markdown formats and features\n\n## Installation\n\n### Requirements\n\n- R (\u003e= 3.5.0)\n- Required R packages: `rmarkdown`, `httpuv`, `servr`\n\n### Install Dependencies\n\n```r\ninstall.packages(c(\"rmarkdown\", \"httpuv\", \"servr\"))\n```\n\n### Download the Script\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/markdown-memory-server.git\n\n# Or download the script directly\ncurl -O https://raw.githubusercontent.com/yourusername/markdown-memory-server/main/render_folder.R\nchmod +x render_folder.R  # Make executable (optional)\n```\n\n## Usage\n\n```bash\n# Basic usage\nRscript render_folder.R /path/to/markdown/folder\n\n# Specify a custom port (default is 8000)\nRscript render_folder.R /path/to/markdown/folder 3000\n\n# If you made the script executable\n./render_folder.R /path/to/markdown/folder\n```\n\nOnce running, open your browser and navigate to:\n```\nhttp://localhost:8000\n```\n\nYou'll see an index page listing all markdown documents with their titles and filenames. Click any document to view it rendered as HTML.\n\nPress `Ctrl+C` in the terminal to stop the server.\n\n## How It Works\n\n1. The script scans the specified folder for markdown files\n2. Each file is rendered to HTML using `rmarkdown::render()`\n3. The HTML content is stored in memory\n4. A local web server is started using the `httpuv` package\n5. The server serves HTML directly from memory when requested\n6. An index page is created with titles extracted from the markdown content\n\n## Title Extraction\n\nThe script automatically extracts document titles in this order:\n\n1. From YAML front matter: `title: Your Document Title`\n2. From the first Markdown heading: `# Your Heading`\n3. From setext-style headings (with `===` or `---` underlines)\n4. If no title is found, the filename is used\n\n## Use Cases\n\n- Quickly preview markdown notes or documentation\n- Review a collection of markdown files without cluttering your system with HTML files\n- Share local documentation with colleagues on the same network\n- Temporary viewing of markdown content without permanent conversion\n- Teaching and presentations involving multiple markdown documents\n\n## Limitations\n\n- Images referenced in markdown files need to be absolute paths or URLs\n- No editing capabilities (view only)\n- Basic styling using default R Markdown HTML templates\n- Session ends when the R script is terminated\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgments\n\n- The R Project and the developers of rmarkdown, httpuv, and servr packages\n- Inspired by the need for a lightweight, no-installation markdown viewer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvd%2Fzettelviewer-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvd%2Fzettelviewer-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvd%2Fzettelviewer-r/lists"}