Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

halfbin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

halfbin

Half(backend) of a bin website

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AnyBin

A boilerplate bin website for saving text in a database and access it with a short URL. Very similar to PasteBin or JSBin. This is mostly back-end implementation of the website. Front-end is very simple.

Try a version of the app running here

Work in progress

Features

  • Automatically saves document changes in the database
  • Automatically makes a new version each time user saves a bin
  • Import from another page on the web with ?import query parameter. Example: http://anybin.herokuapp.com/?import=https://raw.githubusercontent.com/mohsen1/anybin/master/README.md
  • Client side cache of recently made versions

Running locally

git clone git@github.com:mohsen1/anybin.git
cd anybin
npm install
npm run dev

Server command line options

  • config for selecting the configuration file
  • views for selecting the folder to look for index.ejs file
  • public for selecting public content folder
  • db MongoDB URL, it will override database URLs in config.js
Example
$ node app/server.js \
  --config='/path/to/my/config.js' \
  --views='/path/to/my/views-folder/' \
  --public='/path/to/my/public-folder' \
  --db='mongodb://user:pass@me.dbhost.com:9999/my-db'

Routes

Website
OperationPathDescription
GET/Load homepage
GET/?import=urlLoad homepage and import from url
GET/:idLoad a bin
GET/:id/:versionLoad a bin at a version
API
OperationPathDescription
POST/api/Make a new Bin
POST/api?import=urlMake a new Bin form url
GET/api/:idGet latest version of a bin
PUT/api/:idUpdate latest version of a bin
POST/api/:idAdd a new version to a bin
GET/api/:/id/:versionGet a specific version of a bin

License

MIT

FAQs

Package last updated on 21 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc