SP

sharzyl/pastebin-worker

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

1.1천 stars 품질 71 트렌드 43MIT

Cloudflare 작업자 Pastebin, 친숙한 CLI 사용과 풍부한 기능을 제공합니다

개요

이건 Cloudflare 작업자들에서 실행되는 파스테빈입니다. shz.al 에서 시도해 보세요. : 손쉬운 배포, 친숙한 CLI 사용, 풍부한 기능. 1. 4자로 짧은 붙여넣기 또는 맞춤형 URL로 공유하기. 1. highlight.js 기반 기반 제공. 1. 클라이언트 측 암호화. 1. 렌더링된 HTML과 함께 파일 공유 1. URL 단축기. 1. 콘텐츠 유형과 배치에 대한 스마트하고 조정 가능한 처리. 1. 붙여넣기 게시물을 직접 웹사이트(예: shz.al)에서 게시, 업데이트, 삭제할 수 있습니다. 2. 또한 사용하기 편리한 HTTP API를 제공합니다. 자세한 내용은 API 참고 자료를 참고하세요. 명령줄(curl 또는 유사 도구를 사용해)으로 API를 쉽게 호출할 수 있습니다. Cloudflare는 단일 요청 본문을 100MB로 제한하며(플랫폼은 작업 시작 전에 HTTP 413을 반환합니다) — 더 큰 파일은 웹사이트나 아래 PB CLI를 사용하세요. 이 도구는 업로드를 투명하게 청크합니다. 3. pb는 파이썬 스크립트입니다 (파이썬 필요 3.

개요(AI 번역)

이건 Cloudflare 작업자들에서 실행되는 파스테빈입니다. shz.al 에서 시도해 보세요.

철학: 손쉬운 배포, 친숙한 CLI 사용, 풍부한 기능.

특징:

  1. 붙여넣기를 4자로 공유하거나 맞춤 URL로 공유하세요.
  2. 문법 강조 highlight.js.
  3. 클라이언트 측 암호화.
  4. 렌더링된 HTML과 함께 markdown 파일을 공유합니다.
  5. URL 단축기.
  6. 라이브 붙여넣기: /live# 링크를 공유하고 텍스트나 파일을 실시간으로 종단 간 암호화로 모든 사용자에게 게시하세요.
  7. Content-Type 및 Content-Disposition의 스마트하고 조정 가능한 핸들링.

사용

  1. 붙여넣기 게시물을 직접 웹사이트(예: shz.al)에서 게시, 업데이트, 삭제할 수 있습니다.

  2. 또한 사용하기 편리한 HTTP API를 제공합니다. 자세한 내용은 API 참고 문서를 참조하세요. 명령줄(curl 또는 유사 도구를 사용해)으로 API를 쉽게 호출할 수 있습니다. Cloudflare는 단일 요청 본체를 100MB로 제한하며(플랫폼은 작업자가 실행하기 전에 HTTP 413를 반환합니다) — 더 큰 파일은 웹사이트나 아래 pb CLI를 사용하세요. 이 CLI는 업로드를 투명하게 청크합니다.

  3. pb는 파이썬 스크립트입니다 (파이썬 필요 3.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Pastebin Worker

This is a pastebin running on Cloudflare workers. Try it on shz.al.

Philosophy: effortless deployment, friendly CLI usage, rich functionality.

Features:

  1. Share your paste with as short as 4 characters, or even customized URL.
  2. Syntax highlighting powered by highlight.js.
  3. Client-side encryption.
  4. Share markdown file with rendered HTML.
  5. URL shortener.
  6. Live pastebin: share a /live# link and post text or files to everyone on it in real time, end-to-end encrypted.
  7. Smart and tweakable handling for Content-Type and Content-Disposition.

Usage

  1. You can post, update, delete your paste directly on the website (such as shz.al).

  2. It also provides a convenient HTTP API to use. See API reference for details. You can easily call API via command line (using curl or similar tools). Note that a single request body is capped at 100 MB by Cloudflare (the platform returns HTTP 413 for larger bodies before the worker runs) — for larger files, use the website or the pb CLI below, which transparently chunk the upload.

  3. pb is a Python script (requires Python 3.9+ with the requests package) to make it easier to use on command line; it automatically switches to multipart upload above 5 MiB and shows a progress bar.

  4. doc/skill.md is a concise, AI-agent-oriented packaging of the API. Make it available to your coding agent so it can upload, fetch, and manage pastes via this service.

Deploy

You are free to deploy the pastebin on your own domain if you host your domain on Cloudflare.

  1. Install node and pnpm.

  2. Clone the repository and enter the directory.

  3. Create a KV namespace and R2 bucket, fill the KV namespace ID and R2 bucket name in wrangler.toml.

$ pnpm wrangler kv namespace create PB
$ pnpm wrangler r2 bucket create 
  1. Modify entries in wrangler.toml. Its comments will tell you how.

  2. Login to Cloudflare and deploy with the following steps:

$ pnpm install
$ pnpm wrangler login
$ pnpm build:frontend
$ pnpm deploy
  1. Enjoy!

Cost

The service runs on Cloudflare Workers, Workers KV, R2, and Durable Objects. Each has a free tier; beyond it you pay only for what you use. Figures below are accurate as of writing — prices change, so confirm against the official pricing pages before relying on them:

  • Workers — request routing and execution. Egress is free.
    • Free plan: 100 k requests/day, 10 ms CPU per invocation.
    • Paid plan ($5/mo base): 10 M requests/month + 30 M ms CPU/month included, then $0.30 per additional M requests and $0.02 per additional M CPU-ms. Also unlocks the higher KV limits below (KV has no separate paid plan).
  • Workers KV — small pastes and per-paste metadata.
GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add sharzyl/pastebin-worker
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →