{"id":23719002,"url":"https://github.com/potofcoffee2go/mws-repl","last_synced_at":"2025-06-25T17:09:44.933Z","repository":{"id":228676921,"uuid":"774636593","full_name":"PotOfCoffee2Go/mws-repl","owner":"PotOfCoffee2Go","description":"Boots up a REPL of TiddlyWiki5 MWS including the Multi Wiki Server","archived":false,"fork":false,"pushed_at":"2024-03-24T10:28:29.000Z","size":37,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T14:25:42.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PotOfCoffee2Go.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":"2024-03-19T22:36:24.000Z","updated_at":"2024-03-19T22:45:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f59ef4dc-7234-4043-bc52-310a31654e45","html_url":"https://github.com/PotOfCoffee2Go/mws-repl","commit_stats":null,"previous_names":["potofcoffee2go/mws-repl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PotOfCoffee2Go/mws-repl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotOfCoffee2Go%2Fmws-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotOfCoffee2Go%2Fmws-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotOfCoffee2Go%2Fmws-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotOfCoffee2Go%2Fmws-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PotOfCoffee2Go","download_url":"https://codeload.github.com/PotOfCoffee2Go/mws-repl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotOfCoffee2Go%2Fmws-repl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261917440,"owners_count":23229919,"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","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-12-30T21:33:00.566Z","updated_at":"2025-06-25T17:09:44.907Z","avatar_url":"https://github.com/PotOfCoffee2Go.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mws-repl\n\nBoots up a REPL of TiddlyWiki5 MWS including the Multi Wiki Server\n\n## Install\n```\ngit clone https://github.com/PotOfCoffee2Go/mws-repl.git\ncd mws-repl\nnpm install\nnpm start\n```\n\nThe install downloads the TiddlyWiki multi-wiki-support branch from PotOfCoffee2go's fork\nof TiddlyWiki5 since is used when working on MWS code.\n```\nhttps://github.com/PotOfCoffee2go/TiddlyWiki5.git#multi-wiki-support\n```\n\nTo run using the official TiddlyWiki5 branch:\nIn `package.json` file change the 'tiddlywiki' dependency\n\nchange\n```js\n  \"dependencies\": {\n    \"tiddlywiki\": \"https://github.com/PotOfCoffee2go/TiddlyWiki5.git#multi-wiki-poc2go\"\n  },\n```\n\nto\n```js\n  \"dependencies\": {\n    \"tiddlywiki\": \"https://github.com/Jermolene/TiddlyWiki5.git#multi-wiki-support\"\n  },\n\n```\n\ndelete the `/node_modules` directory from the 'mws-repl' folder and\n\nrun\n```\nnpm install\n```\n\n---\n\n## Start\n`npm start` will boot TiddlyWiki, create and populate the SQLite database, start the\nMulti Wiki Server at http://localhost:9200/ , and run some $tw functions.\n\nWill be at the REPL prompt which allows access to all $tw variables, objects, and functions.\n`.help` displays REPL help. A handy tip is to type part of a $tw object path including the period\n`$tw.mws.store.` (don't forget the period at the end) - then press 'tab' twice. Will display a\nlist of all `$tw.mws.store.` functions.\n\n```\n\u003e mws-repl@1.0.0 start\n\u003e node ./twrepl\n\nmws-repl: v1.0.0\n\nBoot TiddlyWiki (multi-wiki-support)\nhttps://github.com/PotOfCoffee2go/TiddlyWiki5.git#multi-wiki-support\n-------------------\nCopying edition tw5.com/tiddlers\nCopying edition dev/tiddlers\nmws-initial-load: 16.197s\n-------------------\n\nStartup Multi Wiki Server\n-------------------\n$tw.Commander: [\"--listen\",\"port=9200\",\"host=127.0.0.1\"]\nServing on http://127.0.0.1:9200\n(press ctrl-C to exit)\n-------------------\n\n$mws-repl\u003e // Show objects 5 levels deep\n$mws-repl\u003e function showObj(obj) { console.dir(obj, {depth:5}) }\n$mws-repl\u003e\n\n$mws-repl\u003e $tw.version\n'5.3.4-prerelease'\n$mws-repl\u003e\n\n$mws-repl\u003e $tw.mws.store.listBags().map(bag =\u003e bag.bag_name)\n[ 'bag-alpha', 'bag-beta', 'bag-gamma', 'dev-docs', 'docs' ]\n$mws-repl\u003e\n\n$mws-repl\u003e $tw.mws.store.getBagTiddlers('bag-alpha')\n[\n  { title: '$:/SiteTitle', tiddler_id: 1891 },\n  { title: '😀😃😄😁😆🥹😅😂', tiddler_id: 1892 }\n]\n$mws-repl\u003e\n```\n\nThe 'twrepl.js' program has some settings at the beginning.\n\nEnjoy ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotofcoffee2go%2Fmws-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotofcoffee2go%2Fmws-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotofcoffee2go%2Fmws-repl/lists"}