{"id":21900293,"url":"https://github.com/cryptoc1/conscious","last_synced_at":"2026-04-12T16:02:24.491Z","repository":{"id":82170125,"uuid":"76654616","full_name":"Cryptoc1/conscious","owner":"Cryptoc1","description":":zzz: Ever wanted to check if someone's asleep? Haha yeah neither have we","archived":false,"fork":false,"pushed_at":"2016-12-15T00:12:16.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T05:44:48.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://woke.heroku.com/","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Maybulb/conscious","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cryptoc1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-16T13:08:36.000Z","updated_at":"2023-06-10T17:38:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"96fa5e4f-dfd2-4eab-adfd-5b01ef2008d4","html_url":"https://github.com/Cryptoc1/conscious","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/Cryptoc1/conscious","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptoc1%2Fconscious","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptoc1%2Fconscious/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptoc1%2Fconscious/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptoc1%2Fconscious/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cryptoc1","download_url":"https://codeload.github.com/Cryptoc1/conscious/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptoc1%2Fconscious/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269417545,"owners_count":24413385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T15:07:12.541Z","updated_at":"2025-10-25T12:08:56.174Z","avatar_url":"https://github.com/Cryptoc1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Conscious\n====\n\nThe golden question of today's generation.\n\nDevelopment\n-----------\n\n`git clone`, `yarn install`, `node index.js`.\n\nGoal\n----\nUsers will be able to sign in through Twitter or Facebook, then connect the service\nwith their other social networks. Information will then be thrown around until\nthe final answer is given: Are you (or any other user) awake right now?\n\nPrologue\n----------\n\nAdam's decided to make an effort to improve upon his sleep schedule, but only on some days/nights. Communication with him started becoming an issue, and I'd have to determine\na lot of times of guesses and his timezone whether or not he was awake or not. Woke plans to solve this with a simple API, as mentioned below.\n\nInfo\n----\nWe ([Bright](https://github.com/madebybright)) are not responsible for how a person/persons may use this service ([Woke](https://github.com/madebybright/woke/) or [Conscious](https://github.com/madebybright/conscious/)), nor do we promote or condone the use of this software for reasons that violate international law. \n\nBasically, if you're using this for creepy or weird illegal shit, fuck off.\n\nThe following will soon be ported to [woke](https://github.com/madebybright/woke). Concious will be the service powered by woke.\n\nAPI\n---\n\nI'm looking to build an easy API to use with only a few pieces of information.\n\n```\nhttp://woke.heroku.com/usernames?github=lw\u0026instagram=adamlewes\u0026tumblr=lwwws\u0026twitter=adamlewes\u0026lastfm=ltrlly\n```\n\n```json\n{\n\t\"awake\": 0.88,\n\t\"last_online\": {\n\t\t\"github\": {\n\t\t\t\"date\": \"25 06 15\",\n\t\t\t\"time\": \"23:55 PST\"\n\t\t},\n\t\t\"instagram\": {\n\t\t\t\t\"date\": \"26 06 15\",\n\t\t\t\t\"time\": \"14:20 PST\"\n\t\t\t},\n\t\t\"tumblr\": {\n\t\t\t\t\"date\": \"26 06 15\",\n\t\t\t\t\"time\":\"18:09 PST\"\n\t\t\t},\n\t\t\"twitter\": {\n\t\t\t\"date\": \"26 06 15\",\n\t\t\t\"time\":\"20:18 PST\"\n\t\t},\n\t\t\"lastfm\": {\n\t\t\t\"date\": \"26 06 15\",\n\t\t\t\"time\": \"07:10 PST\", \"energy\": 0.515896\n\t\t}\n\t}\n}\n```\n\nThe \"energy\" level is as follows:\n\n![Energy Explanation](http://i.imgur.com/YgFwNxp.png)\n\nResources\n---------\n\nI'm gonna need APIs from a few different services that Adam uses to get this\nworking. Here's a list of them:\n\n- [GitHub](https://developer.github.com/v3/)\n- [Instagram](https://instagram.com/developer/endpoints/users/)\u003csup\u003e\u003ca href=\"#fn1\" id=\"f1\"\u003e1\u003c/a\u003e\u003c/sup\u003e\n- [Tumblr](https://www.tumblr.com/docs/en/api/v2)\u003csup\u003e\u003ca href=\"#fn2\" id=\"f2\"\u003e2\u003c/a\u003e\u003c/sup\u003e\n- [Last.fm](http://www.last.fm/api)\n- [Twitter](https://dev.twitter.com/)\n- [Echo Nest API](http://developer.echonest.com/docs/v4)\u003csup\u003e\u003ca href=\"#fn3\" id=\"f3\"\u003e3\u003c/a\u003e\u003c/sup\u003e\n\n\u003csup\u003e\u003ca href=\"#f1\"\u003e1\u003c/a\u003e\u003c/sup\u003e There isn't an actual endpoint to find the *most* recent activity of the user (like in the \"Activity\" pane within the Instagram App), so we'll have to hack something together by comparing timestamps of `GET /users/user-id/media/recent` and the timestamps of the users likes (using `GET /users/user-id`).\n\n\u003csup\u003e\u003ca href=\"#f1\"\u003e2\u003c/a\u003e\u003c/sup\u003e As with Instagram, Tumblr doesn't seem to combine a user's likes and posts into one feed, but that doesn't really matter anyway since Tumblr's API doesn't give you the date a post was liked. It instead gives you the date said post was *made*, so it wouldn't be helpful in the long run.\n\n\u003csup\u003e\u003ca href=\"#f3\"\u003e3\u003c/a\u003e\u003c/sup\u003e The Echo Nest API will be for tracking the energy of a song, as glossed over above. We'll hook this in with Last.fm so we can get a song's information on a deeper level, which will be important. With this API we can get the energy of a song, which returns a float value from 0-1. The higher the number the more energy the song contains. We can use this to determine (or guess, really) if the user has music playing while they're sleeping or not (soft music or not).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptoc1%2Fconscious","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptoc1%2Fconscious","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptoc1%2Fconscious/lists"}