# flatsheet

> a multi-user, realtime editor for tabular data

Latest version **0.10.1** (published 2017-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install flatsheet
pnpm add flatsheet
yarn add flatsheet
bun add flatsheet
```

Provides the command `flatsheet`.

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2017-02-28 |
| First published | 2014-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 61 |
| Known vulnerabilities | 0 (+33 in 7 direct dependencies) |
| Install scripts | no |
| GitHub stars | 200 |
| Maintainers | sethvincent, lukeswart |

## Links

- npm: https://www.npmjs.com/package/flatsheet
- Repository: https://github.com/flatsheet/flatsheet
- Homepage: http://flatsheet.io/
- Issues: https://github.com/flatsheet/flatsheet/issues
- npm.io page: https://npm.io/package/flatsheet

## Dependencies (61)

- [qs](https://npm.io/package/qs.md) ^2.4.2
- [st](https://npm.io/package/st.md) ^0.5.1
- [xhr](https://npm.io/package/xhr.md) ^1.15.0
- [body](https://npm.io/package/body.md) ^5.1.0
- [uuid](https://npm.io/package/uuid.md) ^1.4.1
- [clone](https://npm.io/package/clone.md) ^2.1.0
- [level](https://npm.io/package/level.md) ^1.6.0
- [busboy](https://npm.io/package/busboy.md) ^0.2.9
- [crypto](https://npm.io/package/crypto.md) 0.0.3
- [csskit](https://npm.io/package/csskit.md) ^1.1.0
- [domify](https://npm.io/package/domify.md) ^1.3.1
- [dotenv](https://npm.io/package/dotenv.md) ^0.4.0
- [extend](https://npm.io/package/extend.md) ^1.3.0
- [merge2](https://npm.io/package/merge2.md) ^0.3.4
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0
- [moment](https://npm.io/package/moment.md) ^2.10.2
- [prompt](https://npm.io/package/prompt.md) ^0.2.13
- [corsify](https://npm.io/package/corsify.md) ^2.0.0
- [isarray](https://npm.io/package/isarray.md) 0.0.1
- [ractive](https://npm.io/package/ractive.md) ^0.6.1
- [dom-tree](https://npm.io/package/dom-tree.md) ^1.0.0
- [domquery](https://npm.io/package/domquery.md) ^3.0.0
- [domready](https://npm.io/package/domready.md) ^1.0.7
- [minimist](https://npm.io/package/minimist.md) ^1.1.0
- [response](https://npm.io/package/response.md) git://github.com/mikeal/response.git
- [siblings](https://npm.io/package/siblings.md) ^1.0.1
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [dom-event](https://npm.io/package/dom-event.md) ^1.0.0
- [socket.io](https://npm.io/package/socket.io.md) ^1.2.0
- [JSONStream](https://npm.io/package/JSONStream.md) ^1.3.1
- [csv-parser](https://npm.io/package/csv-parser.md) ^1.5.0
- [each-async](https://npm.io/package/each-async.md) ^1.1.1
- [handlebars](https://npm.io/package/handlebars.md) ~2.0
- [jsonpretty](https://npm.io/package/jsonpretty.md) 0.0.1
- [nodemailer](https://npm.io/package/nodemailer.md) ^1.2.2
- [accountdown](https://npm.io/package/accountdown.md) ^4.0.0
- [cookie-auth](https://npm.io/package/cookie-auth.md) ^2.4.1
- [level-party](https://npm.io/package/level-party.md) ^3.0.4
- [match-routes](https://npm.io/package/match-routes.md) ^1.1.1
- [random-color](https://npm.io/package/random-color.md) 0.0.0
- [subleveldown](https://npm.io/package/subleveldown.md) ^2.0.0
- [table-editor](https://npm.io/package/table-editor.md) ^2.1.0
- [element-class](https://npm.io/package/element-class.md) ^0.1.1
- [filter-object](https://npm.io/package/filter-object.md) ^1.1.2
- [level-indexer](https://npm.io/package/level-indexer.md) ^2.0.0
- [normalize.css](https://npm.io/package/normalize.css.md) ^3.0.2
- [sticky-header](https://npm.io/package/sticky-header.md) git://github.com/sethvincent/sticky-header.git
- [combine-streams](https://npm.io/package/combine-streams.md) ^1.0.0
- [is-my-json-valid](https://npm.io/package/is-my-json-valid.md) ^2.12.0
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^1.2.0
- [stream-collector](https://npm.io/package/stream-collector.md) ^1.0.1
- [accountdown-basic](https://npm.io/package/accountdown-basic.md) ^1.0.0
- [component-closest](https://npm.io/package/component-closest.md) ^1.0.1
- [socket.io-emitter](https://npm.io/package/socket.io-emitter.md) ^0.2.0
- [accountdown-parser](https://npm.io/package/accountdown-parser.md) ^0.1.2
- [component-delegate](https://npm.io/package/component-delegate.md) ^0.2.3
- [handlebars-layouts](https://npm.io/package/handlebars-layouts.md) ^0.3.3
- [autocomplete-element](https://npm.io/package/autocomplete-element.md) ^1.0.7
- [flatsheet-api-client](https://npm.io/package/flatsheet-api-client.md) ^2.0.0
- [comma-separated-values](https://npm.io/package/comma-separated-values.md) ^3.3.0
- [nodemailer-sendgrid-transport](https://npm.io/package/nodemailer-sendgrid-transport.md) 0.0.2

## Recent versions

- 0.10.1 (latest) — 2017-02-28
- 0.10.0 — 2015-04-09
- 0.9.2 — 2015-04-04
- 0.9.1 — 2015-04-03
- 0.9.0 — 2015-04-03
- 0.8.0 — 2015-03-28
- 0.7.2 — 2015-03-28
- 0.7.1 — 2015-03-27
- 0.7.0 — 2015-03-04
- 0.6.3 — 2015-03-03
- 0.6.2 — 2015-03-03
- 0.6.1 — 2015-03-03
- 0.6.0 — 2015-02-26
- 0.5.2 — 2015-02-18
- 0.5.1 — 2015-02-18
- … 19 more at https://npm.io/package/flatsheet/versions

## README

# flatsheet

> A realtime editor for curating data as a team. [flatsheet.io](http://flatsheet.io)

- **[flatsheet on Github](http://github.com/flatsheet)**
- **[Discussions, tasks, and issue reporting](http://github.com/flatsheet/flatsheet/issues)**
- **[Chat on Gitter](https://gitter.im/flatsheet/flatsheet)**
- **[Contributing guidelines](CONTRIBUTING.md)**

[![Join the chat at https://gitter.im/flatsheet/flatsheet](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/flatsheet/flatsheet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Current status

This version of Flatsheet is an **in-progress** rewrite using Node.js. The first version of Flatsheet was a [Ruby on Rails prototype](https://github.com/flatsheet/flatsheet-prototype).

Many aspects of the project are incomplete, but things are far enough along that it will be useful if you want to install it and **experiment in a development environment**.

Want to see an early demo of the real-time editor? Go here: http://flatsheet-realtime.herokuapp.com/

### Todos:

Open issues represent current todo list: [github.com/flatsheet/flatsheet/issues](http://github.com/flatsheet/flatsheet/issues)


## Getting started

There are two ways to get flatsheet running:

## Option 1: clone the flatsheet repository

Cloning the repo is best for testing things out & developing flatsheet, but works fine for other purposes. You just have to be prepared to manually pull & merge changes to your server.

### Steps:

- clone this repo: `git clone git@github.com:flatsheet/flatsheet.git`
- change directory: `cd flatsheet`
- run `npm install`
- next you can follow the readme from here: https://github.com/flatsheet/flatsheet#create-an-admin-user

## Option 2: use flatsheet as an npm dependency

This is a good option for when you're using flatsheet in production, because you can make use of npm to install and update flatsheet.

### Steps:

- Create a directory name `flatsheet` for your project (or whatever you like)
- Change directory `cd flatsheet`
- Create a package.json file with `npm init`
- Install flatsheet with npm: `npm install flatsheet --save`
- Install the response module: `npm install response --save`

### File/folder setup
- Create a folder named `data`: `mkdir data`
- Create a app.js file with this code:

```javascript
var server = require('flatsheet')({
  site: {
    title: 'flatsheet',
    email: 'hi@example.com',
    url: 'http://127.0.0.1:3333',
    contact: 'your full name'
  },
  db: __dirname + '/data'
});

server.listen();
```

- Create a .env file for secret config like sendgrid username/password:

```
SENDGRID_USER=yourusername
SENDGRID_PASS=yourpassword
```

- Add a `flatsheet` script and a `start` script to the `scripts` field in your package.json file:

```json
"scripts": {
  "flatsheet": "flatsheet",
  "start": "node app.js"
},
```

- So your full package.json file should look something like this:

```
{
  "name": "flatsheet-example",
  "version": "1.0.0",
  "description": "",
  "main": "app.js",
  "scripts": {
    "flatsheet": "flatsheet",
    "start": "node app.js"
  },
  "author": "",
  "license": "ISC"
}
```

- next create an admin user:


### Create an admin user
- Create an admin account by running `npm run flatsheet accounts create-admin`. You'll be prompted for email, username, & password.
- You can run `npm run flatsheet accounts list` to see that your admin account was created.

### Start the server
- Now run `npm start` to start the server.
- In development you can watch the css & js using `npm run watch`.
- In development you can debug runnig `npm run-script debug`. You add breakpoints in the code with `debugger`
- Go to `http://127.0.0.1:3333` and log in with the admin account credentials.

### Create a sheet
- Log in
- Click the **New blank sheet** button
- Fill out the name and description

### Invite users
- Navigate to `http://127.0.0.1:3333/accounts/invite`
- Enter email addresses, one address per line
- Click "Send invitation"
- Users will receive an email with a link they can click to create accounts

## Support

This project is supported in part by a [code sprint grant from OpenNews](http://opennews.org/codesprints.html).

More info [at the Flatsheet blog](http://flatsheet.io/blog/getting-flatsheet-to-v1-with-help-from-opennews/).

## License

[MIT](LICENSE.md)

---
_Source: https://npm.io/package/flatsheet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
