{"id":32474942,"url":"https://github.com/markedit-app/markedit-ai-writer","last_synced_at":"2025-10-26T20:18:49.884Z","repository":{"id":316861853,"uuid":"1065151499","full_name":"MarkEdit-app/MarkEdit-ai-writer","owner":"MarkEdit-app","description":"AI writer for MarkEdit, based on Apple's Foundation Models.","archived":false,"fork":false,"pushed_at":"2025-10-20T06:39:28.000Z","size":312,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T08:58:26.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/MarkEdit-app.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T06:38:33.000Z","updated_at":"2025-10-20T06:39:31.000Z","dependencies_parsed_at":"2025-09-27T08:04:39.703Z","dependency_job_id":"2bd1f8be-399d-427a-bb76-2ce78ffd8040","html_url":"https://github.com/MarkEdit-app/MarkEdit-ai-writer","commit_stats":null,"previous_names":["markedit-app/markedit-ai-writer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MarkEdit-app/MarkEdit-ai-writer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkEdit-app%2FMarkEdit-ai-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkEdit-app%2FMarkEdit-ai-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkEdit-app%2FMarkEdit-ai-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkEdit-app%2FMarkEdit-ai-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkEdit-app","download_url":"https://codeload.github.com/MarkEdit-app/MarkEdit-ai-writer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkEdit-app%2FMarkEdit-ai-writer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281163965,"owners_count":26454285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-26T20:18:44.524Z","updated_at":"2025-10-26T20:18:49.879Z","avatar_url":"https://github.com/MarkEdit-app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MarkEdit-ai-writer\n\nAI writer for MarkEdit that leverages [markedit-api](https://github.com/MarkEdit-app/MarkEdit-api), based on Apple's [Foundation Models](https://developer.apple.com/documentation/FoundationModels).\n\n\u003cimg src=\"./screenshots/01.png\" width=\"320\" alt=\"01.png\"\u003e \u003cimg src=\"./screenshots/02.png\" width=\"320\" alt=\"02.png\"\u003e\n\nYou can invoke it from the menu bar, with the keyboard shortcut \u003ckbd\u003eOption–Command–/\u003c/kbd\u003e, or via the tooltip.\n\n## Installation\n\nCopy [dist/markedit-ai-writer.js](dist/markedit-ai-writer.js?raw=true) to `~/Library/Containers/app.cyan.markedit/Data/Documents/scripts/`.\n\nYou can also run `yarn install \u0026\u0026 yarn build` to build and deploy the script.\n\n## Settings\n\nIn [settings.json](https://github.com/MarkEdit-app/MarkEdit/wiki/Customization#advanced-settings), you can define a settings node named `extension.markeditAIWriter` to configure this extension, default settings are:\n\n```json\n{\n  \"extension.markeditAIWriter\": {\n    \"keyboardShortcut\": \"Mod-Alt-/\",\n    \"showsTooltip\": true,\n    \"streaming\": false,\n    \"instructions\": \"You are a writing assistant specialized in rewriting text. Always return only the rewritten or improved version of the input while strictly preserving any Markdown formatting (including headings, lists, links, and inline styles). Do not add explanations, instructions, or commentary—output only the content itself.\",\n    \"generationOptions\": {},\n    \"customWriters\": []\n  }\n}\n```\n\n- `keyboardShortcut`: The keyboard shortcut, see specs [here](https://codemirror.net/docs/ref/#view.KeyBinding).\n- `showsTooltip`: Whether to show a tooltip as an entry point.\n- `streaming`: Whether to enable output streaming.\n- `instructions`: Instructions used to create the language model session.\n- `generationOptions`: Generation options to control the output, in `{ temperature?: number; maximumResponseTokens?: number }` format.\n- `customWriters`: Pre-defined prompts, see [writers.ts](src/writers.ts) for examples.\n\n\u003e This extension requires MarkEdit 1.27.0 or later and is supported only on macOS Tahoe with Apple Intelligence enabled.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedit-app%2Fmarkedit-ai-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkedit-app%2Fmarkedit-ai-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedit-app%2Fmarkedit-ai-writer/lists"}