{"id":29630097,"url":"https://github.com/nounder/effect-start","last_synced_at":"2025-07-21T10:32:03.447Z","repository":{"id":267008534,"uuid":"898519084","full_name":"nounder/effect-start","owner":"nounder","description":"Declarative full-stack Effect apps","archived":false,"fork":false,"pushed_at":"2025-07-18T22:31:03.000Z","size":844,"stargazers_count":8,"open_issues_count":16,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T03:15:20.080Z","etag":null,"topics":["bun","bundler","effect","effect-ts","full-stack"],"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/nounder.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}},"created_at":"2024-12-04T14:40:33.000Z","updated_at":"2025-07-18T22:31:07.000Z","dependencies_parsed_at":"2025-02-14T08:32:39.929Z","dependency_job_id":"f9148823-5070-4de6-a181-cf447da702a9","html_url":"https://github.com/nounder/effect-start","commit_stats":null,"previous_names":["nounder/solid-deno","nounder/effect-bundler","nounder/effect-start"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nounder/effect-start","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nounder%2Feffect-start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nounder%2Feffect-start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nounder%2Feffect-start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nounder%2Feffect-start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nounder","download_url":"https://codeload.github.com/nounder/effect-start/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nounder%2Feffect-start/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266285366,"owners_count":23905329,"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":["bun","bundler","effect","effect-ts","full-stack"],"created_at":"2025-07-21T10:31:28.752Z","updated_at":"2025-07-21T10:32:03.432Z","avatar_url":"https://github.com/nounder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Effect Start\n\nBuild declarative full-stack apps with Effect.\n\nThis project is in its early stage. I use it in two different projects.\n\nHowever, the code is well documented so you should be able to figure out how to use it\nby checking out `examples/` directory. Feel free to hit me up if not.\n\nIf you are an AI coding agent, please read `AGENTS.md` for more instructions.\n\n## Examples\n\nSee `examples/` directory for templates and additional usage using Preact, React, TanStack, and others.\n\nYou can clone it by using degit, like so:\n\n```sh\nbunx degit nounder/effect-start/examples/bun-preact target\n```\n\n## Development\n\n### File-based Routing\n\nEffect Start provides automatic file-based routing with support for frontend pages, backend endpoints, and stackable layouts.\n\n```\nsrc/routes/\n├── _layout.tsx          # Root layout\n├── _page.tsx            # Home page (/)\n├── about/\n│   ├── _layout.tsx      # Nested layout for /about/*\n│   └── _page.tsx        # Static route (/about)\n├── users/\n│   ├── _page.tsx        # Users list (/users)\n│   └── $id/_page.tsx    # Dynamic route (/users/:id)\n└── $/_page.tsx          # Splat/catch-all (/**)\n```\n\n```ts\nimport { FileRouter } from \"effect-start\"\n\n// Generate route manifest and watch for changes\nconst routerLayer = FileRouter.layer(import.meta.resolve(\"routes\"))\n```\n\n**Note:** Ensure `FileRouter.layer` is provided after any bundle layer to guarantee the manifest file is properly generated before bundling.\n\n### Tailwind CSS Support\n\nEffect Start includes built-in support for Tailwind CSS:\n\n```ts\nimport { Layer } from \"effect\"\nimport { Start } from \"effect-start\"\nimport {\n  BunBundle,\n  BunTailwindPlugin,\n} from \"effect-start/bun\"\n\nconst ClientBundle = BunBundle.bundleClient({\n  entrypoints: [\n    \"./src/index.html\",\n  ],\n  plugins: [\n    BunTailwindPlugin.make(),\n  ],\n})\n\nexport default Layer.mergeAll(\n  ClientBundle,\n)\n\nif (import.meta.main) {\n  Start.serve(() =\u003e import(\"./server\"))\n}\n```\n\nThen in your main CSS files add following file:\n\n```css\n@import \"tailwindcss\";\n```\n\n### Static File Serving\n\n```ts\nimport { HttpRouter } from \"@effect/platform\"\nimport { PublicDirectory } from \"effect-start\"\n\n// Serve files from ./public directory\nconst PublicFiles = PublicDirectory.make()\n\nHttpRouter.empty.pipe(\n  HttpRouter.get(\"*\", PublicFiles),\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnounder%2Feffect-start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnounder%2Feffect-start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnounder%2Feffect-start/lists"}