Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ API_TOKEN=change-me
# MAX_MULTIPART_MB=95
# MAX_STREAM_MB=500

# Who runs this instance (footer and page metadata), and where your source code is (AGPL section 13).
# Who runs this instance (footer and page metadata), and where your source code is (the footer source link).
# OPERATOR_NAME=Jane Doe
# OPERATOR_URL=https://example.com
# OPERATOR_PLACE=Berlin
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ You're welcome to use AI assistants, the same way you'd use an editor or a linte

Issues, comments and pull requests that an agent wrote and posted on its own, with nobody actually involved, will be closed. This isn't about the tool. We'd like to get to know the people who work on this project.

By contributing, you agree that your contributions are licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
By contributing, you agree that your contributions are licensed under the MIT License.
256 changes: 21 additions & 235 deletions LICENSE

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Private file sharing on Cloudflare. Upload, get a link, it expires. Malware and content checks built in.

**Live:** [drop.shiftbloom.studio](https://drop.shiftbloom.studio) · **License:** AGPL-3.0-or-later
**Live:** [drop.shiftbloom.studio](https://drop.shiftbloom.studio) · **License:** MIT

drop is where shiftbloom studio's screenshots go before they get sent anywhere. It's one Cloudflare Worker, or one Node.js process if you'd rather run it yourself. Files land in R2 (or a folder on disk) and you get back a five-character link on your own domain. Text pastes and short URLs use the same kind of link, and ShareX can upload to it directly.

Expand Down Expand Up @@ -78,7 +78,7 @@ Settings that both share (vars on Cloudflare, environment variables on Node.js):
| `API_TOKEN` | required, master token (a secret on Cloudflare) |
| `MAX_MULTIPART_MB` / `MAX_STREAM_MB` | upload limits, default `95` / `500` |
| `OPERATOR_NAME`, `OPERATOR_URL`, `OPERATOR_PLACE` | who runs the instance, shown in the footer and the page metadata. Without them the pages name nobody. |
| `SOURCE_URL` | where your copy of the code lives (AGPL section 13). Defaults to this repository. |
| `SOURCE_URL` | where your copy of the code lives (the footer source link). Defaults to this repository. |
| `ABUSE_EMAIL`, `LEGAL` | report link and legal pages, see [Legal pages](#legal-pages) |
| `MB_AUTH_KEY` | optional MalwareBazaar lookups |
| `TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET` | optional [token requests](#token-requests) and [public uploads](#public-uploads) |
Expand Down Expand Up @@ -350,9 +350,9 @@ Please don't report vulnerabilities in public issues. Use GitHub's private vulne

Copyright © 2026 shiftbloom studio and contributors.

drop is free software: you can redistribute it and/or modify it under the terms of the [GNU Affero General Public License](LICENSE) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
drop is free software: you can redistribute it and/or modify it under the terms of the [MIT License](LICENSE).

If you run a modified version for others over a network, AGPL section 13 requires you to offer those users your source code. The footer's *source* link exists for this. Set `SOURCE_URL` to your fork.
The footer *source* link points at this repository. Set `SOURCE_URL` to your fork.

---

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"private": true,
"type": "module",
"license": "AGPL-3.0-or-later",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/shiftbloom-studio/drop.git"
Expand Down
2 changes: 1 addition & 1 deletion src/bloom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: MIT
// The shiftbloom bloom, exactly as shiftbloom.studio draws it (brand book v2, "The Mark").
// viewBox 0 0 200 200, four interleaved petal rings + seed. Gradient only inside the mark.
// Sizes >= 32px use the gradient; below that (favicons) use the solid variant.
Expand Down
2 changes: 1 addition & 1 deletion src/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Who runs this instance and where its source lives. Everything here comes from config
* (Worker vars or environment variables), so a self-hosted copy never shows someone else's name.
*
* - SOURCE_URL: the code users are offered under AGPL section 13. Point it at your fork.
* - SOURCE_URL: the code users are offered under the footer source link. Point it at your fork.
* - OPERATOR_NAME, OPERATOR_URL, OPERATOR_PLACE: shown in the footer and as publisher in the metadata.
* - BRAND=shiftbloom: the upstream preset (shiftbloom studio wordmark and copy), used by drop.shiftbloom.studio.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/frames.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: MIT
/** Structure checks for anonymous image uploads, with no bindings: where an image really ends, how many
* frames a GIF has, and every frame of a GIF as a small PNG for the sensitive content check.
* Unit-tested in test/frames.test.ts. */
Expand Down
8 changes: 4 additions & 4 deletions src/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ function operatorMark(cls = "sb") {

const topbar = (right = "") => `<header class="top"><a class="brand" href="/" aria-label="${esc(BRAND.operator ? `drop - ${BRAND.operator.name}` : "drop")}">${bloom({ size: 30, id: "tb" })}<span class="word">drop<i>.</i></span></a>${right}</header>`;

/** AGPL §13: users interacting over a network must be offered the source. Set SOURCE_URL to your fork. */
/** Source link: users interacting over a network must be offered the source. Set SOURCE_URL to your fork. */
const sourceUrl = () => BRAND.sourceUrl;

const footer = (lang: "en" | "de" = "en") => `<footer class="foot"><p>${lang === "de" ? "drop ist Open Source unter AGPL-3.0." : "drop is open source under AGPL-3.0."} <a href="${esc(sourceUrl())}">${lang === "de" ? "Zum Code" : "Read the code"}</a>${UI.legal ? (lang === "de" ? ` · <a href="/nutzungsbedingungen">Nutzungsbedingungen</a> · <a href="/inhaltsrichtlinie">Inhaltsrichtlinie</a> · <a href="/datenschutz">Datenschutz</a> · <a href="/impressum">Impressum</a>` : ` · <a href="/terms">Terms</a> · <a href="/content-policy">Content policy</a> · <a href="/privacy">Privacy</a> · <a href="/imprint">Imprint</a>`) : ""}</p>${BRAND.operator ? `<p>${operatorMark()}${BRAND.operator.place ? ` · ${esc(BRAND.operator.place)}` : ""}</p>` : ""}</footer>`;
const footer = (lang: "en" | "de" = "en") => `<footer class="foot"><p>${lang === "de" ? "drop ist Open Source unter der MIT-Lizenz." : "drop is open source under the MIT License."} <a href="${esc(sourceUrl())}">${lang === "de" ? "Zum Code" : "Read the code"}</a>${UI.legal ? (lang === "de" ? ` · <a href="/nutzungsbedingungen">Nutzungsbedingungen</a> · <a href="/inhaltsrichtlinie">Inhaltsrichtlinie</a> · <a href="/datenschutz">Datenschutz</a> · <a href="/impressum">Impressum</a>` : ` · <a href="/terms">Terms</a> · <a href="/content-policy">Content policy</a> · <a href="/privacy">Privacy</a> · <a href="/imprint">Imprint</a>`) : ""}</p>${BRAND.operator ? `<p>${operatorMark()}${BRAND.operator.place ? ` · ${esc(BRAND.operator.place)}` : ""}</p>` : ""}</footer>`;

// ---------- landing ----------

Expand All @@ -118,7 +118,7 @@ function landingMeta(origin: string) {
operatingSystem: "Web, Windows (ShareX)",
inLanguage: "en",
isAccessibleForFree: true,
license: "https://www.gnu.org/licenses/agpl-3.0.html",
license: "https://opensource.org/licenses/MIT",
offers: { "@type": "Offer", price: "0", priceCurrency: "EUR" },
...(o ? { publisher: { "@type": "Organization", ...(o.url ? { "@id": `${trimTrailingSlashes(o.url)}/#org` } : {}), name: o.name, ...(o.url ? { url: o.url } : {}) } } : {}),
sameAs: [sourceUrl()],
Expand Down Expand Up @@ -459,7 +459,7 @@ body{width:1200px;height:630px;overflow:hidden}
export function llmsTxt(origin: string) {
return `# drop

> drop is a small, self-hostable file host, pastebin and URL shortener${BRAND.operator ? `, run here by ${BRAND.operator.name}` : ""}. It runs on Cloudflare Workers or as a Node.js server. Licensed AGPL-3.0-or-later.
> drop is a small, self-hostable file host, pastebin and URL shortener${BRAND.operator ? `, run here by ${BRAND.operator.name}` : ""}. It runs on Cloudflare Workers or as a Node.js server. Licensed MIT.

- Purpose: share screenshots, files, text snippets and long URLs as short links; built for ShareX, works with curl.
- Limits: ${UI.public ? "visitors without a token can upload images and plain text through the start page (Turnstile check, per-IP limits, deleted after 12 hours at the latest); everything else needs an API token" : "uploads need the owner's API token (this is not a public anonymous upload service)"}; viewing is open only to whoever has a link, there is no public listing; items can expire (10m to 1y or never); multipart uploads up to 95 MB, raw PUT up to 500 MB.
Expand Down
2 changes: 1 addition & 1 deletion wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"vars": {
"MAX_MULTIPART_MB": "95",
"MAX_STREAM_MB": "500"
// Optional: who runs this instance (footer, page metadata) and where your source is (AGPL section 13).
// Optional: who runs this instance (footer, page metadata) and where your source is (the footer source link).
// "OPERATOR_NAME": "Jane Doe", "OPERATOR_URL": "https://example.com", "OPERATOR_PLACE": "Berlin",
// "SOURCE_URL": "https://github.com/you/drop",
// Optional: shows "Report this file" on item pages.
Expand Down
Loading