https://github.com/amycatgirl/tempstore
no nonsense, self-hostable temporary file service
https://github.com/amycatgirl/tempstore
deno file-sharing temporary-files typescript
Last synced: 5 months ago
JSON representation
no nonsense, self-hostable temporary file service
- Host: GitHub
- URL: https://github.com/amycatgirl/tempstore
- Owner: amycatgirl
- License: mit
- Created: 2024-05-14T12:15:33.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-10-31T20:28:40.000Z (8 months ago)
- Last Synced: 2025-10-31T22:13:42.136Z (8 months ago)
- Topics: deno, file-sharing, temporary-files, typescript
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tempstore
no nonsense, self-hostable temporary file service
## running
create a folder called `tmpst` at the root of this repository, then run
```bash
DOMAIN="https://example.com" just run
```
or
```bash
DOMAIN="https://example.com" deno task start
```
If you want to use a custom port, edit the `PORT` environment variable
```bash
PORT="3000" deno task start
```
### docker/podman
an image for docker/podman containers is available at `ghcr.io/amycatgirl/tempstore:latest`
set the `DOMAIN` environment variable to the domain you are using to host tempstore.
## usage
go to `localhost:5544`
upload file
use id with the `/object/:id` route (replace `:id` with your id)
## API
### create a new object/file
route: `/api/object`
method: `POST`
content Type: `multipart/form-data`
body
- `file`: self-explanatory
- `until`: Amount of time to store the file for (in hours)
### get object/file
route `/api/object/:id`
method: `GET`
## demostration
[simplescreenrecorder-2024-06-03_10.43.30.webm](https://github.com/amycatgirl/tempstore/assets/138383945/a97d85c7-729d-4e33-83fd-6c5af770d2fa)