128
Environment variables as a table with a column per environment: secrets masked until you reveal them, click-to-edit cells, paste a whole .env to bulk import, and every unsaved edit tinted until you save or discard.
akaenvironment variables·env·dotenv
Run this in any project set up for the shadcn CLI. It copies the Env Editor source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/env-editor.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { EnvEditor } from "@/components/env-editor";
export default function Page() {
return <EnvEditor />;
}A free React component in the Dev Tools collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Env Editor source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| environmentsrequired | EnvEnvironment[] | — |
| variablesrequired | EnvVariable[] | — |
| project | string | — |
| onSave | (variables: EnvVariable[]) => void | Promise<void> | — |
| className | string | — |