this.me 3.0.23 → 3.0.24

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.
Files changed (2) hide show
  1. package/README.md +0 -15
  2. package/package.json +16 -20
package/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  <img src="https://res.cloudinary.com/dkwnxf6gm/image/upload/v1761149332/this.me-removebg-preview_2_j1eoiy.png" alt="57b0b83e8518fecf9b3e2d06457421c7da70e0663f7490fab98f9ecbdbe5db6e-removebg-preview" style="zoom:34%;" />
2
2
 
3
3
  # .ME
4
-
5
4
  You can use **.me** both in **browser** and **Node** environments.
6
-
7
5
  #### **1. NODEJS**
8
6
  Using **npm**:
9
7
 
@@ -66,7 +64,6 @@ console.log(list);
66
64
  ---
67
65
 
68
66
  #### **Loading an Identity**
69
-
70
67
  ```js
71
68
  await me.load("abellae", "mySecretHash");
72
69
  console.log(me.active); // true if identity is successfully loaded
@@ -77,7 +74,6 @@ After loading, you can use all available methods (`be`, `have`, `do`, etc.).
77
74
  ---
78
75
 
79
76
  # **Example in the Browser Console**
80
-
81
77
  If you include the UMD bundle:
82
78
 
83
79
  ```html
@@ -98,11 +94,8 @@ If you include the UMD bundle:
98
94
  ------
99
95
 
100
96
  ### How .me **Works (Simplified)**
101
-
102
97
  The **Me** class creates and manages a **local, encrypted identity file** based on a username and a secret hash.
103
-
104
98
  #### **Creating a new identity**
105
-
106
99
  When you run:
107
100
 
108
101
  ```js
@@ -114,7 +107,6 @@ Me.create('abellae', 'mySecretHash');
114
107
  ------
115
108
 
116
109
  #### Loading an existing identity
117
-
118
110
  When you run:
119
111
 
120
112
  ```js
@@ -122,7 +114,6 @@ Me.load('abellae', 'mySecretHash');
122
114
  ```
123
115
 
124
116
  It:
125
-
126
117
  - Reads the **encrypted .me** file.
127
118
  - Extracts the first 16 bytes as iv.
128
119
  - Recomputes the key from the given hash.
@@ -132,9 +123,7 @@ It:
132
123
  ------
133
124
 
134
125
  #### **Using the unlocked identity**
135
-
136
126
  Once unlocked, you can:
137
-
138
127
  - Set attributes: me.be('developer', true)
139
128
  - Add endorsements: me.addEndorsement(...)
140
129
  - View attributes: me.getAttributes()
@@ -143,7 +132,6 @@ Once unlocked, you can:
143
132
  ------
144
133
 
145
134
  ### **Summary**
146
-
147
135
  - Your identity is encrypted on your own machine.
148
136
  - Only the correct hash can unlock it.
149
137
  - No third parties are involved.
@@ -152,7 +140,6 @@ Once unlocked, you can:
152
140
  ---
153
141
 
154
142
  ### 🔍 Core Principles
155
-
156
143
  1. **Freedom to Declare**
157
144
  Anyone can generate a `.me` identity locally without external approval.
158
145
  2. **Trusted Endorsements**
@@ -180,12 +167,10 @@ Once unlocked, you can:
180
167
 
181
168
  ---
182
169
  <img src="https://suign.github.io/assets/imgs/monads.png" alt="Cleak Me Please" width="244">Hello, I am **.me**
183
-
184
170
  ----
185
171
 
186
172
  #### License & Policies
187
173
  - **License**: MIT License.
188
174
  - **Learn more** at **https://neurons.me**
189
175
  [Terms](https://neurons.me/terms-and-conditions) | [Privacy](https://neurons.me/privacy-policy)
190
-
191
176
  <img src="https://docs.neurons.me/neurons.me.webp" alt="neurons.me logo" width="89" height="89">
package/package.json CHANGED
@@ -1,27 +1,25 @@
1
1
  {
2
2
  "name": "this.me",
3
- "version": "3.0.23",
4
- "description": ".me is your identity decentralized trust through cryptographic signatures.",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.es.js",
7
- "browser": "dist/index.umd.js",
3
+ "version": "3.0.24",
4
+ "description": ".me is your identity trust through cryptographic signatures.",
5
+ "main": "dist/me.cjs.js",
6
+ "module": "dist/me.es.js",
7
+ "browser": "dist/me.umd.js",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./dist/index.es.js",
11
- "require": "./dist/index.cjs.js"
10
+ "import": "./dist/me.es.js",
11
+ "require": "./dist/me.cjs.js"
12
12
  }
13
+ },
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "vite build",
17
+ "preview": "vite preview"
13
18
  },
14
19
  "type": "module",
15
20
  "keywords": [
16
- "this.me",
17
- "identity",
18
- "decentralized",
19
- "cryptographic",
20
- "trust",
21
- "signature",
22
- "local",
23
- "self-sovereign",
24
- "monad"
21
+ "this.me", "identity", "decentralized", "cryptographic",
22
+ "trust", "signature", "local", "monad"
25
23
  ],
26
24
  "repository": {
27
25
  "type": "git",
@@ -33,10 +31,8 @@
33
31
  "files": [
34
32
  "dist"
35
33
  ],
36
- "scripts": {
37
- "build": "vite build"
38
- },
39
34
  "devDependencies": {
40
- "vite": "^7.0.6"
35
+ "vite": "^7.0.6",
36
+ "vite-plugin-dts": "^4.5.4"
41
37
  }
42
38
  }