All Projects β†’ sergiodxa β†’ Now Storage

sergiodxa / Now Storage

Licence: mit
Use Now static deployments to upload and store files.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Now Storage

gasper
Gasper is a CLI for safe, privacy-aware file storage based on Shamir's Secret Sharing
Stars: ✭ 37 (-59.34%)
Mutual labels:  storage, file-upload
Covid19 Brazil Api
API com dados atualizados sobre o status do COVID-19 🦠
Stars: ✭ 300 (+229.67%)
Mutual labels:  now, zeit
now-course
Proyecto para el curso de Now.sh en Platzi
Stars: ✭ 19 (-79.12%)
Mutual labels:  now, zeit
now dashboard
β–²ZEIT dashboard written in elm
Stars: ✭ 52 (-42.86%)
Mutual labels:  now, zeit
Vercel Builder
Vercel Builder for Nuxt.js
Stars: ✭ 437 (+380.22%)
Mutual labels:  now, zeit
now-docs
[WIP] Deploy docs with a single command using Now
Stars: ✭ 45 (-50.55%)
Mutual labels:  now, zeit
Shrine
File Attachment toolkit for Ruby applications
Stars: ✭ 2,903 (+3090.11%)
Mutual labels:  storage, file-upload
now-custom-runtime
ZEIT Now v2.0 builder for custom AWS Lambda runtimes
Stars: ✭ 21 (-76.92%)
Mutual labels:  now, zeit
Vercel Php
β–² Vercel PHP runtime β€’ vercel-php β€’ now-php β€’ 🐘+ Ξ» = ❀
Stars: ✭ 429 (+371.43%)
Mutual labels:  now, zeit
Micro Proxy
[DEPRECATED] Simplest proxy server for microservices
Stars: ✭ 358 (+293.41%)
Mutual labels:  now, zeit
docker-craft-nginx
🐳 A minimal Docker container for Craft CMS, intended for use with zeit-now.
Stars: ✭ 26 (-71.43%)
Mutual labels:  now, zeit
Jwt Example
Playing with user registration, login/logout, auth, etc using JWTs, serverless functions & faunadb as the data store.
Stars: ✭ 22 (-75.82%)
Mutual labels:  now, zeit
now-compose
Docker compose for zeit now. [deprecated]
Stars: ✭ 80 (-12.09%)
Mutual labels:  now, zeit
notion-custom-domain
πŸ“ Custom domains for your public Notion pages
Stars: ✭ 23 (-74.73%)
Mutual labels:  now, zeit
mailto
πŸ’Œ ⚑️ The mailto encoder
Stars: ✭ 157 (+72.53%)
Mutual labels:  now, zeit
kipp
A flexible file storage server
Stars: ✭ 33 (-63.74%)
Mutual labels:  storage, file-upload
Temps
Ξ» A selfhostable serverless function runtime. Inspired by zeit now.
Stars: ✭ 15 (-83.52%)
Mutual labels:  now, zeit
micro-unfurl
Small microservice that unfurls a URL and returns the OpenGraph meta data
Stars: ✭ 28 (-69.23%)
Mutual labels:  now, zeit
Meteor Now
Instantly deploy your Meteor apps with `meteor-now`
Stars: ✭ 339 (+272.53%)
Mutual labels:  now, zeit
Now Builders
Official Now Builders created by the ZEIT team
Stars: ✭ 483 (+430.77%)
Mutual labels:  now, zeit

Now Storage

Use Now static deployments to upload and store files.

Usage

Install it with yarn

yarn add now-storage

Or with npm

npm i now-storage

Then load it inside your app.

const { upload } = require('now-storage');

And call the upload function with your the Now token and the file to upload.

const { url } = await upload(process.env.NOW_TOKEN, {
  name: 'my-file.txt',
  content: 'This is a file uploaded with now-storage.'
});

The url is going to be a string similar to http://now-storage-bmjowtcani.now.sh/.

Configuration

All the deployments are going to have the name now-storage and the upload function is going to retry maximum 3 times to upload the file and another 3 times to create the deployment.

That could be configured passing a third argument to the upload method with an object using the following format.

await upload(process.env.NOW_TOKEN, {
  name: 'my-file.txt',
  content: 'This is a file uploaded with now-storage.'
}, {
  deploymentName: 'now-storage',
  retry: {
    retries: 3
  }
});

That's the default configuration, the retry key could receive any configuration from async-retry.

To deploy to a team account instead of your personal account add teamId to the config.

await upload(process.env.NOW_TOKEN, {
  name: 'my-file.txt',
  content: 'This is a file uploaded with now-storage.'
}, { teamId: 'my-awsm-team' });
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].