# simplifile

> Synchronous file and directory operations for Gleam on Erlang and JavaScript

Source: https://talira.ai/catalog/simplifile-54hpgtpk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / gleam](https://talira.ai/categories/languages/gleam)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Benjamin Peinhardt](https://talira.ai/orgs/bcpeinhardt.md)

simplifile is a [Gleam](https://talira.ai/catalog/gleam-ywzz9yr6.md) library of synchronous operations for files and directories (read, write, append and delete, plus checks for files, directories and symlinks) with one API that works on every non-browser target: Erlang, Node, Deno and Bun. It keeps to synchronous calls so the same code runs on both Erlang and JavaScript; for streaming large files its README points to file_streams.

## Links

- GitHub: https://github.com/bcpeinhardt/simplifile
- Docs: https://hexdocs.pm/simplifile/

## Problems it solves

- read and write files in Gleam code that has to run on both the BEAM and JavaScript
- do basic file operations in a Gleam script or dev tool without dealing with each target's file API
- work with files and directories from a Gleam program running on Node or Deno

## Features

- read, write, append and delete files
- operations on directories as well as files
- is_file, is_directory and is_symlink checks
- one API for Erlang, Node, Deno and Bun

## Limitations

- Synchronous only, so not suited where file operations are a performance bottleneck; doesn't run in the browser.[^1]

## Trust

Overall: 0.36 out of 1.
Signals: maintenance 0.46, adoption 0.43, momentum 0.20, community 0.54, backing 0.30, extensibility 0.00.

- last commit 32 days ago
- 1 commits in the last 90 days
- 146 GitHub stars
- 21 contributors
- backed by Benjamin Peinhardt

## Related

- Works with [Gleam](https://talira.ai/catalog/gleam-ywzz9yr6.md)

## Sources

[^1]: https://github.com/bcpeinhardt/simplifile/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/bcpeinhardt/simplifile/blob/main/LICENSE (checked 28 Nov 2026)
