https://github.com/chee/imessages
extract imessage chats to json :-)
https://github.com/chee/imessages
apple backup extract imessage json messages texts
Last synced: about 1 month ago
JSON representation
extract imessage chats to json :-)
- Host: GitHub
- URL: https://github.com/chee/imessages
- Owner: chee
- License: gpl-3.0
- Created: 2022-02-03T20:45:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T07:14:49.000Z (almost 4 years ago)
- Last Synced: 2025-06-29T11:57:32.000Z (11 months ago)
- Topics: apple, backup, extract, imessage, json, messages, texts
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/imessages
- Size: 195 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imessages
extract imessage chats to json :-)
## Usage
```
npm install -g imessages
cp ~/Library/Messages/chat.db chat.db
imessages list-handles ./chat.db // prints all the handles
imessages extract ./chat.db +525588888888 Sofia chee > sofia.json
```
### commands
#### extract
extract messages for a handle
```
imessages extract [name] [me]
```
#### args
| opt | desc | required |
|:---------|:----------------------------------------------------------|:---------|
| database | chat.db (found at ~/Library/Messages/chat.db) | yes |
| handle | whose msgs to extract (see [list-handles](#list-handles)) | yes |
| name | the name to use for messages sent by them | no |
| me | the name to use for messages sent by you | no |
#### list-handles
list available handles in a chat.db database
```
imessages extract
```
#### args
| opt | desc | required |
|:---------|:----------------------------------------------|:---------|
| database | chat.db (found at ~/Library/Messages/chat.db) | yes |