{"id":23577429,"url":"https://github.com/bernoussama/xbyexample","last_synced_at":"2025-11-02T08:30:35.723Z","repository":{"id":265546102,"uuid":"896011975","full_name":"bernoussama/xbyexample","owner":"bernoussama","description":"X by Example is a CookBook for programming languages!","archived":false,"fork":false,"pushed_at":"2024-11-30T21:55:18.000Z","size":110,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T21:39:12.030Z","etag":null,"topics":["examples","learning","learning-notes","learning-resources"],"latest_commit_sha":null,"homepage":"https://xbyexample.dev","language":"Astro","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/bernoussama.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-11-29T11:17:46.000Z","updated_at":"2024-11-30T21:55:21.000Z","dependencies_parsed_at":"2024-11-29T21:42:20.421Z","dependency_job_id":null,"html_url":"https://github.com/bernoussama/xbyexample","commit_stats":null,"previous_names":["bernoussama/xbyexample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fxbyexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fxbyexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fxbyexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernoussama%2Fxbyexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernoussama","download_url":"https://codeload.github.com/bernoussama/xbyexample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239389576,"owners_count":19630310,"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":["examples","learning","learning-notes","learning-resources"],"created_at":"2024-12-26T22:29:08.054Z","updated_at":"2025-11-02T08:30:35.669Z","avatar_url":"https://github.com/bernoussama.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Logo](/public/favicon.png) by Example\n\n[xbyexample.dev][site] is a website that serve as a reference for programming languages via annotated example programs.\n\n## Motivation\n\nI have a lot of unorganised notes of programming languages and i needed somewhere to put them, so i built this website to organise my notes, keep them as a reference and share them with the community.\n\nI decided to go with [Astro][astro] because of markdown support, i write examples in markdown and Astro generate the static HTML, that's all i needed.\n\n## 🚀 Project Structure\n\n```text\n/\n├── public/\n│   └── favicon.svg\n├── src/\n│   ├── components/\n│   │   └──\n│   ├── layouts/\n│   │   └── Layout.astro\n│   └── pages/\n│       └── [language]\n│           └── index.astro\n│           └── *.md\n└── package.json\n```\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:4321`      |\n| `npm run build`           | Build production site to `./dist/`               |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n\n## 👏 Contributing\n\nI would love your help! Contribute by forking the repo and opening pull requests.\nAll pull requests should be submitted to the main branch.\n\n### How to Contribute\n\n- Fork the repo\n- Clone your fork locally\n- install dependencies(make sure you have node installed)\n- Add an Example\n  - to add an example, run `npm run add -l \u003clanguage\u003e \u003cexample-name\u003e`, a script will generate a markdown named `\u003cexample-name\u003e.md` in the `src/pages/\u003clanguage\u003e`, containing a boilerplate to add your example.\n\n## License\n\n\u003e This project is [MIT][license] licensed\n\n\u003e The examples are licensed under [CreativeCommons][ccby4.0]\n\n## 👀 Acknowledgments\n\n- Thanks [Go by Example][gobyexample] for inspiring this project.\n- Made with [Astro][astro]\n\n[site]: https://xbyexample.dev\n[astro]: https://astro.build\n[gobyexample]: https://gobyexample.com\n[ccby4.0]: https://creativecommons.org/licenses/by/4.0/\n[license]: /LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernoussama%2Fxbyexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernoussama%2Fxbyexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernoussama%2Fxbyexample/lists"}