{"id":16266026,"url":"https://github.com/zernonia/timelino","last_synced_at":"2025-03-19T22:30:35.392Z","repository":{"id":49743386,"uuid":"414282559","full_name":"zernonia/timelino","owner":"zernonia","description":"Twitter-liked platform without toxic and negativity","archived":false,"fork":false,"pushed_at":"2021-10-12T04:29:27.000Z","size":647,"stargazers_count":48,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T21:14:19.544Z","etag":null,"topics":["hacktoberfest","open-source","supabase","twitter","vite","vue"],"latest_commit_sha":null,"homepage":"http://timelino.vercel.app/","language":"Vue","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/zernonia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://www.buymeacoffee.com/zernonia"]}},"created_at":"2021-10-06T16:09:37.000Z","updated_at":"2024-02-07T05:55:01.000Z","dependencies_parsed_at":"2022-09-20T23:03:10.926Z","dependency_job_id":null,"html_url":"https://github.com/zernonia/timelino","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/zernonia%2Ftimelino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Ftimelino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Ftimelino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zernonia%2Ftimelino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zernonia","download_url":"https://codeload.github.com/zernonia/timelino/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244022652,"owners_count":20385134,"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":["hacktoberfest","open-source","supabase","twitter","vite","vue"],"created_at":"2024-10-10T17:21:31.834Z","updated_at":"2025-03-19T22:30:35.069Z","avatar_url":"https://github.com/zernonia.png","language":"Vue","funding_links":["https://www.buymeacoffee.com/zernonia"],"categories":["Vue"],"sub_categories":[],"readme":"\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/zernonia/timelino\"\u003e\n    \u003cimg src=\"src/assets/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eTimelino\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Twitter-liked platform without toxic and negativity\n    \u003cbr /\u003e\n    Open Source • Super Early MVP\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://timelino.vercel.app/\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/zernonia/timelino/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/zernonia/timelino/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n![Timelino](public/og.png)\n\n## 🚀 Features\n\n- 🔨 Showcase your creation, idea, or life style\n- 🚪 Simple login (Google, email)\n- 👀 No comment system (No hate/negativity)\n- 🤚 Editable timeline\n- 🆓 Ads-free\n\n## 📇 About The Project\n\n**Twitter without toxic and negativity**\n\nThe main purpose of this idea is to create a **toxic-free** and **negativity-free** platform for users to share their latest creation or idea. This is actually to solve my own craving for a platform like this.\n\n### Scope\n\nThis project turns out to be quite a challenge for me, as I'm currently still having a full-time job, and the complexity of the relational database is not my forte yet. But I somehow managed to say this is the **MVP** for this project.\n\n### Inspiration\n\nI saw a few post on Twitter where the user decided to leave the platform because of the negativity, and all the hates.\nFurthermore, [Polywork](https://www.polywork.com/) inspired me to create a platform for those user. I didn't enjoy Polywork because of its super high complexity for someone who just wanted to post a simple story on my timeline. Thus, I look this liberty, and challenge to create this platform.\n\n### 🔨 Built With\n\n- [Vue 3](https://v3.vuejs.org/)\n- [Vite](https://vitejs.dev/)\n- [WindiCSS](https://windicss.org/)\n- [Supabase](https://supabase.io)\n\n## ⚡ Supabase\n\n- Supabase Auth\n- Supabase Database\n- Supabase Storage\n- Supabase Realtime (for Notications)\n\n### Database Schema\n\n![Timelino schema](public/schema.png)\n\n\u003cp align = \"center\"\u003e\nSchema generated by \u003ca href=\"https://supabase-schema.vercel.app/\"\u003eSupabase Schema\u003c/a\u003e\n\u003c/p\u003e\n\n### Custom SQL\n\nMost of the tables was generated using Supabase Dashboard, but altered using custom script. Unfortunately, I forgot to save those script. But the SQL functions and triggers are listed below.\n\n1 - Handle New User (Function \u0026 Trigger)\n\n```sql\n/**\n* This trigger automatically creates a user entry when a new user signs up via Supabase Auth.\n*/\ncreate or replace function public.handle_new_user()\nreturns trigger as $$\nbegin\n  insert into public.profiles (id, avatar_url, full_name)\n  values (new.id, new.raw_user_meta_data-\u003e\u003e'avatar_url', new.raw_user_meta_data-\u003e\u003e'full_name');\n  return new;\nend;\n$$ language plpgsql security definer;\n\ncreate trigger on_auth_user_created\n  after insert on auth.users\n  for each row execute procedure public.handle_new_user();\n```\n\n2 - Handle New Follower (Function \u0026 Trigger) (WIP)\n\n```sql\n/**\n* This trigger automatically creates a nofication entry when a user follow other user.\n*/\ncreate or replace function public.handle_new_follower()\nreturns trigger as $$\nbegin\n  insert into public.notifications (target_id, type, payload, source_id)\n  values (\n    new.following_id,\n    'follow',\n    (select row_to_json(c) from (select b.username, b.avatar_url from followers a left join profiles b on a.user_id = b.id where a.user_id = new.user_id limit 1) c),\n    new.user_id\n  );\n  return new;\nend;\n$$ language plpgsql security definer;\n```\n\n3 - Get User's Story (Function)\n\n```sql\n/**\n* This function populate the story with tagging details.\n*/\ncreate or replace function get_stories (user_name text)\n  returns table (id uuid, date date, story text, tagging uuid[], user_id uuid, image text, created_at timestamp, tags json)\n  language plpgsql\n  as\n  $$\n    begin\n    return query\n      select a.*, json_agg(b) as tags from stories a left join tags b on b.id = any(a.tagging) where a.user_id = (select c.id from profiles c where c.username = user_name) group by a.id;\n    end;\n  $$\n```\n\n4 - Get User's Story (Function)\n\n```sql\n/**\n* This function populate the story with filtered tagging details.\n*/\ncreate or replace function get_tagged_stories (user_name text, tag_id uuid)\n  returns table (id uuid, date date, story text, tagging uuid[], user_id uuid, image text, created_at timestamp, tags json)\n  language plpgsql\n  as\n  $$\n    begin\n    return query\n      select a.*, json_agg(b) as tags from stories a left join tags b on b.id = any(a.tagging) where a.user_id = (select c.id from profiles c where c.username = user_name) and b.id = tag_id group by a.id;\n    end;\n  $$\n```\n\n5- Get Story of the user you follow (Function)\n\n```sql\n/**\n* This function returns the stories of the users you are following. Used in '/home'.\n*/\ncreate or replace function get_following_stories ()\n  returns table (id uuid, date date, story text, tagging uuid[], user_id uuid, image text, created_at timestamp, tags json, user_data json)\n  language plpgsql\n  as\n  $$\n    begin\n    return query\n      select d.*, row_to_json(e) as user_data from profiles e right join\n      (select a.*, json_agg(b) as tags\n        from stories a\n        left join tags b\n        on b.id = any(a.tagging)\n        where a.user_id in (select c.following_id from followers c where c.user_id = auth.uid())\n        group by a.id\n        order by created_at desc\n      ) d\n      on e.id = d.user_id\n        ;\n    end;\n  $$\n```\n\n6 - Get Suggested User (Function) (WIP)\n\n```sql\n/**\n* This function returns profiles that you should follow. WIP\n*/\ncreate or replace function get_suggested_user()\n  returns setof profiles\n  language plpgsql\n  as\n  $$\n    begin\n    return query\n      select * from profiles where id \u003c\u003e auth.uid() order by random();\n    end;\n  $$\n```\n\n## ➕ Contributing\n\nIf you like this project, and see potential in it, feel free to reach out to me at Twitter ([@zernonia](https://twitter.com/zernonia)) or `zernonia@gmail.com`\n\n## 📜 License\n\nNot Associated with Supabase.\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n# 📧 Contact\n\nZernonia - [@zernonia](https://twitter.com/zernonia) - zernonia@gmail.com\n\nAlso, if you like my work, please buy me a coffee ☕😳\n\n\u003ca href=\"https://www.buymeacoffee.com/zernonia\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Logo\" \u003e\n  \u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzernonia%2Ftimelino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzernonia%2Ftimelino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzernonia%2Ftimelino/lists"}