{"id":15030504,"url":"https://github.com/dmvaldman/samsara","last_synced_at":"2025-05-16T03:03:15.269Z","repository":{"id":23978845,"uuid":"27361758","full_name":"dmvaldman/samsara","owner":"dmvaldman","description":"Continuous UI","archived":false,"fork":false,"pushed_at":"2020-05-27T05:36:02.000Z","size":6861,"stargazers_count":1049,"open_issues_count":15,"forks_count":66,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-05-11T12:35:52.574Z","etag":null,"topics":["css3","html5","layout","reactive","ui"],"latest_commit_sha":null,"homepage":"http://samsaraJS.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmvaldman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-01T03:59:46.000Z","updated_at":"2025-02-14T21:24:05.000Z","dependencies_parsed_at":"2022-08-22T08:40:50.347Z","dependency_job_id":null,"html_url":"https://github.com/dmvaldman/samsara","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmvaldman%2Fsamsara","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmvaldman%2Fsamsara/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmvaldman%2Fsamsara/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmvaldman%2Fsamsara/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmvaldman","download_url":"https://codeload.github.com/dmvaldman/samsara/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459083,"owners_count":22074604,"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":["css3","html5","layout","reactive","ui"],"created_at":"2024-09-24T20:13:31.635Z","updated_at":"2025-05-16T03:03:10.261Z","avatar_url":"https://github.com/dmvaldman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Note**: _This project is not being developed further at the moment. I hope to return to it soon._\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http://i.imgur.com/VOiEqxD.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/dmvaldman/samsara\"\u003e\n    \u003cimg src=\"https://travis-ci.org/dmvaldman/samsara.svg?branch=master\" alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://gitter.im/dmvaldman/samsara\"\u003e\n    \u003cimg src=\"https://badges.gitter.im/dmvaldman/samsara.svg\" alt=\"Gitter Chat\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nSamsaraJS is a library for building _continuous_ user interfaces. A continuous UI is one where many\nvisual elements are animating in coordinated ways. For example, you may want to fade the opacity of a\nnav bar while a settings menu is translated by a user's swipe gesture. Or maybe you want to blur and scale \na banner image when a user scrolls some content past its limits, and add a springy bounce at the end.\n\nBuilding these interactions and maintaining performance is hard, and SamsaraJS is here to help. It supports\n\n- 3D transforms and perspective (all hardware accelerated)\n- natural physics-based transitions like springs and inertia along with tweens\n- user input for mouse and touch along with gestures like pinch, scale, and rotate\n- a stream-based architecture for coordinating animations\n\nSamsaraJS is opinionated about presentation, but has no opinions about content. It moves rectangles around the\nscreen — what you do inside them is up to you. There is no support for routing,\nserver syncing, templating, data-binding, etc. There are many other frameworks for those needs, and Samsara\nis designed to be friends with them.\n\n## Getting Started\n\n| Resources      |               |\n| -------------- | ------------- |\n| Guide          | [samsaraJS.org/docs](http://www.samsaraJS.org/docs/index.html)  |\n| API docs       | [samsaraJS.org/reference_docs](http://www.samsaraJS.org/reference_docs/index.html)  |\n| Questions      | [SamsaraJS Google Group](https://groups.google.com/forum/#!forum/samsarajs) |\n\n## Examples\n\n| Example  | Demo (fullscreen) | Description |\n| -------- | ----------------- | ----------- |\n| Logo | [demo](http://samsarajs.org/demos/Logo/index.html) • [docs](http://samsarajs.org/demos/Logo/docs/main.html) | The SamsaraJS logo |\n| Cube | [demo](http://samsarajs.org/demos/Cube/index.html) • [docs](http://samsarajs.org/demos/Cube/docs/main.html) | 3D spinning cube with animated size |\n| ParallaxCats | [demo](http://samsarajs.org/demos/ParallaxCats/index.html) • [docs](http://samsarajs.org/ParallaxCats/Logo/docs/main.html/index.html) | Scrollview of cat images that parallax with the scroll |\n| Carousel | [demo](http://samsarajs.org/demos/Carousel/index.html) • [docs](http://samsarajs.org/demos/Carousel/docs/main.html) | A paginated scrollview converted into a slideshow with previous/next buttons |\n| SideMenu | [demo](http://samsarajs.org/demos/SideMenu/index.html) • [docs](http://samsarajs.org/demos/SideMenu/docs/main.html) | A navigation UI with an exposed side drawer |\n| Safari Tabs | [demo](http://samsarajs.org/demos/SafariTabs/index.html) • [docs](http://samsarajs.org/demos/SafariTabs/docs/main.html) | A scrollview imitating the mobile Safari tab viewer |\n\nHere's a video of a demo of an interactive helical arrangement of divs.\n\n[![Helix](https://i.imgur.com/e8eFUHL.png)](https://www.youtube.com/watch?v=Y6ubNsMTSjw)\n\n## Installation\n\nSamsaraJS requires a small CSS file located at `dist/samsara.css` or `samsara/samsara.css`. For all of the installation methods\nbelow, you will also need to include this CSS file for SamsaraJS to work properly.\n\n### Git\n\nClone this repo\n\n```\ngit clone git@github.com:dmvaldman/samsara.git\n```\n\nYou'll find AMD modules in the `samsara` directory, CommonJS bundles in the `dist` directory, examples in the\n`examples` directory and reference documentation in the `docs` directory.\n\n### NPM\n\nInstall the CommonJS build of Samsara with\n\n```\nnpm install samsarajs\n```\n\nThis will provide a bundled `Samsara` object. Note there is a case-difference: path keys are\ncapitalized for CommonJS but lowercase for AMD.\n\n```js\nvar Surface = require('samsara/dom/Surface');   // AMD\nvar Surface = require('samsarajs').DOM.Surface; // CommonJS\n```\n\nThe `samsara.css` file will also be included in `node_modules/samsarajs/dist/samsara.css`.\n\n### Window Object\n\nCopy `dist/samsara.js` and include it as a source file. `Samsara` will then be accessible\nthrough `window.Samsara`. This is particularly useful for sharing on sites like jsFiddle, CodePen, etc.\n\n### Yeoman Generator\n\nA generator was made by [@richardkopelow](https://github.com/richardkopelow). This is an easy way to get started if you're comfortable with [yeoman](http://yeoman.io/). Follow the [installation instructions here](https://github.com/richardkopelow/generator-samsara).\n\n## Talks\n[![Talk](http://i.imgur.com/tGbmVk4.png)](https://www.youtube.com/watch?v=biJXpv-6XVY)\n[JSConf EU 2015 Berlin, Germany](https://www.youtube.com/watch?v=biJXpv-6XVY)\n\n[![Talk](http://i.imgur.com/O4mr8v7.png)](https://www.youtube.com/watch?v=9bmoo64hhg4)\n[InRhythm Meetup](https://www.youtube.com/watch?v=9bmoo64hhg4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmvaldman%2Fsamsara","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmvaldman%2Fsamsara","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmvaldman%2Fsamsara/lists"}