{"id":21519312,"url":"https://github.com/alexwayfer/stream_timer","last_synced_at":"2025-08-11T21:11:37.401Z","repository":{"id":37043920,"uuid":"298574170","full_name":"AlexWayfer/stream_timer","owner":"AlexWayfer","description":"Web application for countdown timers on streams (captured in OBS or similar software)","archived":false,"fork":false,"pushed_at":"2025-08-08T07:03:20.000Z","size":892,"stargazers_count":7,"open_issues_count":9,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-08T09:11:36.127Z","etag":null,"topics":["countdown","obs","streaming","timer"],"latest_commit_sha":null,"homepage":"https://streamtimer.app","language":"Ruby","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/AlexWayfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-25T13:01:45.000Z","updated_at":"2025-08-08T07:03:23.000Z","dependencies_parsed_at":"2023-02-14T15:01:21.065Z","dependency_job_id":"22e63393-b09f-4211-b378-77eb054d3754","html_url":"https://github.com/AlexWayfer/stream_timer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexWayfer/stream_timer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fstream_timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fstream_timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fstream_timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fstream_timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWayfer","download_url":"https://codeload.github.com/AlexWayfer/stream_timer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Fstream_timer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269957420,"owners_count":24503378,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["countdown","obs","streaming","timer"],"created_at":"2024-11-24T00:57:24.493Z","updated_at":"2025-08-11T21:11:37.132Z","avatar_url":"https://github.com/AlexWayfer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stream Timer\n\n## Tech stack\n\n*   [**Flame** web framework](https://github.com/AlexWayfer/flame)\n*   [**Sequel** ORM for relational databases](https://sequel.jeremyevans.net/)\n*   [**Puma** web server](https://puma.io/)\n\n-----\n\n## Deployment\n\n1.  Install [PostgreSQL](https://www.postgresql.org/).\n2.  Install [`rbenv`](https://github.com/rbenv/rbenv).\n3.  Install [`nodenv`](https://github.com/nodenv/nodenv).\n4.  Set the [`EDITOR` environment variable][1] (`nano`, `vim`, `mcedit`, etc.).\n5.  Clone this repository and checkout to directory.\n6.  Run `exe/setup.sh` to install Ruby (with gems), Node.js (with modules) and fill configs.\n7.  Run `toys db create_user` to create database user.\n8.  Run `toys db create` to create database.\n9.  Run `toys db migrate` to run database migrations.\n\n[1]: https://en.wikibooks.org/wiki/Guide_to_Unix/Environment_Variables#EDITOR\n\n### Production (optional)\n\n*   Tune PostgreSQL (via [pgtune](https://pgtune.leopard.in.ua/), for example).\n*   Set correct timezone.\n*   Install `traceroute` (or `traceroute6`) for debug information in network errors reports.\n*   Add UNIX-user for project: `adduser stream_timer`.\n*   Install and configure `nginx` (with symbolic links from `config/nginx`).\n*   Make symbolic link of project directory to `/var/www/stream_timer` (Debian),\n    `/usr/share/nginx/stream_timer` (Fedora) or something  else,\n    and change the root in `nginx` config.\n    to something like `/home/stream_timer/stream_timer`.\n*   Install [Certbot](https://certbot.eff.org/) and generate certificates.\n    *   Optional `openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096`.\n*   Copy `config/systemd.service` to the `~/.config/systemd/user/` directory and enable it.\n    *   Don't forget to enable user services after logout: `loginctl enable-linger stream_timer`.\n\n-----\n\n## Tools\n\n### Server management\n\nFor management server state use `toys server` command.\n\n### Ruby console\n\nRealized with [`pry`](https://github.com/pry/pry):\n\n```shell\ntoys console\n```\n\n(All models and other classes are available)\n\n### PostgreSQL console\n\n```shell\ntoys psql\n```\n\n(For login as `postgres` user use `sudo su - postgres`)\n\n-----\n\n## Database migrations\n\n### Create migration\n\n```shell\ntoys db migrations new migration_name\n```\n\n### List migrations\n\n```shell\ntoys db migrations\n# toys db migrations list\n```\n\n### Run migrations\n\nTo latest:\n\n```shell\ntoys db migrate\n# toys db migrations run\n```\n\nTo specific version (forward or backward):\n\n```shell\ntoys db migrate --target=part_of_target_migration_name_or_version\n```\n\n### Rollback migrations\n\n`N` is a number of migrations to rollback relatively to the latest existing.\n\n```shell\ntoys db migrations rollback N\n```\n\n-----\n\n## Update server\n\n### Locally\n\n```shell\nexe/update.sh\n```\n\nIt will update default (or specified as first argument) branch,\nupdate bundle, stop server, run migrations and start server.\n\n### Remotely\n\n```shell\ntoys deploy\n```\n\nIt will run [`exe/update.sh` command](#locally) remotely\nthrough `ssh` connection from `deploy.yaml` configuration file.\n\n-----\n\n## Update external resources\n\n### [IcoMoon](https://icomoon.io/)\n\n1.  Go to [IcoMoon App](https://icomoon.io/app/)\n2.  Upload project\n    1.  Click `Manage Projects` button\n    2.  Click `Import Project` button\n    3.  Upload `assets/icomoon/selection.json` file\n    4.  Click `Load` button\n3.  Modify the set of icons\n    1.  Enter keyword (like `car` or `man`) into search field\n    2.  Select desired icons\n4.  Update icons\n    1.  Click `Generate SVG \u0026 More` button\n    2.  Check names and other settings\n    3.  Click `Download` button\n    4.  Run `toys icomoon extract %path_to_downloaded_archive%`\n5.  Repeat these steps with the final `assets/icomoon/selection.json` file,\n    because of there is a difference (in `setIdx` and `iconIdx` fields) between\n    original `selection.json` file with freshly added icons and\n    generated `selection.json` file with the same icons.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Fstream_timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwayfer%2Fstream_timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Fstream_timer/lists"}