GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - brrock/utServer: The unofficial way to self host uploadthing. Fully compatiable with uploadthing. Written in hono for fast speeds

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
prisma
prisma
 
 
storage
storage
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
bun.lock
bun.lock
 
 
compose.yml
compose.yml
 
 
genUtAPIKey.ts
genUtAPIKey.ts
 
 
index.ts
index.ts
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

utServer - The unoffical way to self host uploadthing, lightning fast

Running out of storage in uploadthing? Don't want to pay for more storage for testing? Then this is the perfect tool for you. All you need is bun and you have a quick uploadthing server, that works with the official client - out of the box, almost completely compat. We are fully compatiable with the openAPi spec.

How to run

The steps are easy, they are just a few things you have to do before you get started - these only need to be done once too

  1. Install bun
  2. Clone the repo and install deps
git clone https://github.com/brrock/utserver
cd utserver
bun i
  1. Copy .env.example to .env and edit the env variables, change the api key, base url, app id (this doesn't matter too much - just call it your app name) if you want and port if you want
  2. Generate uploadthing token, because uploadthing base64s it along some config it needs
bun bun genUtAPIKey.ts
  1. Add these to the app that uses uploadthing that you want to connect to your self hosted version - ensure you are running the latest uploadthing (this is very important, if you even want to try older versions, this requires uploadthing 7.7.3 - the core package )
UPLOADTHING_INGEST_URL="[yourbaseurl]"
UPLOADTHING_API_URL="[yourbaseurl]"
UPLOADTHING_UTFS_HOST="[yourbaseurlwithouthttporhttps]"
UPLOADTHING_UFS_HOST="[yourbaseurlwithouthttporhttps]"
UPLOADTHING_UFS_APP_ID_LOCATION=path # this is required
UPLOADTHING_TOKEN={theoneyougeneratedinstep4}
  1. Init the DB - sqlite at the moment
bun prisma db:push
  1. Run the server
bun start
# running in debug 
DEBUG=1 bun start

FAQ

  • Is this allowed by UploadThing yes, it is an allowed, the maintainers have consented
  • What clients do this support Just the js one is confirmed to work, if you want your client to work make a PR or github issue

RoadMap

  • LTS version for multiple ut versions (maintainers wanted)
  • UploadThing tests
  • S3 storage adapter
  • Vercel blob storage adapter

About

The unofficial way to self host uploadthing. Fully compatiable with uploadthing. Written in hono for fast speeds

Resources

Readme
Activity

Stars

9 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.