https://github.com/darkskygit/markdownify
Make any url Markdownify at serverless
https://github.com/darkskygit/markdownify
cloudflare-workers html markdown serverless worker
Last synced: 8 months ago
JSON representation
Make any url Markdownify at serverless
- Host: GitHub
- URL: https://github.com/darkskygit/markdownify
- Owner: darkskygit
- Created: 2024-04-15T16:05:29.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T17:05:23.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T13:18:14.062Z (over 1 year ago)
- Topics: cloudflare-workers, html, markdown, serverless, worker
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Markdownify
converts any URL to an LLM-friendly input with simple request, run in Cloudflare Worker at no cost and easy to deploy.
Inspire by [reader](https://github.com/jina-ai/reader)
Demo: https://markdownify.darksky2048.workers.dev/api/markdown?url=some-url
- [markdownify github docs](https://markdownify.darksky2048.workers.dev/api/markdown?url=https://docs.github.com/en/get-started/start-your-journey/about-github-and-git)
- [markdownify about google](https://markdownify.darksky2048.workers.dev/api/markdown?url=https://about.google)
- [markdownify twitter](https://markdownify.darksky2048.workers.dev/api/markdown?url=https://x.com/elonmusk)
## Usage
```bash
curl https://markdownify.YOUR-USERNAME.workers.dev/api/markdown?url=https://about.google
```
## Install
You will need the following tools to run the project:
Node v20
```bash
# prepare the environment
corepack enable pnpm
pnpm install
# login your cloudflare account
npx wrangler login
# publish the worker
pnpm run deploy
# test the worker
curl https://markdownify.YOUR-USERNAME.workers.dev/api/markdown?url=https://about.google
```
## License
[AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html)