TREB Spreadsheets

TREB is a library providing embeddable spreadsheets for any web page or web app. It's open source and available free of charge.

Comprehensive spreadsheet library

Fully programmable

Easy to use

Quick start

HTML using a CDN

<html lang="en">
  <head>
    <script type="module">
      // load script from CDN
      import {TREB} from 'https://unpkg.com/@trebco/treb';
    </script>
  </head>
  <body>

  <!-- add a spreadsheet to the page -->
  <treb-spreadsheet></treb-spreadsheet>

  </body>
</html>
Example page

Typescript using a local module


// import library (npm add @trebco/treb)
import { TREB } from '@trebco/treb';

// an html element to hold the spreadsheet
const container = document.querySelector('#spreadsheet');

// type EmbeddedSpreadsheet
const sheet = TREB.CreateSpreadsheet({
  container,
  // ...options...
});
Example page

Get TREB

Install with npm

npm install @trebco/treb

Source code

https://github.com/trebco/treb