github.com/dcdunkan/telegraph

Telegra.ph API wrapper for JavaScript

Open this visualization on its own page →

Contributors

2

Lines of Code

22

From

2022-01-11

To

2022-07-21

About dcdunkan/telegraph

Telegraph is a TypeScript wrapper for the Telegraph API, a minimalist publishing platform by Telegram that lets users create richly formatted articles and share them on the web. The library provides a convenient interface for interacting with Telegraph's core features, making it easier to build applications that programmatically create and manage Telegraph articles.

Beyond basic API access, the library includes several developer-friendly enhancements. It supports parsing HTML and Markdown content directly into Telegraph's native Node format, with Markdown converted through HTML as an intermediate step. The library also wraps an undocumented Telegraph endpoint for uploading media files, allowing images and videos to be uploaded alongside articles. Additionally, it provides helper functions and built-in documentation accessible through editor tooltips.

This package is designed for Deno and JavaScript environments, with the source written in TypeScript. It uses the marked library for Markdown parsing and deno-dom for HTML processing. The project is published on JSR and distributed under the MIT license.

Share this video