{"id":15421198,"url":"https://github.com/notwoods/tag-it-stdlib","last_synced_at":"2026-04-17T00:32:52.355Z","repository":{"id":76026974,"uuid":"117385714","full_name":"NotWoods/tag-it-stdlib","owner":"NotWoods","description":"[nwHacks 2018] μzm, our nwHacks 2018 project. This is the Node server. Client: https://github.com/NotWoods/tag-it","archived":false,"fork":false,"pushed_at":"2018-01-16T05:44:34.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T05:25:33.285Z","etag":null,"topics":["database","mongodb","nfc","nfc-tag","slack","stdlib"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotWoods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-13T23:08:39.000Z","updated_at":"2018-07-12T01:11:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"27d5768a-e7ee-453a-80d1-dd7b40d07f99","html_url":"https://github.com/NotWoods/tag-it-stdlib","commit_stats":{"total_commits":43,"total_committers":3,"mean_commits":"14.333333333333334","dds":0.2558139534883721,"last_synced_commit":"a3ac75073138141b63453180ee3c7409815fd8eb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Ftag-it-stdlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Ftag-it-stdlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Ftag-it-stdlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Ftag-it-stdlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotWoods","download_url":"https://codeload.github.com/NotWoods/tag-it-stdlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245967555,"owners_count":20701863,"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":["database","mongodb","nfc","nfc-tag","slack","stdlib"],"created_at":"2024-10-01T17:33:55.977Z","updated_at":"2026-04-17T00:32:47.324Z","avatar_url":"https://github.com/NotWoods.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](header.jpg)\n\n# μzm backend\n\n_(mu-zee-em)_\n\n[![devpost - nwhacks 2018](https://img.shields.io/badge/Devpost-nwHacks%202018-blue.svg)](https://devpost.com/software/tag-it-gpzhuq)\n\n\u003e Let's face it: Museums, parks, and exhibits need some work in this digital era. Why lean over to read a small plaque when you can get a summary and details by tagging exhibits with a portable device? There is a solution for this of course: NFC tags are a fun modern technology, and they could be used to help people appreciate both modern and historic masterpieces. If you're a nwHacks attendee, there's one on your badge right now!\n\n## Backend overview\n\n[stdlib](https://stdlib.com/) handles API calls from the [Android](https://github.com/NotWoods/tag-it) client application. Node.js is used to pull information from a MongoDB database and send it back to the user. Slack is used to present a real-time feed of user interactions with tags.\n\n## Files\n\nEach module in the _functions_ folder represents an API route on stdlib. Tags are represented as a string of random characters, which are stored in mongoDB when the user first registers.\n\nThe _scripts_ folder contains scripts that are run locally. The _setup_db_ script loads data from the _exhibit.json_ file into the exhibit collection in the database.\n\n## Routes\n\n### `__main__`\n\nAlias for [`tagged`](#tagged)\n\n### `add_exhibits`\n\nInsert an exhibit into the database.\nWe ended up not using this for the hackathon, instead using _scripts/setup_db_ to directly insert items into the database.\n\n### `create_user`\n\nInsert or overwrite a user in the database. Their NFC tag data, `tag`, must be provided along with a display name like \"Bill\".\n\n### `debug`\n\nA dirty hack route we used to print out the entire database. If the `wipe` argument is provided, the corresponding collection will have its contents wiped.\n\n### `get_bulk_info`\n\nRetrive info about some exhibits, based on the array of `ids` you pass. IDs correspond to the exhibit's `key` property in the database. Returns a map of keys to exhibit objects.\n\n### `get_info`\n\nLike [`get_bulk_info`](#get_bulk_info), but for a single exhibit. Returns the exhibit directy rather than inside a map.\n\n### `get_inventory`\n\nReturns an array of strings, where each string is the display name of an item in the user's inventory. Pass the user's tag in the `user_id` parameter.\n\n### `log_transaction`\n\nAdds a interaction between the user (`receiver`) and some tag (`target`). Also takes in the `exhibit` object the user tapped and the `collectible` they received from the exhibit. Optionally the current time can be passed (`date`) as milliseconds since epoch time, but will default to the current time.\n\nThis route also calls our Slack bot to add to the real-time feed.\n\n### `tagged`\n\nCalled when the user (`userTag`) taps an exhibit (`targetTag`), and transfers a random collectible from the corresponding exhibit to the user.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotwoods%2Ftag-it-stdlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotwoods%2Ftag-it-stdlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotwoods%2Ftag-it-stdlib/lists"}