An open API service indexing awesome lists of open source software.

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

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)