envware 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,98 +1,75 @@
1
- <p align="center">
2
- <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
- </p>
4
-
5
- [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
- [circleci-url]: https://circleci.com/gh/nestjs/nest
7
-
8
- <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
- <p align="center">
10
- <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
- <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12
- <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13
- <a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14
- <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
15
- <a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
16
- <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
17
- <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
18
- <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
19
- <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
20
- </p>
21
- <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
22
- [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
23
-
24
- ## Description
25
-
26
- [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
27
-
28
- ## Project setup
1
+ # .envware 🌸
29
2
 
30
- ```bash
31
- $ npm install
32
- ```
3
+ **Securely sync encrypted secrets across your devices and team.**
33
4
 
34
- ## Compile and run the project
5
+ Envware is a CLI tool designed to simplify environment variable management with a focus on security, privacy, and developer experience.
35
6
 
36
- ```bash
37
- # development
38
- $ npm run start
7
+ ## Why Envware?
39
8
 
40
- # watch mode
41
- $ npm run start:dev
9
+ Stop sharing `.env` files via Slack, DMs, or insecure notes. Envware ensures your secrets never touch the cloud in plain text.
42
10
 
43
- # production mode
44
- $ npm run start:prod
45
- ```
11
+ - **🔒 End-to-End Encryption (E2EE):** Secrets are encrypted locally on your machine using AES-256-GCM before being uploaded. We never see your data.
12
+ - **🔑 SSH Key Auth:** Authorization is tied to your existing SSH keys. No complex setup, just verify once.
13
+ - **📱 Multi-device Sync:** Seamlessly pull your project environments on any authorized machine (laptop, server, workstation).
14
+ - **👥 Collaboration:** Securely share project access with team members using invite codes.
15
+ - **📦 Backup & Restore:** Keep local encrypted backups of all your project configurations.
46
16
 
47
- ## Run tests
17
+ ## Quick Start
48
18
 
19
+ ### 1. Installation
20
+ No installation needed! Run directly with npx:
49
21
  ```bash
50
- # unit tests
51
- $ npm run test
52
-
53
- # e2e tests
54
- $ npm run test:e2e
55
-
56
- # test coverage
57
- $ npm run test:cov
22
+ npx envware login
58
23
  ```
59
24
 
60
- ## Deployment
61
-
62
- When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the [deployment documentation](https://docs.nestjs.com/deployment) for more information.
63
-
64
- If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
65
-
25
+ ### 2. Login or Signup
66
26
  ```bash
67
- $ npm install -g @nestjs/mau
68
- $ mau deploy
27
+ npx envware signup # If you don't have an account
28
+ npx envware login # If you already have one
69
29
  ```
70
30
 
71
- With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
31
+ ### 3. Create or Select a Project
32
+ ```bash
33
+ npx envware project create my-awesome-api
34
+ # OR
35
+ npx envware project select
36
+ ```
72
37
 
73
- ## Resources
38
+ ### 4. Push and Pull Secrets
39
+ ```bash
40
+ # Upload your local .env (encrypted locally first!)
41
+ npx envware push
74
42
 
75
- Check out a few resources that may come in handy when working with NestJS:
43
+ # On another machine, download and decrypt
44
+ npx envware pull
45
+ ```
76
46
 
77
- - Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
78
- - For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
79
- - To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
80
- - Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.
81
- - Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
82
- - Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
83
- - To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
84
- - Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
47
+ ## Commands
85
48
 
86
- ## Support
49
+ - `signup`: Create a new envware account.
50
+ - `login`: Log in to your envware account.
51
+ - `project`: Manage your projects (create, list, select, remove).
52
+ - `push`: Upload local .env to a project (E2EE).
53
+ - `pull`: Download project .env (E2EE).
54
+ - `envs`: List all environments in the project (.env, .env.production, etc.).
55
+ - `secrets`: List all secret keys in an environment.
56
+ - `share`: Share project access with another user.
57
+ - `accept`: Accept a project invitation code.
58
+ - `backup`: Create an encrypted local JSON backup of all owned projects.
59
+ - `restore`: Restore secrets from a local backup file.
60
+ - `status`: Check your plan and usage.
61
+ - `upgrade`: Upgrade to Premium for higher limits.
87
62
 
88
- Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
63
+ ## Security
89
64
 
90
- ## Stay in touch
65
+ Envware uses a dual-key system:
66
+ 1. **User Key:** Derived from your SSH public key.
67
+ 2. **Project Key:** A unique key generated for each project, encrypted with your User Key.
91
68
 
92
- - Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
93
- - Website - [https://nestjs.com](https://nestjs.com/)
94
- - Twitter - [@nestframework](https://twitter.com/nestframework)
69
+ All encryption/decryption happens inside the CLI. The server only stores encrypted "blobs".
95
70
 
96
- ## License
71
+ ---
97
72
 
98
- Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
73
+ **Website:** [https://www.envware.dev](https://www.envware.dev)
74
+ **Documentation:** [https://www.envware.dev/docs](https://www.envware.dev/docs)
75
+ **Support:** Need help? Send us a message at [https://www.envware.dev#support](https://www.envware.dev#support) 🌸
package/dist/main.js CHANGED
@@ -23,6 +23,7 @@ async function checkForUpdates() {
23
23
  }
24
24
  async function bootstrap() {
25
25
  await checkForUpdates();
26
+ console.log(chalk_1.default.magenta(`\n🌸 envware v${version}\n`));
26
27
  await nest_commander_1.CommandFactory.run(app_module_1.AppModule, {
27
28
  version,
28
29
  logger: ['warn', 'error'],
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;AACA,mDAAgD;AAChD,6CAAyC;AACzC,kDAA0B;AAC1B,kDAA0B;AAI1B,MAAM,EAAE,OAAO,EAAE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