https://github.com/o-az/shuttle
JSON share service - Save and share JSONs
https://github.com/o-az/shuttle
json share
Last synced: over 1 year ago
JSON representation
JSON share service - Save and share JSONs
- Host: GitHub
- URL: https://github.com/o-az/shuttle
- Owner: o-az
- License: gpl-3.0
- Created: 2023-07-28T03:39:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T01:24:35.000Z (almost 3 years ago)
- Last Synced: 2025-03-19T03:54:08.039Z (over 1 year ago)
- Topics: json, share
- Language: TypeScript
- Homepage: https://shuttle.deno.dev
- Size: 96.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_❗🚧: This is a playground project at the moment. Don't store anything important here. Any data may be deleted at any time._
# Shuttle 🚀
### JSON share service - Save and share JSONs
### Usage
#### **Markdown render**
_`GET /:id`_ # gets record and renders markdown. Example:
[`https://shuttle.deno.dev/01H6D5KXV3FNDW7CQAABS27W86`](https://shuttle.deno.dev/01H6D5KXV3FNDW7CQAABS27W86)
#### **JSON API**
_`GET /api/:id`_ # gets record. Example:
[`https://shuttle.deno.dev/api/01H6D5KXV3FNDW7CQAABS27W86`](https://shuttle.deno.dev/api/01H6D5KXV3FNDW7CQAABS27W86)
_`POST /api/new`_ # creates new record with JSON body. Example:
```sh
curl --request POST \
--url https://shuttle.deno.dev/api/new \
--data '{"foo":"bar"}'
# returns new record id
```
_`POST /api/new/file`_ # creates new record with JSON uploaded as a file. Example:
```sh
curl --request POST \
--url https://shuttle.deno.dev/api/new/file \
--form 'file=@/path/to/file.json'
# returns new record id
```
_`GET /api/new/:encoded-content`_ # creates new record with base64 encoded content. Example:
[`https://shuttle.deno.dev/api/new/eyJmb28iOiJiYXIifQ==`](https://shuttle.deno.dev/api/new/eyJmb28iOiJiYXIifQ==)
```sh
curl --request GET \
--url "https://shuttle.deno.dev/api/new/$(echo '{"foo":"bar"}' | base64)"
# returns new record id
```
### Stack
- Language: [TypeScript Deno](https://deno.land)
- Storage: [libsql](https://libsql.org)
- Storage Provider: [Turso](https://turso.tech)
- Web Framework: [Hono](https://hono.dev)
- Deployment: [Deno Deploy](https://deno.com)
### License
[GPL-3.0-or-later](https://www.gnu.org/licenses/gpl-3.0.en.html)