{"id":14006828,"url":"https://github.com/denoland/denobyexample","last_synced_at":"2025-10-01T00:32:26.318Z","repository":{"id":41483644,"uuid":"429563032","full_name":"denoland/denobyexample","owner":"denoland","description":"[Archived] Deno by example - short examples showcasing how to use Deno. Now the examples have been moved to https://github.com/denoland/deno-docs / https://docs.deno.com/examples","archived":true,"fork":false,"pushed_at":"2024-05-17T11:41:17.000Z","size":354,"stargazers_count":145,"open_issues_count":8,"forks_count":40,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-01-20T14:40:57.062Z","etag":null,"topics":["deno","examples"],"latest_commit_sha":null,"homepage":"https://examples.deno.land/","language":"TypeScript","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/denoland.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-18T20:00:26.000Z","updated_at":"2024-12-16T14:43:37.000Z","dependencies_parsed_at":"2023-11-21T07:51:46.555Z","dependency_job_id":"db19c5ac-5f4e-40ae-a378-e7c019cc3a6f","html_url":"https://github.com/denoland/denobyexample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denoland/denobyexample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdenobyexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdenobyexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdenobyexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdenobyexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denoland","download_url":"https://codeload.github.com/denoland/denobyexample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdenobyexample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277777970,"owners_count":25875397,"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","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"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":["deno","examples"],"created_at":"2024-08-10T10:01:39.674Z","updated_at":"2025-10-01T00:32:26.025Z","avatar_url":"https://github.com/denoland.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Archived\n\nThe contents of this repository have been moved to\nhttps://docs.deno.com/examples (website) / https://github.com/denoland/deno-docs\n(source).\n\n# Deno by Example\n\nThis repository contains the source code for https://examples.deno.land/.\n\nDeno by Example is a collection of small snippets showcasing various functions\nof the APIs implemented in Deno.\n\n- Examples are written in TypeScript\n- Each example should be a single file, no more than 50 lines\n- Each example should be a self-contained unit, and should depend on no\n  dependencies other than Deno builtins and the standard library, unless a\n  third-party library is strictly required.\n- Each example should be runnable without additional dependencies on all systems\n  (exceptions can be made for platform specific functionality)\n- Examples should be introduce at most one (or in exceptional cases two or\n  three) concepts in Deno / Web APIs. Existing concepts should be linked to.\n- Code should be kept _really simple_, and should be easy to read and understand\n  by anyone. Do not use complicated code constructs, or hard to follow builtins\n  like `Array.reduce`\n- Concepts introduced in an example should be explained\n\n## Contributing\n\n### Adding an example\n\nTo add an example, create a file in the `data` directory. The file name should\nbe the id of the example, and the contents should be the code for the example.\nThe file should be in the `.ts` format. The file should start with a JSDoc style\nmulti line comment that describes the example:\n\n```ts\n/**\n * @title HTTP server: Hello World\n * @difficulty intermediate\n * @tags cli, deploy\n * @run --allow-net \u003curl\u003e\n *\n * An example of a HTTP server that serves a \"Hello World\" message.\n */\n```\n\nYou should add a title, a difficulty level (`beginner` or `intermediate`), and a\nlist of tags (`cli`, `deploy`, `web` depending on where an example is runnable).\nThe `@run` tag should be included if the example can be run locally by just\ndoing `deno run \u003curl\u003e`. If running requires permissions, add these:\n\n```ts\n/**\n * ...\n * @run --allow-net --allow-read \u003curl\u003e\n */\n```\n\nAfter the pragmas, you can add a description of the example. This is optional,\nbut recommended for most examples. It should not be longer than one or two\nlines. The description shows up at the top of the example in the example page,\nand in search results.\n\nAfter the JS Doc comment, you can write the code. Code can be prefixed with a\ncomment that describes the code. The comment will be rendered next to the code\nin the example page.\n\nNow add your example to the `toc.js` file. This will cause it to show up on the\nindex page.\n\nAfter you have added the example, run `deno task fmt` and `deno task lint` to\nformat and lint the example.\n\n### Running the webserver locally\n\nTo run the webserver locally, open a terminal and run:\n\n```sh\ndeno task start\n```\n\nYou can then view the page at http://localhost:8000/\n\nBefore opening a PR with a change, make sure `deno task fmt` and\n`deno task lint` pass.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenoland%2Fdenobyexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenoland%2Fdenobyexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenoland%2Fdenobyexample/lists"}