{"id":32893538,"url":"https://github.com/sorawitt/preact-signals-example","last_synced_at":"2026-04-14T03:32:37.836Z","repository":{"id":323298477,"uuid":"1092780101","full_name":"sorawitt/preact-signals-example","owner":"sorawitt","description":"A small Preact + Signals dashboard that lets you add teammates and see how shared signals, computed state, and Tailwind styling fit together.","archived":false,"fork":false,"pushed_at":"2025-11-09T09:52:09.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-09T11:29:13.372Z","etag":null,"topics":["bun","example","preact","preact-signals","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sorawitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-11-09T09:50:00.000Z","updated_at":"2025-11-09T09:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sorawitt/preact-signals-example","commit_stats":null,"previous_names":["sorawitt/preact-signals-example"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sorawitt/preact-signals-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorawitt%2Fpreact-signals-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorawitt%2Fpreact-signals-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorawitt%2Fpreact-signals-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorawitt%2Fpreact-signals-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sorawitt","download_url":"https://codeload.github.com/sorawitt/preact-signals-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorawitt%2Fpreact-signals-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"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":["bun","example","preact","preact-signals","tailwindcss","typescript"],"created_at":"2025-11-10T07:00:35.158Z","updated_at":"2026-04-14T03:32:37.820Z","avatar_url":"https://github.com/sorawitt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-preact-signals\n\nA tiny Preact + Signals playground where you can add teammates in a clean little dashboard, perfect for seeing shared state, simple computed logic, and Tailwind styling work side by side without a ton of boilerplate.\n\n## Features\n\n- Minimal roster dashboard built with Preact + TypeScript\n- Global state handled via Preact Signals (draft user, roster, helpers)\n- Tailwind CSS for quick, readable styling\n- Friendly empty state and trimmed form inputs\n\n## Tech Stack\n\n- [Preact](https://preactjs.com/) + [@preact/signals](https://github.com/preactjs/signals)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [Vite](https://vitejs.dev/)\n- [Bun](https://bun.sh/) (dependency manager + dev server)\n\n## Getting Started\n\n1. **Install dependencies**\n   ```bash\n   bun install\n   ```\n2. **Start the dev server**\n   ```bash\n   bun dev\n   ```\n3. Open `http://localhost:5173` and add your first teammate.\n\n## Scripts\n\n| Command      | Description                   |\n| ------------ | ----------------------------- |\n| `bun dev`    | Start Vite dev server         |\n| `bun run build` | Type-check + build for prod |\n| `bun preview` | Preview the production build |\n\n## Project Notes\n\n- Shared state lives in `src/signals/store.tsx` with signals, computed state (`roster`), and helpers (`prependUser`, `resetUserDraft`).\n- The form (`src/components/UserForm.tsx`) writes to `userDraft`, trims values, and prepends a new user.\n- The table (`src/components/UserTable.tsx`) reads `roster.value` and shows a Thai empty message when no records exist.\n\nFeel free to fork, tweak the styles, or extend the roster logic to practice more with Signals.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorawitt%2Fpreact-signals-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsorawitt%2Fpreact-signals-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorawitt%2Fpreact-signals-example/lists"}