TREB logo - a leaf

Spreadsheets for web pages and web apps

TREB is a library for adding fully interactive spreadsheets to any web page, web app or blog with just a few lines of code. You can use it to illustrate data, explain a calculation, or as part of your web app.

See more examples

Easy to use

<!-- load the script from a CDN -->
<script type="module" src="https://unpkg.com/@trebco/treb"></script>
<!-- insert a spreadsheet in the page -->
<treb-spreadsheet document="/assets/income-statement.treb.json"> 
</treb-spreadsheet>
<!-- load the script from a CDN -->
<script type="module" src="https://unpkg.com/@trebco/treb"></script>
<!-- insert a spreadsheet in the page -->
<treb-spreadsheet document="/assets/income-statement.treb.json"> 
</treb-spreadsheet>

Small but powerful

Star us on Github!

We need stars on Github! If you find TREB useful or you would like to see us continue to work on it, please visit our Github page and click the Star button!