An open API service indexing awesome lists of open source software.

https://github.com/cartersusi/bstorejs-react

Server Actions and Components for Bstore, a simple blob store.
https://github.com/cartersusi/bstorejs-react

blob blob-storage components go nextjs npm-package react server-actions

Last synced: 8 months ago
JSON representation

Server Actions and Components for Bstore, a simple blob store.

Awesome Lists containing this project

README

          


Bstore Logo

Bstore


A simple blob storage.


[![bstore](https://img.shields.io/badge/go-bstore-00ADD8?style=flat-square&logo=go)](https://github.com/cartersusi/bstore)
[![NPM Package](https://img.shields.io/badge/npm-bstorejs-red?style=flat-square&logo=npm)](https://www.npmjs.com/package/bstorejs)
[![React Package](https://img.shields.io/badge/react-bstorejs--react-61DAFB?style=flat-square&logo=react)](https://www.npmjs.com/package/bstorejs-react)
[![Demo](https://img.shields.io/badge/demo-bstorejs--demo-brightgreen?style=flat-square)](https://github.com/cartersusi/bstore-demo)

### Install
```sh
npm i bstorejs-react
```

### Import
```ts
import { Put, Get, Del } from 'bstorejs-react'; //Functions
import { BstoreImage, BstoreVideo, BstoreApplication } from 'bstorejs-react'; // Component
```

### Functions

```ts
// Upload a File
const res = await Put(file.name, file, 'public');

// Download a File
const res = await Get(file.name, 'public');

// Delete a File
const res = await Del(file.name, 'public');
```

### Components

1. Image

```tsx
return (

)
```

2. Video
```tsx
return (

)
```

3. Application
```tsx
return (

)
```