• Stars
    star
    432
  • Rank 100,650 (Top 2 %)
  • Language
    JavaScript
  • Created about 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📬 Query iMessage from terminal and NodeJS

node-imessage

Build Status

Binds iMessage to NodeJS (read-only)

ATTENTION: only available to brave coders, heavy development going on.

Discuss on HN or star the project to be updated.

Install

npm install imessage --save

To use the command line tool

npm install -g imessage

Usage

Command line

Usage: imessagejs <command>

command     
  search         Search messages with particular text
  recipients     Search messages with particular recipient

Search

Usage: imessagejs search "text to search" [options]

Options:
   --count       Just return the count
   --recipient   ID of the recipient
   --json        Print in json format
   --path    iMessage path to the chat.db

Recipients

Usage: imessagejs recipients ["recipient name to filter"] [options]

Options:
   --count   Just return the count
   --json    Print in json format
   --path    iMessage path to the chat.db

NodeJS Library

Recipients

var iMessage = require('imessage');
var im = new iMessage();

// Get all recipients
im.getRecipients(cb)

// Get recipients with "nicola"
im.getRecipients("nicola", cb)

// Get recipient Id
im.getRecipientById(1, cb)
// Get recipient and all of his messages
im.getRecipientById(1, true, cb)

Messages

// Get all messages
im.getMessages(cb)

// Get messages with text
im.getMessages("hello you", cb);

// Get messages from recipient Id
im.getMessagesFromId(1, cb)
// Get messages from recipient with specific text
im.getMessagesFromId(1, "with text", cb)

Attachments

// Get all attachments
im.getAttachments(cb)

// Get attachements from recipient Id
im.getAttachmentsFromId(1, cb)

Use raw SQL queries

var iMessage = require('imessage');

var im = new iMessage();
im.getDb(function(err, db) {
  db.get("SELECT * FROM `messages`");
})

Ideally

var iMessage = require('imessage');

var im = new iMessage();
im
  .getAll()
  .keyword(["love", "happy"], ["sad", "hate"])
  .from(["+1231231231", "+89898989898"])
  .limit(10)
  .exec(function(err, rows) {
    console.log(rows);
  })

Examples

More Repositories

1

decentralized-research

📖 My reading list of academic papers and research notes
TeX
241
star
2

tubemaps

🚠 Browser, NodeJs library and command-line tool for handling tube data
JavaScript
208
star
3

poem-flowers

[POEM] Interactive visualization and code poetry. (probably) first poem in git commits
HTML
61
star
4

js-gossip-cyclon

👪 Cyclon Gossip: (P2P membership management) in Javascript
JavaScript
45
star
5

emoji-commits

🚀 The new generation of git commit messages
30
star
6

isawake

🌅 The (eventually) biggest crowdsourced database of people awake, sign up with a pull-request
HTML
27
star
7

crowd

Crowd computing in javascript. Distribute tasks to execute in connected browsers
JavaScript
19
star
8

node-fxos

🔥🐕 Simplify interaction between mankind and FirefoxOS during webapps development
JavaScript
18
star
9

rust-yinyan

Rust
11
star
10

learningmachinelearning

Resources I am using to learn machine learning
10
star
11

NFT-Auction

A basic ERC721 generator and auction with a minimal (bad) user interface.
JavaScript
8
star
12

spacebar

Spacebar when you are ready
JavaScript
6
star
13

schemas

Javascript library and command-line tool to rock Schemas and Linked Data
JavaScript
6
star
14

hh

It makes a javascript function an high order function
JavaScript
5
star
15

node-solid

Node implementation of Solid
JavaScript
5
star
16

qmongo

Simple helper to use Q promises with Mongoose
JavaScript
5
star
17

node-deepdream

Deepdreams in nodejs
JavaScript
5
star
18

captain-log

Automating the logs from your favorite captains
JavaScript
4
star
19

cross-data-paths

Paths that follow the links (JSON Pointers with followable links to other documents)
JavaScript
4
star
20

fx-ports

Discover Firefox Desktop and Firefox OS remote debugging tools listening ports in NodeJS/CLI
JavaScript
4
star
21

connectable

Connect data, devices and things with each other
Python
3
star
22

fxos-start

Start a Firefox OS simulator in NodeJS/CLI
JavaScript
3
star
23

poem-love-season

[POEM] Interactive visualization and code poetry. Love season
JavaScript
3
star
24

node-solid-idp

Identity provider for Solid in Node/Javascript
JavaScript
3
star
25

bubbles

🍡 Data Containers (interoperable and decentralized)
JavaScript
2
star
26

folder-to-rdf

Get an RDF graph of the contents of a folder
JavaScript
2
star
27

fireplay-atom

A fantastic plugin connecting your favorite editor with your favorite web debugger
CoffeeScript
2
star
28

mount-solid

Mount Solid
JavaScript
2
star
29

filecoin-tla

this is a playground
TLA
2
star
30

node-solid-acl

Node/Javascript implementation of Access Control List for Solid
JavaScript
2
star
31

code-poems

Poems in Code by Nicola Greco
2
star
32

js-simple-ipld

Simple pimple, easy peasy IPLD
JavaScript
2
star
33

python-simplified-graph-algorithms

Graph algorithm written in python in a simplified way. UCL COMP1002 Theory 1
Python
2
star
34

simplerdf-parse

WIP Parse RDF strings in a simple way
JavaScript
2
star
35

obs

JavaScript
2
star
36

rdf-store-acl

Add ACL support to your RDF store
JavaScript
2
star
37

fxos-deploy

Deploy apps to FirefoxOS in NodeJS/CLI
JavaScript
2
star
38

fxos-simulators

Find Firefox OS simulators in your Firefox path in NodeJS/CLI
JavaScript
2
star
39

security-project

Python
1
star
40

fxos-findapp

Find a particular app in FirefoxOS in NodeJS/CLI
JavaScript
1
star
41

hackathons-the-book

你好
1
star
42

r2

Attempt to implement fastest PoRep.Replicate algorithm
Rust
1
star
43

berryaccelerator

Move your robot with your phone accelerator or remotely from a web interface
JavaScript
1
star
44

authenticated-rdf

Making RDF Authenticated
1
star
45

datacontainer

WIP Containers for data (with json pointers)
JavaScript
1
star
46

fxos-console

Get the console of your FirefoxOS
JavaScript
1
star
47

on-decentralization

Issues and notes on decentralization
1
star
48

fxos-connect

Connect to a FirefoxOS
JavaScript
1
star
49

js-gossip-vicinity

👪 Vicinity Gossip implemented in Javascript
1
star
50

json-to-ldp

Navigate JSON in a Linked Data Platform fashion
JavaScript
1
star
51

nicola.github.io

SCSS
1
star
52

natural-html

Writing HTML in Natural Language
1
star
53

bubbles-server

Interoperable decentralized data storage
JavaScript
1
star
54

gulp-firefoxos-example

Use gulp to deploy and live reload CSS while developing FirefoxOS apps
JavaScript
1
star
55

verifiable-markets

1
star
56

js-peer-set-cyclon

👪 Set of neighboors for the gossip protocol Cyclon
JavaScript
1
star
57

fxos-reloadcss

Live-reload CSS in FirefoxOS, without reloading the app in NodeJS/CLI
JavaScript
1
star
58

decentralized-user-security-model

A set of principles that a federated/decentralized system should provide to their users
1
star