langctl 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Langctl
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,209 @@
1
+ # Publishing Langctl to npm
2
+
3
+ ## 📦 Reserve the `langctl` Package Name
4
+
5
+ ### Prerequisites
6
+ - npm account (create at https://www.npmjs.com/signup)
7
+ - Email verified on npm
8
+ - Two-factor authentication enabled (recommended)
9
+
10
+ ---
11
+
12
+ ## Step-by-Step Publishing Guide
13
+
14
+ ### 1. Login to npm
15
+
16
+ ```bash
17
+ cd /Users/siddharthsaxena/Documents/projects/langctl/langctl-cli
18
+
19
+ # Login to npm
20
+ npm login
21
+
22
+ # Enter your credentials:
23
+ # - Username
24
+ # - Password
25
+ # - Email
26
+ # - OTP (if 2FA enabled)
27
+ ```
28
+
29
+ ### 2. Check if Name is Available
30
+
31
+ ```bash
32
+ npm search langctl
33
+ ```
34
+
35
+ If nothing shows up, the name is available! ✅
36
+
37
+ ### 3. Test the Package Locally
38
+
39
+ ```bash
40
+ # Make the CLI executable
41
+ chmod +x bin/langctl.js
42
+ chmod +x index.js
43
+
44
+ # Test it works
45
+ node bin/langctl.js
46
+ ```
47
+
48
+ You should see the "Coming Soon" message.
49
+
50
+ ### 4. Publish to npm
51
+
52
+ ```bash
53
+ # Publish as public package (free)
54
+ npm publish --access public
55
+ ```
56
+
57
+ **Expected output:**
58
+ ```
59
+ + langctl@0.0.1
60
+ ```
61
+
62
+ ### 5. Verify It's Published
63
+
64
+ ```bash
65
+ # Search for your package
66
+ npm search langctl
67
+
68
+ # View package page
69
+ npm view langctl
70
+
71
+ # Visit on web
72
+ # https://www.npmjs.com/package/langctl
73
+ ```
74
+
75
+ ### 6. Test Installation
76
+
77
+ ```bash
78
+ # Test installing globally
79
+ npm install -g langctl
80
+
81
+ # Run it
82
+ langctl
83
+
84
+ # You should see the "Coming Soon" message
85
+ ```
86
+
87
+ ---
88
+
89
+ ## 🎉 Success!
90
+
91
+ Your package is now published and the name is reserved!
92
+
93
+ Anyone who tries:
94
+ ```bash
95
+ npm install -g langctl
96
+ ```
97
+
98
+ Will get your placeholder package with the "Coming Soon" message.
99
+
100
+ ---
101
+
102
+ ## 📈 Update Version When Ready
103
+
104
+ When you build the actual CLI:
105
+
106
+ ```bash
107
+ # Update version
108
+ npm version patch # 0.0.1 -> 0.0.2
109
+ npm version minor # 0.0.1 -> 0.1.0
110
+ npm version major # 0.0.1 -> 1.0.0
111
+
112
+ # Publish update
113
+ npm publish
114
+ ```
115
+
116
+ ---
117
+
118
+ ## 🔐 Security Best Practices
119
+
120
+ ### Enable 2FA on npm Account
121
+ ```bash
122
+ npm profile enable-2fa auth-and-writes
123
+ ```
124
+
125
+ ### Use npm Access Tokens (for CI/CD later)
126
+ ```bash
127
+ npm token create --read-only
128
+ ```
129
+
130
+ ---
131
+
132
+ ## 📝 Package Details
133
+
134
+ **Package Name:** `langctl`
135
+ **Current Version:** `0.0.1`
136
+ **Type:** Placeholder
137
+ **License:** MIT
138
+ **Homepage:** https://langctl.com
139
+
140
+ ---
141
+
142
+ ## 🚀 Next Steps
143
+
144
+ 1. ✅ Publish placeholder package (reserve name)
145
+ 2. 🏗️ Build actual CLI tool
146
+ 3. 📦 Update package with real functionality
147
+ 4. 🎯 Publish v1.0.0 when ready
148
+
149
+ ---
150
+
151
+ ## ⚠️ Important Notes
152
+
153
+ - **Placeholder package is intentional** - This reserves the name while you build
154
+ - **Users will see "Coming Soon"** - They know it's in development
155
+ - **npm allows placeholders** - As long as they have valid code
156
+ - **Update regularly** - Update description/readme as you build
157
+
158
+ ---
159
+
160
+ ## 🐛 Troubleshooting
161
+
162
+ ### "Package name already taken"
163
+ ```bash
164
+ # Try variations:
165
+ # @your-username/langctl
166
+ # langctl-cli
167
+ # langctl-tool
168
+ ```
169
+
170
+ ### "You must verify your email"
171
+ 1. Check your email for npm verification link
172
+ 2. Click the link
173
+ 3. Try publishing again
174
+
175
+ ### "You must sign in to publish"
176
+ ```bash
177
+ npm logout
178
+ npm login
179
+ npm publish --access public
180
+ ```
181
+
182
+ ### "Package too large"
183
+ ```bash
184
+ # Check package size
185
+ npm pack --dry-run
186
+
187
+ # Should be very small (<10KB for placeholder)
188
+ ```
189
+
190
+ ---
191
+
192
+ ## 📧 Support
193
+
194
+ Questions about npm publishing?
195
+ - npm docs: https://docs.npmjs.com/
196
+ - npm support: support@npmjs.com
197
+ - Langctl: hello@langctl.com
198
+
199
+ ---
200
+
201
+ **Ready to publish? Just run:**
202
+
203
+ ```bash
204
+ cd /Users/siddharthsaxena/Documents/projects/langctl/langctl-cli
205
+ npm login
206
+ npm publish --access public
207
+ ```
208
+
209
+ That's it! 🚀
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # Langctl
2
+
3
+ > CLI-first translation management for developers
4
+
5
+ 🚧 **Coming Soon** - This package is currently in development.
6
+
7
+ ## What is Langctl?
8
+
9
+ Langctl is a modern translation management tool built for developers who want to:
10
+ - Manage translations from the command line
11
+ - Use AI-powered translations
12
+ - Save money compared to enterprise tools
13
+ - Integrate seamlessly with their development workflow
14
+
15
+ ## Features (Planned)
16
+
17
+ - 🖥️ **CLI-First** - Manage translations from your terminal
18
+ - 🤖 **AI-Powered** - Context-aware translations using advanced AI
19
+ - 💰 **Affordable** - Starting free, pay only for what you use
20
+ - ⚡ **Fast** - Setup in under 2 minutes
21
+ - 🔧 **Framework Agnostic** - Works with Angular, React, Vue, and more
22
+
23
+ ## Installation (When Available)
24
+
25
+ ```bash
26
+ npm install -g langctl
27
+ ```
28
+
29
+ ## Usage (When Available)
30
+
31
+ ```bash
32
+ # Initialize langctl in your project
33
+ langctl init
34
+
35
+ # Scan for translation keys
36
+ langctl scan
37
+
38
+ # Translate to multiple languages
39
+ langctl translate --target es,fr,de --ai
40
+
41
+ # Push to cloud
42
+ langctl push
43
+ ```
44
+
45
+ ## Stay Updated
46
+
47
+ - 🌐 Website: [langctl.com](https://langctl.com)
48
+ - 📧 Email: hello@langctl.com
49
+ - 🐙 GitHub: [github.com/siddharthsaxena0/langctl](https://github.com/siddharthsaxena0/langctl)
50
+
51
+ ## License
52
+
53
+ MIT © Langctl
54
+
55
+ ---
56
+
57
+ **Note:** This is a placeholder package to reserve the name. The actual CLI tool is under development and will be released soon.
package/bin/langctl.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ console.log(`
4
+ ╔══════════════════════════════════════════════════════════╗
5
+ ║ ║
6
+ ║ 🚧 Coming Soon 🚧 ║
7
+ ║ ║
8
+ ║ Langctl CLI is under development ║
9
+ ║ ║
10
+ ║ Translation management for developers who code ║
11
+ ║ CLI-first • AI-powered • Affordable ║
12
+ ║ ║
13
+ ║ Learn more: https://langctl.com ║
14
+ ║ Email: hello@langctl.com ║
15
+ ║ ║
16
+ ╚══════════════════════════════════════════════════════════╝
17
+ `);
18
+
19
+ process.exit(0);
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Langctl - CLI-first translation management for developers
5
+ *
6
+ * This is a placeholder package. The full CLI is under development.
7
+ * Visit https://langctl.com for updates.
8
+ */
9
+
10
+ console.log(`
11
+ ╔══════════════════════════════════════════════════════════╗
12
+ ║ ║
13
+ ║ 🚧 Coming Soon 🚧 ║
14
+ ║ ║
15
+ ║ Langctl CLI is under development ║
16
+ ║ ║
17
+ ║ Translation management for developers who code ║
18
+ ║ CLI-first • AI-powered • Affordable ║
19
+ ║ ║
20
+ ║ Learn more: https://langctl.com ║
21
+ ║ Email: hello@langctl.com ║
22
+ ║ ║
23
+ ╚══════════════════════════════════════════════════════════╝
24
+ `);
25
+
26
+ module.exports = {};
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "langctl",
3
+ "version": "0.0.1",
4
+ "description": "CLI-first translation management for developers. Affordable, AI-powered, and built for modern workflows.",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "langctl": "./bin/langctl.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "translation",
14
+ "i18n",
15
+ "internationalization",
16
+ "localization",
17
+ "l10n",
18
+ "cli",
19
+ "translations",
20
+ "translate",
21
+ "language",
22
+ "multilingual"
23
+ ],
24
+ "author": "Siddharth Saxena <hello@langctl.com>",
25
+ "license": "MIT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/siddharthsaxena0/langctl.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/siddharthsaxena0/langctl/issues"
32
+ },
33
+ "homepage": "https://langctl.com",
34
+ "engines": {
35
+ "node": ">=16.0.0"
36
+ }
37
+ }