---
title: "cellar: Spreadsheet engine in Dart | VulCode"
description: "cellar is a spreadsheet engine in pure Dart: the part of a spreadsheet that understands formulas and recalculates cells."
url: "https://vulcode.com/en/portfolio/other/cellar"
lang: "en"
---

[Other](https://vulcode.com/en/portfolio/other)

# cellar

Spreadsheet engine in Dart

A spreadsheet engine written in pure Dart, with its own formula language. It reads formulas, tracks the links between cells and recalculates only what is needed.

## About the project

cellar is a spreadsheet engine in pure Dart: the part of a spreadsheet that understands formulas and recalculates cells. It has its own formula language with a parser (a program that turns the text of a formula into a structure the engine can work with). It keeps the links between cells in a dependency graph, a map of which cell uses which. Whoever uses the engine gets a sheet where changing one value refreshes every result that depends on it.

## The challenge

The hardest part of a spreadsheet engine is recalculation: after one cell changes you must not recompute everything or work in a random order, only exactly the cells that depend on it. A custom formula language adds a parser on top, which had to be written from scratch.

## What we did

- A spreadsheet engine in pure Dart

- A custom formula language

- A parser that reads the formulas entered in cells

- A dependency graph between cells

- Recalculation of dependent cells only, in the right order

## Related projects

- [**cobalt** An embedded LSM key-value store written in Zig: a small database that ships inside a program as a library. It writes fast, protects data in a crash and reclaims disk space by itself.](https://vulcode.com/en/portfolio/other/cobalt)

- [**excache** A cache written in Elixir on the OTP actor model, for applications where many processes read and write data at once. One failing process does not stop the others.](https://vulcode.com/en/portfolio/other/excache)

- [**fluxswap** A set of smart contracts for a decentralised exchange (DEX), written in Solidity and built with Foundry. It covers liquidity pools, a router, staking and a timelock.](https://vulcode.com/en/portfolio/other/fluxswap)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
