{"id":13660186,"url":"https://github.com/opendnd/genetica","last_synced_at":"2025-04-24T19:30:39.147Z","repository":{"id":27693993,"uuid":"114942125","full_name":"opendnd/genetica","owner":"opendnd","description":"This is a tool for using a simplified genetics system to generate inheritable traits for DnD characters.","archived":false,"fork":false,"pushed_at":"2022-02-11T05:01:07.000Z","size":1872,"stargazers_count":22,"open_issues_count":10,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T15:46:33.210Z","etag":null,"topics":["chromosome","dm-tools","dna","dnd","dnd-characters","dnd-npc-generator","dnd-tools","dnd5e","dungeon-master","dungeons-and-dragons","inheritable-traits","roll","simplified-genetics","trait"],"latest_commit_sha":null,"homepage":"http://opendnd.org","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/opendnd.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}},"created_at":"2017-12-20T23:56:11.000Z","updated_at":"2024-12-21T12:31:16.000Z","dependencies_parsed_at":"2022-08-07T13:00:59.100Z","dependency_job_id":null,"html_url":"https://github.com/opendnd/genetica","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendnd%2Fgenetica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendnd%2Fgenetica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendnd%2Fgenetica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendnd%2Fgenetica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opendnd","download_url":"https://codeload.github.com/opendnd/genetica/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250693441,"owners_count":21472264,"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":["chromosome","dm-tools","dna","dnd","dnd-characters","dnd-npc-generator","dnd-tools","dnd5e","dungeon-master","dungeons-and-dragons","inheritable-traits","roll","simplified-genetics","trait"],"created_at":"2024-08-02T05:01:18.077Z","updated_at":"2025-04-24T19:30:38.392Z","avatar_url":"https://github.com/opendnd.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# genetica\nGenetica is a tool for using a simplified genetics system to generate inheritable traits for DnD characters.\n\n[![NPM](https://nodei.co/npm/genetica.png?downloads=true\u0026stars=true)](https://nodei.co/npm/genetica/)\n\n[![Build Status](https://travis-ci.org/opendnd/genetica.svg?branch=master)](https://travis-ci.org/opendnd/genetica)\n\n## Installation\nYou will need [node](https://nodejs.org/en/) and [npm](https://www.npmjs.com/) installed. Then run the command:\n\n`npm install -g genetica`\n\n## Generate DNA from CLI\n\n```shell\ngenetica\n```\n\nFollow the prompts for Race and Gender (optional) and your DNA is outputted with information on traits.\n\n## Module Usage\nRequire genetica into your file and create a new Genetica class. \n\n```javascript\nconst Genetica = require('genetica');\n\nconst genetica = new Genetica();\n\nconst opts = {\n  gender: 'female',\n  race: 'Dragonborn'\n};\n\nconst DNA = genetica.generate(opts);\n```\n\n## Simplified DNA System\nEach generated character has a set of DNA with chromosomes. These chromosomes go to applying traits.\n\nEach chromosome has two pairs with dice rolls based on the size of the chromosome: either `d2`, `d4`, `d6`, `d8`, `d12`, `d20`, or `d100`. So for example, Chromosome 1 has a size of `d8` and the pair rolls for `5=8` which means the mother gave a roll of `5` and the father gave a roll of `8`.\n\n__Rules__\n- Dominant/Recessive Genetic Rules: A rule of `3` means if 3 is the highest rolled then the trait applies. For example: a chromosome pair of `1=3` would mean the rule applies as 3 is the highest roll, but for a pair of `8=3` it would not.\n- Co-dominant Genetic Rules: `1=3` means that the roll for the mother must be 1 and the father must be 3 in that order. A `3=1` would not apply the rule. ___This rule is checked BEFORE the dominant/recessive rules___.\n\nInspiration: http://www.chromosomewalk.ch/en/list-of-chromosomes/\n\n## Developing\n\nTo develop genetica,\n\n```shell\ngit clone https://github.com/opendnd/genetica.git\ncd genetica/\nnpm install\n```\n\n## Contributing\n\nIf you'd like to contribute, please fork the repository and use a feature\nbranch. Pull requests are welcome!\n\nGenetica uses the [Airbnb](https://github.com/airbnb/javascript) javascript style.\n\n## Licensing\n\n[MIT](https://github.com/opendnd/genetica/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendnd%2Fgenetica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendnd%2Fgenetica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendnd%2Fgenetica/lists"}