{"id":15413005,"url":"https://github.com/ascorbic/airbed","last_synced_at":"2026-01-31T07:32:15.525Z","repository":{"id":137069364,"uuid":"1155937","full_name":"ascorbic/airbed","owner":"ascorbic","description":"Lightweight CouchDB client library for Adobe AIR","archived":false,"fork":false,"pushed_at":"2010-12-15T17:37:47.000Z","size":104,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T18:44:18.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","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/ascorbic.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":"2010-12-10T11:37:33.000Z","updated_at":"2024-04-02T17:40:56.000Z","dependencies_parsed_at":"2023-03-11T00:10:54.487Z","dependency_job_id":null,"html_url":"https://github.com/ascorbic/airbed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ascorbic/airbed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fairbed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fairbed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fairbed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fairbed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ascorbic","download_url":"https://codeload.github.com/ascorbic/airbed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fairbed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28933249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-01T16:55:00.500Z","updated_at":"2026-01-31T07:32:15.511Z","avatar_url":"https://github.com/ascorbic.png","language":"ActionScript","readme":"# Airbed\n## A lightweight CouchDB Actionscript 3 client library for Adobe AIR\n\nCouchDB has a very simple RESTful API, so it's quite possible to interact with it just using basic HTTP classes. \nHowever, that can get a little cumbersome so a library can help. This is designed to be as \"close to the metal\" as possible, with just a few convenience features such as session handling and change watching. The syntax is quite similar to the jQuery ajax methods.\n\nIf you need more features such as DAO mapping and support for non-AIR use, try [as3couchdb](https://github.com/bustardcelly/as3couchdb).\n\nIt also includes a UUID class which generates genuine unique values. This can be guaranteed because the hashed string includes the machine's MAC address.\n\n### Usage\n\nFor the full API, look at the comments. This is a basic example of logging-in, watching for changes, adding a document then uploading an atatchment to it.\n\n    var server:CouchServer = new CouchServer('http://127.0.0.1:5984/');\n\n    server.addEventListener(CouchEvent.CHANGE, function(e:CouchEvent):void {\n        trace('Change received: ' + e.data.id);\n    });\n    \n    server.login('username', 'password', function(e:CouchEvent):void {\n        server.watchChanges('test');\n        addItem({foo: 'bar'});\n    });\n    \n    function addItem(item:Object):void {\n        if(server.loggedIn) {\n            var obj:String = \"test/\" + UUID.generate();\n            server.put(obj, item, startUpload);\n        }\n    }\n\n    function startUpload(e:CouchEvent, l:URLLoader):void {\n       var file:File = new File();\n       file.browseForOpen(\"Upload\");\n       \n       /* You can watch for progress events on the file object, or attach it to a ProgressBar */\n       \n       file.addEventListener(Event.SELECT, function (event:Event):void {\n          server.upload('test/' + e.data.id, e.data.rev, file.name, 'application/octet-stream', file, function(e:CouchEvent, f:FileReference):void {\n             trace('sent file');\n          });\n\n       });\n    }\n \n### Requirements\n[as3corelib](http://code.google.com/p/as3corelib/) for SHA1 and events. [actionjson](https://github.com/mherkender/actionjson) for very fast JSON handling.\n\nThe `UUID` class requires Flex 4 and Adobe AIR 2.\n\n### Bugs and contributions\nIf you have a patch, fork the Github repo and send me a pull request. Submit bug reports on GitHub, please. \n\n### Credits\n\nBy [Matt Kane](https://github.com/ascorbic)\n\n### License \n\n(The MIT License)\n\nCopyright (c) 2010 [CLEVR Ltd](http://www.clevr.ltd.uk/)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascorbic%2Fairbed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fascorbic%2Fairbed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascorbic%2Fairbed/lists"}