{"id":24160498,"url":"https://github.com/simpleweb/sgnmapper","last_synced_at":"2025-06-13T13:32:31.600Z","repository":{"id":3525128,"uuid":"4584168","full_name":"simpleweb/sgnmapper","owner":"simpleweb","description":"sgnodemapper as a service","archived":false,"fork":false,"pushed_at":"2012-06-07T11:14:23.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T14:25:23.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://sgnmapper.herokuapp.com/","language":"CoffeeScript","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/simpleweb.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}},"created_at":"2012-06-07T10:56:45.000Z","updated_at":"2016-05-02T15:47:43.000Z","dependencies_parsed_at":"2022-08-29T11:41:12.162Z","dependency_job_id":null,"html_url":"https://github.com/simpleweb/sgnmapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simpleweb/sgnmapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsgnmapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsgnmapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsgnmapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsgnmapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleweb","download_url":"https://codeload.github.com/simpleweb/sgnmapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsgnmapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259653772,"owners_count":22890890,"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":"2025-01-12T16:14:20.785Z","updated_at":"2025-06-13T13:32:31.565Z","avatar_url":"https://github.com/simpleweb.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sgnodemapper as a service\n\nThis project provides an [sgnodemapper]() over http, allowing easy\nconversion from `http` to `sgn` and back again.\n\n## Install\n\nClone this repository from GitHub, then install the dependencies using\n`npm(1)`.\n\n```\ngit clone https://github.com/simpleweb/sgnmapper.git\ncd sgnmapper\nnpm install\n```\n\n## Usage\n\n### Server\n\nTo start the server on port 3000 you can run:\n\n```\n./node_modules/.bin/coffee server.coffee\n```\n\nAlternativly you can use [foreman](https://github.com/ddollar/foreman)\nto manage running the application processes, this will start them on\nport 5000.\n\n```\nforeman start\n```\n\n### Client\n\nTo convert an http url to an sgn url, provide the url as a parameter,\nwith `curl(1)` it would look something like:\n\n```\n$ curl -s http://localhost:3000/ -d 'url=http://twitter.com/hecticjeff'\n{\"url\":\"http://twitter.com/hecticjeff\",\"sgn\":\"sgn://twitter.com/?ident=hecticjeff\",\"sgnParsed\":{\"domain\":\"twitter.com\",\"keyName\":\"ident\",\"value\":\"hecticjeff\"}}\n```\n\nTo convert from sgn url back to http, provide an `sgn` parameter:\n\n```\n$ curl -s http://localhost:3000/ -d 'sgn=sgn://twitter.com/?ident=hecticjeff'\n{\"url\":\"http://twitter.com/hecticjeff\",\"sgn\":\"sgn://twitter.com/?ident=hecticjeff\",\"sgnParsed\":{\"domain\":\"twitter.com\",\"keyName\":\"ident\",\"value\":\"hecticjeff\"}}\n```\n\n## Copyright\n\nCopyright Chris Mytton, Simpleweb 2012\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsgnmapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleweb%2Fsgnmapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsgnmapper/lists"}