{"id":15929809,"url":"https://github.com/seancdavis/bear-to-markdown","last_synced_at":"2026-05-08T04:43:52.894Z","repository":{"id":146757484,"uuid":"573783364","full_name":"seancdavis/bear-to-markdown","owner":"seancdavis","description":"Export notes within the Bear application's local database to markdown files.","archived":false,"fork":false,"pushed_at":"2022-12-03T12:33:03.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T10:00:49.056Z","etag":null,"topics":["bear","markdown","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seancdavis.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}},"created_at":"2022-12-03T12:24:41.000Z","updated_at":"2023-11-07T13:01:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1055c8a6-5961-45fc-b4c0-023a1bb663c2","html_url":"https://github.com/seancdavis/bear-to-markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seancdavis/bear-to-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seancdavis%2Fbear-to-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seancdavis%2Fbear-to-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seancdavis%2Fbear-to-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seancdavis%2Fbear-to-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seancdavis","download_url":"https://codeload.github.com/seancdavis/bear-to-markdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seancdavis%2Fbear-to-markdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32767589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"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":["bear","markdown","nodejs"],"created_at":"2024-10-07T00:21:05.909Z","updated_at":"2026-05-08T04:43:52.868Z","avatar_url":"https://github.com/seancdavis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bear to Markdown\n\nExport notes within the [Bear](https://bear.app/) application's local database to markdown files.\n\n![Export Bear Notes to Markdown Files](https://seancdavis.imgix.net/posts/210616/orange--bear-to-markdown.png?ixlib=js-3.6.0\u0026auto=format%2Ccompress\u0026w=1664\u0026s=bb71b2b9da2a316dc2de88ea3c2580b6)\n\nThis project is the output of [this tutorial](https://www.seancdavis.com/posts/export-bear-notes-markdown-files/), which walks through the process of building a Bear exporting tool.\n\n## How it Works\n\nWhen you run `npm run export`, this is what happens:\n\n1. Bear's database is copied to `database.sqlite` in the root of this project. (Bear stores its content in a local SQLite database, which gets copied so that we don't interfere with the application in any way.)\n1. Metadata about the note is converted to YAML frontmatter. The combination of frontmatter and note content is converted to markdown and written to a file in the `tmp/export` directory (within this project).\n\n### Caveats\n\nThere are a few caveats to this approach:\n\n- The path to Bear's database is hard-coded in `utils/copyDatabase.js`. You may have to change this.\n- You may want to capture different metadata, which is hard-coded in `index.js`.\n\n## Running the Script\n\nIf you want to work with this project, first clone the repository:\n\n    git clone git@github.com:seancdavis/seancdavis-com.git\n\nInstall dependencies:\n\n    npm install\n\nRun the script:\n\n    npm run export\n\nFor more detail on how the code works, [see the tutorial](https://www.seancdavis.com/posts/export-bear-notes-markdown-files/).\n\n## Support\n\nWhile you could [open an issue](https://github.com/seancdavis/bear-to-markdown/issues/new) in this repository, I'd prefer if you did so [for the tutorial](https://github.com/seancdavis/seancdavis-com/issues/new) instead. (I pay closer attention to the website's repository.) Changes will likely have to be made in both places.\n\n## Contributing\n\nChanges to this example project will likely have to also be made [for the tutorial](https://www.seancdavis.com/posts/export-bear-notes-markdown-files/). If you open a PR here related to the functionality of this project, please also consider making [a relevant change to the post](https://github.com/seancdavis/seancdavis-com/edit/main/www/src/posts/2021-06-16-export-bear-notes-markdown-files.md).\n\n## License\n\nDistributed under my [_Use With Love_](https://www.seancdavis.com/posts/use-with-love-public-license/) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseancdavis%2Fbear-to-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseancdavis%2Fbear-to-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseancdavis%2Fbear-to-markdown/lists"}