A small Cloudflare worker service, to save articles as Markdown or save them directly inside my Obsidian vault.
Development uses
wrangler
so make sure
you are authenticated properly, then run
pnpm dev
Testing is using vitest
you can run tests running the
following command, locally it will watch and on CI it will run the tests and
exit.
pnpm test
- add e2e testing using
miniflare
The repo already automatically deploys the app after every successful build on
main
using the official
wrangler-action
, a
CLOUDFLARE_API_TOKEN
variable is required for this.
If needed you can also deploy manually. But the deploy command uses
wrangler
so make sure
you are authenticated properly, then run
pnpm deploy
wrangler
will handle bundling and building for you before it deploy it.
When you land on the root route you will see a bookmarklet that you can save in your browser to be able to quickly save an article. The bookmarklet should work also in mobile browsers.
Save the article directly to your obsidian vault
Name | Example | Required | Description |
---|---|---|---|
u |
?u=https://example.com/post |
true |
The URL for the article to be saved example |
t |
?t[]=tag&t[]=tag2 |
false |
Extra tags to add to markdown frontmatter |
raw |
?raw=1 |
false |
Returns the markdown result instead of saving it inside Obsidian |
Note
Currently there are some hardcoded defaults, like the folder & a default tag
- folder:
saved-articles
- tag:
saved-articles
- @kepano for the idea
- Better logging
- Better error handling
© Ahmed El Gabri