{"id":16296256,"url":"https://github.com/jannchie/vue-wf","last_synced_at":"2026-01-20T06:33:06.082Z","repository":{"id":197282681,"uuid":"698210390","full_name":"Jannchie/vue-wf","owner":"Jannchie","description":"Vue waterfall layout","archived":false,"fork":false,"pushed_at":"2026-01-14T12:40:04.000Z","size":1481,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T16:50:16.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vue-wf-docs.vercel.app","language":"Vue","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/Jannchie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-29T12:07:00.000Z","updated_at":"2026-01-14T12:40:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6aa2822-64f9-4a40-93bd-f1e8fd076b63","html_url":"https://github.com/Jannchie/vue-wf","commit_stats":null,"previous_names":["jannchie/vue-wf"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/Jannchie/vue-wf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fvue-wf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fvue-wf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fvue-wf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fvue-wf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jannchie","download_url":"https://codeload.github.com/Jannchie/vue-wf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fvue-wf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-10T20:21:51.961Z","updated_at":"2026-01-20T06:33:06.076Z","avatar_url":"https://github.com/Jannchie.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue WF\n\n[![CodeTime badge](https://img.shields.io/endpoint?style=social\u0026url=https%3A%2F%2Fapi.codetime.dev%2Fshield%3Fid%3D2%26project%3Dvue-wf%26in%3D0)](https://codetime.dev)\n\n\u003cp align=\"center\" style=\"overflow: hidden; border-radius:\"\u003e\n  \u003cimg src=\"packages/docs/public/example.png\" alt=\"Example\"\u003e\n\u003c/p\u003e\n\n## Sites\n\n- Documentation: https://vue-wf.jannchie.com\n- Playground demo: https://vue-wf.playground.jannchie.com\n\n## Install\n\n```bash\npnpm install vue-wf\n```\n\n## Usage\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport Waterfall from 'vue-wf'\n\nconst tmps = Array.from({ length: 100 })\nconst heights = [50, 100, 200, 300, 400]\nconst width = 100\nconst items = tmps.map(() =\u003e {\n  const height = heights[Math.floor(Math.random() * heights.length)]\n  return {\n    width,\n    height,\n    src: `https://picsum.photos/${width}/${height}?random=${Math.random()}`,\n  }\n})\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cWaterfall\n    :wrapper-width=\"400\"\n    :item-width=\"width\"\n    :gap=\"20\"\n  \u003e\n    \u003cdiv\n      v-for=\"item, i in items\"\n      :key=\"i\"\n      :style=\"{\n        height: `${item.height / item.width * 100}px`,\n        backgroundImage: `url(${item.src})`,\n      }\"\n    /\u003e\n  \u003c/Waterfall\u003e\n\u003c/template\u003e\n```\n\n### Props\n\n- `item-padding`: extra space around each item (useful for captions or badges). Accepts a number for both axes or an object `{ x, y }`. The legacy `y-gap` prop now maps to `item-padding.y`.\n- `items`: array of `{ width, height }` objects. Both fields are required numbers and are validated at runtime.\n\n### Virtual rendering tips\n\n- Set the outer container to a fixed height with `overflow: auto` (e.g., `height: 100vh; overflow: auto;`). This allows the component to measure the viewport and only render items inside (plus the `rangeExpand` buffer).\n- If `rangeExpand` is set to `0`, only the items currently in view are rendered. Increase it to preload items above/below the viewport for smoother scrolling.\n\n## Packages\n\n- `packages/vue-wf`: core library source and build artifacts.\n- `packages/docs`: VitePress documentation site.\n- `packages/playground`: interactive playground project.\n\n## Development\n\n```bash\npnpm install\npnpm build\npnpm dev:all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannchie%2Fvue-wf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjannchie%2Fvue-wf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannchie%2Fvue-wf/lists"}