Priena

In development

JavaScript spreadsheet component

Agentic spreadsheet engine for web apps.

Framework-agnostic spreadsheet library for editable data grids and large datasets.

  • JavaScript
  • Canvas
  • Editable
  • Large data
  • Server-side
  • Framework-agnostic

Canvas

A million rows, smooth.

Cells are painted on a canvas, never mounted: a frame's work follows the screen, not the data.

Interface

The spreadsheet people already know.

Select, type, copy and paste. Keys and gestures work the way they do in Excel and Google Sheets.

  1. Editing

    Type over a cell or open it to edit. Enter, Tab and the arrow keys move the way people expect.

  2. Copy and paste

    Paste from Excel, Google Sheets or plain text. Copy back out the same way.

  3. Sorting

    Sort A to Z or Z to A, or by several columns at once.

  4. Sheets

    A workbook holds many sheets in tabs. Add, rename and delete them.

Engine

People and AI agents, together.

A person, your code and an agent change the sheet through the same commands, checked by your policy and undone as one.

Priena

A full spreadsheet inside your app.

Priena is framework agnostic, has no dependencies, and is built for people and AI agents alike.

  • People and AI together

    A click and a tool call become the same command. Both follow your rules, and both can be undone.

  • With or without a screen

    The workbook runs in the browser, in Node and in a Web Worker. Show it in a grid when someone needs to see it.

  • Framework agnostic

    Plain TypeScript at the core. Adapters for React, Vue and Angular fit it into your stack.

  • Zero dependencies

    Priena installs nothing else. Your bundle carries the grid and only the grid.

Performance

Built for millions of rows.

Priena paints cells on a canvas. Each frame works only on what is on screen, so millions of rows scroll as smoothly as a hundred.

  • Canvas rendering

    Cells are drawn, so scrolling stays smooth however large the data grows.

  • Data from your server

    Rows load from your server as they scroll into view. Priena asks only for what the screen needs.

  • Steady memory

    Rows far out of view are let go, so memory stays flat on any dataset.

  • Large edits

    Paste a hundred thousand cells as one operation, and undo it in one step.

Formulas

Formulas across sheets.

Write formulas the way people write them in Excel. Reference a cell on the same sheet or on any other sheet in the workbook.

  • Familiar syntax

    Start with an equals sign. References, ranges and functions read as they do in Excel.

  • Cross-sheet references

    Point a formula at another sheet by its name.

  • Live results

    A result updates the moment a cell it reads changes.

  • One undo

    A formula is a change like any other, undone in one step.

Customization

Your styles. Your language.

Priena takes on the look of your product and speaks the language of your users.

  • CSS variables

    Set one brand colour and the grid follows, from the cells to the menus and dialogs.

  • Light and dark

    Priena follows the page's color-scheme. Dark mode needs no second theme.

  • Every language

    Translate every word of the interface. English and Arabic come built in.

  • Right to left

    Columns, menus, selection and arrow keys follow the direction of Arabic, Hebrew and Persian.

AI

Bring your own AI.

Priena gives a language model tools to read and change the workbook. Use any model that calls tools, with your own keys, on your own servers.

  1. The agent reads

    It reads the cells it needs, with the row numbers the person sees.

  2. The agent acts

    Each change goes through the same commands as a person's. Your policy decides what people and agents may do.

  3. The person approves

    Changes you mark wait for the person's approval. Each request is one undo.

  4. Stale changes stop

    If the person sorts or edits while the agent works, a change based on old data is refused.

Developers

One API for every framework.

Mount the grid with one call, or use the adapter for your framework. The options are the same everywhere.

  • Adapters

    React, Vue and Angular. Each maps its props to the grid's options one to one.

  • Live options

    Change any option at any time. The person's selection, sort and column widths stay as they are.

  • Typed

    Written in TypeScript, with types for every option, command and event.

  • Commands for your code

    Your code changes the workbook through the same commands as people, with the same undo.

Status

In development.

Priena is being built step by step. Follow the work on the blog.

Read the blog