{"id":13423836,"url":"https://github.com/lipp/next-todos","last_synced_at":"2025-04-15T11:07:15.661Z","repository":{"id":138884298,"uuid":"75325039","full_name":"lipp/next-todos","owner":"lipp","description":"200 lines realtime todos app powered by next.js, preact, jet, redux and now","archived":false,"fork":false,"pushed_at":"2023-07-22T16:59:29.000Z","size":525,"stargazers_count":129,"open_issues_count":3,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T11:06:57.614Z","etag":null,"topics":["collaborative","jet","nextjs","preact","realtime","todoapp","websockets"],"latest_commit_sha":null,"homepage":"https://todos.now.sh","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/lipp.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}},"created_at":"2016-12-01T19:24:04.000Z","updated_at":"2024-12-11T15:35:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ac13e1e-43e1-4c7b-8ac0-b4a0846c1407","html_url":"https://github.com/lipp/next-todos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Fnext-todos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Fnext-todos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Fnext-todos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Fnext-todos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lipp","download_url":"https://codeload.github.com/lipp/next-todos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249058370,"owners_count":21205910,"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":["collaborative","jet","nextjs","preact","realtime","todoapp","websockets"],"created_at":"2024-07-31T00:00:43.516Z","updated_at":"2025-04-15T11:07:15.636Z","avatar_url":"https://github.com/lipp.png","language":"JavaScript","readme":"# next-todos\nAbout 200 lines isomorphic todos app powered by [next.js](https://github.com/zeit/next.js/), [redux](https://github.com/reactjs/redux) and [Jet](http://jetbus.io) realtime. \n\nThe todos are synced between browsers.\n\n[![Live](./todos.gif)](https://todos.now.sh)\n\nThe canonical TodoApp using [node-jet](https://github.com/lipp/node-jet) as realtime data backend mechanism. [Jet](https://jetbus.io) uses websockets for fetching/streaming the data and to make changes to the data.\n[Redux](https://github.com/reactjs/redux) and [redux-jet](https://github.com/lipp/redux-jet) are used for a clear and simple unidirectional data flow.\n\n[next.js](https://github.com/zeit/next.js/) allows to easily make the server -\u003e client render transition (awesome!!!).\n\n[redux-jet](https://github.com/lipp/redux-jet) hides the stateful nature of the realtime streaming (where differences are pushed over the wire) and helps doing the isomorphic transition with `get` and `fetch` seamlessly.\n\nIt's note worthy, that the [redux store](https://github.com/lipp/next-todos/blob/master/store.js#L16) is identical for server and client js code! The only difference is that the store population on the server is triggered by the \"finite\" [redux-jet `get`](https://github.com/lipp/next-todos/blob/master/store.js#L21) whereas the client issues an \"infinite / streaming\" [redux-jet `fetch`](https://github.com/lipp/next-todos/blob/master/store.js#L24)\n\nThe [components](https://github.com/lipp/next-todos/blob/master/components/) are jet-agnostic. All the jet related stuff is located in [containers dir](https://github.com/lipp/next-todos/blob/master/containers) and [store.js](https://github.com/lipp/next-todos/blob/master/store.js).\n\n# Server\n\nThe server source can be found [here](https://github.com/lipp/node-jet/blob/master/examples/todo/todo-server.js) (90 Lines extra). \n\n# Inspect with Radar\n\n[Radar](https://lipp.github.io/radar/#/) provides another view on the realtime data which is provided by a [Jet Daemon](https://github.com/lipp/node-jet/blob/master/examples/todo/todo-server.js) running on `todos-demo.now.sh`.\n\nEnter this daemon url: `wss://todos-demo.now.sh`\n\n# Developing\n\n```bash\nnpm run dev\n```\n\n# Production\n\n```bash\nnpm run build\nnpm start\n```\n\n# Not covered\n\n- Authentication / session\n- Scaling\n\n# Related\n\n[100 lines of code Hackernews reader](https://github.com/lipp/hackernews) using next.js and graphql.\n","funding_links":[],"categories":["Apps"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipp%2Fnext-todos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flipp%2Fnext-todos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipp%2Fnext-todos/lists"}