npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

minicloud

v0.0.10

Published

file hybrid cloud management software,support docx/doc/pptx/ppt/xlsx/xls/pdf online browse view and full text search

Downloads

14

Readme

build status Test coverage devDependency Status

minicloud

minicloud based on node.js, providing efficient file storage server.

you can easily integrate existing app nodejs with minicloud.

About client(include web/desktop/mobile client)

minicloud is hybrid cloud model.files are stored on own servers, while minicloudjs.com management desktop client&mobile client&web client.

Example

Create file index.js

require('co').wrap(function*(){
	var app = yield require('minicloud')()
	app.listen(8030)
})()

Installation package

$ npm install minicloud co
中国大陆用户建议下面方式安装依赖(cnpm 详情见:http://npm.taobao.org/)
$ cnpm install minicloud co

Initialize sqlite database file(Just one time)

$ node ./node_modules/minicloud/install.js 

Run Server

$ node index.js 

Run Test

//register user
curl -X POST http://127.0.0.1:8030/api/v1/users/register \
    --header "Content-Type: application/json" \
    --data "{\"name\":\"zhangsan\",\"nick\":\"xiaozhang\",\"password\":\"8k9v6n\",\"email\":\"[email protected]\"}"

//login 
curl -X POST http://127.0.0.1:8030/api/v1/oauth2/token \
    --header "Content-Type: application/json" \
    --data "{\"name\":\"zhangsan\",\"password\":\"8k9v6n\",\"device_name\":\"test-pc\"}"

//If successful, there will be the following information output
{"token_type":"bearer","access_token":"xxxxx","expires_in":3600}

API documentation

minicloud api documents has provided 60 API.it's compatible websocket.

  • cover departments, groups, users, user devices, files, file tags,login/logout events,file operate events

  • support file hash upload,large file block upload,simple file upload

  • support return thumbnail for an image.support ai,bmp,eps,gif,jpg,jpeg,png,psd,tif,tiff

  • 330+ test case(大陆用户需翻墙)

  • support docx/doc/pptx/ppt/xlsx/xls/pdf online browse view(todo list)

  • support txt/docx/doc/pptx/ppt/xlsx/xls/pdf full text search(todo list)

  • support socket.io,http api can seamless convert to websocket.demo>>

SDK

minicloud-js-sdk websocket api sdk.compatible browserify,support:ie10+,chrome,firefox.

About supported database

minicloud base on sequelize.It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.

About Node version

minicloud is supported in all versions of iojs without any flags. To use minicloud with node, you must be running node 0.12.0 or higher for generator and promise support, and must run node(1) with the --harmony-generators or --harmony flag.

node 0.12+ MySQL MariaDB SQLite PostgreSQL MSSQL

iojs 1.x MySQL MariaDB SQLite PostgreSQL MSSQL

iojs 2.x MySQL MariaDB SQLite PostgreSQL MSSQL

iojs 3.x MySQL MariaDB SQLite MSSQL

node 4.x MySQL MariaDB SQLite MSSQL

Examples

koa app integrate with minicloud+sqlite/mysql/postgres/mssql

Todo list

  • web client
  • pc client(windows/mac/linux)

License

MIT