thelapyae 0.1.1 → 0.1.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 +92 -0
- package/bin/thelapyae.js +4 -4
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# thelapyae
|
|
2
|
+
|
|
3
|
+
> The personal CLI of **La Pyae** (@thelapyae) – a collection of mental models for clear thinking, decision making, and problem solving, powered by AI.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
_ _ _
|
|
9
|
+
| |_| |__ ___| | __ _ _ __ _ _ __ _ ___
|
|
10
|
+
| __| '_ \ / _ \ |/ _` | '_ \| | | |/ _` |/ _ \
|
|
11
|
+
| |_| | | | __/ | (_| | |_) | |_| | (_| | __/
|
|
12
|
+
\__|_| |_|\___|_|\__,_| .__/ \__, |\__,_|\___|
|
|
13
|
+
|_| |___/
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 🚀 Introduction
|
|
17
|
+
|
|
18
|
+
**thelapyae** is a command-line tool designed to help you think better. It provides instant access to a curated library of mental models (like *Inversion*, *First Principles*, *Circle of Control*).
|
|
19
|
+
|
|
20
|
+
It features a **Think-with-AI** mode where it acts as a consultant, analyzing your specific life or work problems using these mental models to provide actionable advice.
|
|
21
|
+
|
|
22
|
+
## 📦 Installation
|
|
23
|
+
|
|
24
|
+
You don't need to install anything if you just want to run it once:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx thelapyae "I feel overwhelmed"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
To install it globally for faster access:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install -g thelapyae
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 💡 Usage
|
|
37
|
+
|
|
38
|
+
### 1. Ask for Advice (AI Mode)
|
|
39
|
+
Describe your problem in plain English. The CLI will find the most relevant mental models and use Google Gemini AI to give you a personalized action plan.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
thelapyae "I don't know if I should quit my job"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
*Note: Requires a free Gemini API Key (see Configuration).*
|
|
46
|
+
|
|
47
|
+
### 2. Get a Random Mental Model
|
|
48
|
+
Great for daily inspiration or learning.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
thelapyae random
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 3. List All Mental Models
|
|
55
|
+
See the full collection available in the database.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
thelapyae list
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 4. Look Up a Specific Model
|
|
62
|
+
If you know the name (or ID) of a model, you can look it up directly.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
thelapyae inversion
|
|
66
|
+
thelapyae "map is not the territory"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 🔑 Configuration (AI Setup)
|
|
70
|
+
|
|
71
|
+
To enable the AI consulting feature, you need a Google Gemini API Key.
|
|
72
|
+
|
|
73
|
+
1. Get your free key from [Google AI Studio](https://aistudio.google.com/app/apikey).
|
|
74
|
+
2. Run the config command:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
thelapyae config
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
3. Paste your API key when prompted. It will be saved securely on your machine.
|
|
81
|
+
|
|
82
|
+
## 🧠 Mental Models
|
|
83
|
+
This CLI includes models from various disciplines:
|
|
84
|
+
- **General Thinking Tools** (Inversion, Second-Order Thinking)
|
|
85
|
+
- **Stoicism** (Circle of Control, Premeditatio Malorum)
|
|
86
|
+
- **Decision Making** (Opportunity Cost, Regret Minimization)
|
|
87
|
+
- **Economics** (Sunk Cost, Compound Interest)
|
|
88
|
+
- And many more...
|
|
89
|
+
|
|
90
|
+
## 📄 License
|
|
91
|
+
|
|
92
|
+
MIT © [La Pyae](https://twitter.com/thelapyae)
|
package/bin/thelapyae.js
CHANGED
|
@@ -148,10 +148,10 @@ async function main() {
|
|
|
148
148
|
👋 Hi, I'm La Pyae (@thelapyae)
|
|
149
149
|
|
|
150
150
|
Try:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
thelapyae random
|
|
152
|
+
thelapyae list
|
|
153
|
+
thelapyae "I feel anxious"
|
|
154
|
+
thelapyae config (Setup AI Key)
|
|
155
155
|
`);
|
|
156
156
|
process.exit(0);
|
|
157
157
|
}
|