{"id":50394468,"url":"https://github.com/dopamane/freestyle","last_synced_at":"2026-05-30T20:02:50.555Z","repository":{"id":358518132,"uuid":"1240705849","full_name":"dopamane/freestyle","owner":"dopamane","description":"Freestyle concurrent TUI","archived":false,"fork":false,"pushed_at":"2026-05-25T22:12:43.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T23:25:57.422Z","etag":null,"topics":["concurrency","graphics","haskell","stm","tui"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/dopamane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T13:16:47.000Z","updated_at":"2026-05-25T22:09:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dopamane/freestyle","commit_stats":null,"previous_names":["dopamane/freestyle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dopamane/freestyle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopamane%2Ffreestyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopamane%2Ffreestyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopamane%2Ffreestyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopamane%2Ffreestyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dopamane","download_url":"https://codeload.github.com/dopamane/freestyle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dopamane%2Ffreestyle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33707328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":["concurrency","graphics","haskell","stm","tui"],"created_at":"2026-05-30T20:02:49.691Z","updated_at":"2026-05-30T20:02:50.546Z","avatar_url":"https://github.com/dopamane.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Freestyle\n\nCreate and display pretty terminal graphics\n\nConstruct a new handle and configuration:\n\n  * a way to read state\n  * a function to draw the current state\n  * a function to layout the current doc\n  * a function to render the `SimpleDocStream` to `Text`\n\nRun the configuration using `runFreestyle`.\nNote, it has an `Eq ann` constraint. Freestyle re-renders\nthe terminal if the `SimpleDocStream ann` changes.\nThis way, apps may make state changes without causing\nterminal re-rendering.\n\nThe `Freestyle` handle supports on-the-fly\nstate, draw, layout, and rendering changes. Use dynamic\nlayout, rendering algorithms based on environment\nsuch as window size.\n\nExample\n```hs\nimport Freestyle\n\nmain :: IO ()\nmain = do\n  s \u003c- newTVarIO \"FREESTYLE!!!FREESTYLE!!!FREESTYLE!!!\"\n  f \u003c- newFreestyleIO\n  concurrently_ (runFreestyle f $ cfg s) $\n    forever $ do\n      atomically $ modifyTVar' s rote\n      threadDelay 200000\n  where\n    rote s = last s : init s\n\ncfg :: TVar String -\u003e FreestyleCfg String AnsiStyle\ncfg s = FreestyleCfg\n  { readState = readTVar s\n  , drawState = \\s' -\u003e return $\n    applyWhen (take 1 s' == \"E\") (annotate $ color Blue) $ pretty s'\n  , layoutDoc = return . layoutPretty defaultLayoutOptions\n  , renderDoc = return . renderLazy\n  }\n```\n\nDevelopment\n```\ncabal build\ncabal run\ncabal haddock\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdopamane%2Ffreestyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdopamane%2Ffreestyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdopamane%2Ffreestyle/lists"}