{"id":50740086,"url":"https://github.com/elianiva/elianiva.com","last_synced_at":"2026-06-10T16:32:05.667Z","repository":{"id":37055543,"uuid":"301461845","full_name":"elianiva/elianiva.com","owner":"elianiva","description":"My personal website made with Astro + Svelte and UnoCSS. Deployed at Cloudflare Pages.","archived":false,"fork":false,"pushed_at":"2026-05-28T10:33:38.000Z","size":12567,"stargazers_count":127,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-05-28T12:18:23.316Z","etag":null,"topics":["astro","blog","svelte","unocss","website"],"latest_commit_sha":null,"homepage":"https://elianiva.com","language":"MDX","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/elianiva.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":"2020-10-05T15:52:29.000Z","updated_at":"2026-05-28T10:33:42.000Z","dependencies_parsed_at":"2023-12-20T13:24:33.420Z","dependency_job_id":"d25f8276-a9bf-403b-8727-6be141351fbe","html_url":"https://github.com/elianiva/elianiva.com","commit_stats":null,"previous_names":["elianiva/elianiva.com"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elianiva/elianiva.com","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elianiva%2Felianiva.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elianiva%2Felianiva.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elianiva%2Felianiva.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elianiva%2Felianiva.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elianiva","download_url":"https://codeload.github.com/elianiva/elianiva.com/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elianiva%2Felianiva.com/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34161283,"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-06-10T02:00:07.152Z","response_time":89,"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":["astro","blog","svelte","unocss","website"],"created_at":"2026-06-10T16:32:02.748Z","updated_at":"2026-06-10T16:32:05.661Z","avatar_url":"https://github.com/elianiva.png","language":"MDX","funding_links":[],"categories":[],"sub_categories":[],"readme":"Welcome to your new TanStack Start app!\n\n# Getting Started\n\nTo run this application:\n\n```bash\npnpm install\npnpm dev\n```\n\n# Building For Production\n\nTo build this application for production:\n\n```bash\npnpm build\n```\n\n## Testing\n\nThis project uses [Vitest](https://vitest.dev/) for testing. You can run the tests with:\n\n```bash\npnpm test\n```\n\n## Styling\n\nThis project uses [Tailwind CSS](https://tailwindcss.com/) for styling.\n\n### Removing Tailwind CSS\n\nIf you prefer not to use Tailwind CSS:\n\n1. Remove the demo pages in `src/routes/demo/`\n2. Replace the Tailwind import in `src/styles.css` with your own styles\n3. Remove `tailwindcss()` from the plugins array in `vite.config.ts`\n4. Uninstall the packages: `pnpm add @tailwindcss/vite tailwindcss --dev`\n\n## T3Env\n\n- You can use T3Env to add type safety to your environment variables.\n- Add Environment variables to the `src/env.mjs` file.\n- Use the environment variables in your code.\n\n### Usage\n\n```ts\nimport { env } from \"~/env\";\n\nconsole.log(env.VITE_APP_TITLE);\n```\n\n## Shadcn\n\nAdd components using the latest version of [Shadcn](https://ui.shadcn.com/).\n\n```bash\npnpm dlx shadcn@latest add button\n```\n\n## Routing\n\nThis project uses [TanStack Router](https://tanstack.com/router) with file-based routing. Routes are managed as files in `src/routes`.\n\n### Adding A Route\n\nTo add a new route to your application just add a new file in the `./src/routes` directory.\n\nTanStack will automatically generate the content of the route file for you.\n\nNow that you have two routes you can use a `Link` component to navigate between them.\n\n### Adding Links\n\nTo use SPA (Single Page Application) navigation you will need to import the `Link` component from `@tanstack/react-router`.\n\n```tsx\nimport { Link } from \"@tanstack/react-router\";\n```\n\nThen anywhere in your JSX you can use it like so:\n\n```tsx\n\u003cLink to=\"/about\"\u003eAbout\u003c/Link\u003e\n```\n\nThis will create a link that will navigate to the `/about` route.\n\nMore information on the `Link` component can be found in the [Link documentation](https://tanstack.com/router/v1/docs/framework/react/api/router/linkComponent).\n\n### Using A Layout\n\nIn the File Based Routing setup the layout is located in `src/routes/__root.tsx`. Anything you add to the root route will appear in all the routes. The route content will appear in the JSX where you render `{children}` in the `shellComponent`.\n\nHere is an example layout that includes a header:\n\n```tsx\nimport { HeadContent, Scripts, createRootRoute } from \"@tanstack/react-router\";\n\nexport const Route = createRootRoute({\n  head: () =\u003e ({\n    meta: [\n      { charSet: \"utf-8\" },\n      { name: \"viewport\", content: \"width=device-width, initial-scale=1\" },\n      { title: \"My App\" },\n    ],\n  }),\n  shellComponent: ({ children }) =\u003e (\n    \u003chtml lang=\"en\"\u003e\n      \u003chead\u003e\n        \u003cHeadContent /\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003cheader\u003e\n          \u003cnav\u003e\n            \u003cLink to=\"/\"\u003eHome\u003c/Link\u003e\n            \u003cLink to=\"/about\"\u003eAbout\u003c/Link\u003e\n          \u003c/nav\u003e\n        \u003c/header\u003e\n        {children}\n        \u003cScripts /\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e\n  ),\n});\n```\n\nMore information on layouts can be found in the [Layouts documentation](https://tanstack.com/router/latest/docs/framework/react/guide/routing-concepts#layouts).\n\n## Server Functions\n\nTanStack Start provides server functions that allow you to write server-side code that seamlessly integrates with your client components.\n\n```tsx\nimport { createServerFn } from \"@tanstack/react-start\";\n\nconst getServerTime = createServerFn({\n  method: \"GET\",\n}).handler(async () =\u003e {\n  return new Date().toISOString();\n});\n\n// Use in a component\nfunction MyComponent() {\n  const [time, setTime] = useState(\"\");\n\n  useEffect(() =\u003e {\n    getServerTime().then(setTime);\n  }, []);\n\n  return \u003cdiv\u003eServer time: {time}\u003c/div\u003e;\n}\n```\n\n## API Routes\n\nYou can create API routes by using the `server` property in your route definitions:\n\n```tsx\nimport { createFileRoute } from \"@tanstack/react-router\";\nimport { json } from \"@tanstack/react-start\";\n\nexport const Route = createFileRoute(\"/api/hello\")({\n  server: {\n    handlers: {\n      GET: () =\u003e json({ message: \"Hello, World!\" }),\n    },\n  },\n});\n```\n\n## Data Fetching\n\nThere are multiple ways to fetch data in your application. You can use TanStack Query to fetch data from a server. But you can also use the `loader` functionality built into TanStack Router to load the data for a route before it's rendered.\n\nFor example:\n\n```tsx\nimport { createFileRoute } from \"@tanstack/react-router\";\n\nexport const Route = createFileRoute(\"/people\")({\n  loader: async () =\u003e {\n    const response = await fetch(\"https://swapi.dev/api/people\");\n    return response.json();\n  },\n  component: PeopleComponent,\n});\n\nfunction PeopleComponent() {\n  const data = Route.useLoaderData();\n  return (\n    \u003cul\u003e\n      {data.results.map((person) =\u003e (\n        \u003cli key={person.name}\u003e{person.name}\u003c/li\u003e\n      ))}\n    \u003c/ul\u003e\n  );\n}\n```\n\nLoaders simplify your data fetching logic dramatically. Check out more information in the [Loader documentation](https://tanstack.com/router/latest/docs/framework/react/guide/data-loading#loader-parameters).\n\n# Demo files\n\nFiles prefixed with `demo` can be safely deleted. They are there to provide a starting point for you to play around with the features you've installed.\n\n# Learn More\n\nYou can learn more about all of the offerings from TanStack in the [TanStack documentation](https://tanstack.com).\n\nFor TanStack Start specific documentation, visit [TanStack Start](https://tanstack.com/start).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felianiva%2Felianiva.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felianiva%2Felianiva.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felianiva%2Felianiva.com/lists"}