Databases, stacks and files
These are planned for the first release, starting on macOS. AsBefore only touches what you've registered.
- Postgres
- Redis
- MySQL / MariaDB
- SQLite
- Docker Compose
- Files and config
In development. Not yet available.
We're building AsBefore to save your database, files and config, then bring them back with one command. It will work with any editor or AI agent.
$ asbefore save "before agent"
saved db · cache · files
# agent runs a migration, edits files
# the app is broken
$ asbefore restore latest
safety checkpoint first
db restored
cache restored
files restored
Git can bring back your committed code. Your database, uploads and containers are left as they are, and so is your .env if Git ignores it. After a bad migration or seed script, whether you ran it or an agent did, you can spend hours rebuilding.
These are planned for the first release, starting on macOS. AsBefore only touches what you've registered.
Restoring overwrites data, so we plan these checks.
Besides the command line, we're planning an MCP server and a Claude Code hook.
You list your resources in asbefore.toml and commit it with your project. Passwords stay out of it. AsBefore won't add anything you haven't listed.
[project]
name = "my-app"
[[resource]]
id = "db"
kind = "postgres"
container = "my-app-db"
database = "my_app"
user = "postgres"
[[resource]]
id = "files"
kind = "fs"
paths = ["."]
Pick the databases, files and config you care about.
Run asbefore save before you try something risky.
asbefore restore first saves the current state, then restores your resources one at a time and tells you how each one went.
Not yet. We're still building it. Join the waitlist and we'll email you when you can try it.
No. Keep using Git for your code. AsBefore is for the things Git doesn't keep.
No. The first release only works with development resources on your own machine.
Resources are restored one at a time. You'll get a report showing which ones were restored, which weren't, and which safety checkpoint to use.
It's free during the alpha.
AsBefore requires no account and includes no telemetry. The optional waitlist is hosted by Buttondown. This website uses Cloudflare Web Analytics; see the privacy notice.
Leave your email and we'll let you know.
By joining, you agree to get emails about AsBefore. We'll ask you to confirm your address, and you can unsubscribe whenever you like. See the privacy notice.