Codync
A free, open-source 1:1 alternative to Grok Bot and Muse. Message Claude Code, Codex, Cursor and 40+ coding agents as persistent bots from your iPhone, Mac or Linux desktop. Group chats, threads, appr
Believable families around a person: parents, siblings, partners and children, with dates and names drawn from each country's demography. C++23, header-only, deterministic.
Developer toolsGitHub @dasmigOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗Requires C++23 (e.g.,
-std=c++23for GCC/Clang,/std:c++latestfor MSVC).
API Reference · Usage Guide · Data and Method · Releases
Believable families around a person: parents and grandparents, siblings and half-siblings, partners, stepchildren, children and grandchildren, with dates of birth and death and names, drawn from demography (fertility by age, marriage ages, life expectancy) for each country.
A Whole Family. Parents, grandparents, siblings, half-siblings, partners (current and former, of either sex), stepchildren, children (by birth or adoption), grandchildren and twins. Each has a date of birth, whether they are alive, a date of death for the dead and a name that follows the culture's convention (two surnames in Spain, patronymics in Russia).
Demography, Not Templates. The mother's age at a birth comes from the country's fertility by age, the number of siblings from the fertility rate of the birth year, marriages from the mean age at first marriage, and who is alive from a survival curve that matches the country's life expectancy. Data from UN World Population Prospects 2024, the UN World Marriage Data and the UN household database.
Stepparents and Households. Ask for stepparents to get the partners a parent took while the anchor was a child, with the children the parent had with them and their own children from before (stepsiblings), and for home to get who the anchor lives with at the reference date (alone, a couple, with children, with parents, three generations), drawn from the country's household figures. Both are off by default and then change nothing else.
A Person You Know. Give the anchor's name, parents, siblings or unions and the rest is built to match; expand() builds the family of any member of a family so that the two agree.
Deterministic Seeding. Per-call get_family(request, seed) for reproducible results, and family::seed() for replaying a previous generation with the same request and data.
Batch Generation. Generate thousands of results from one seed, on several threads with the same output for any thread count, optionally unique by a key, and stream them as JSON Lines or CSV (see the usage guide).
Identical Everywhere. A seed gives the same result on every compiler, standard library and CPU (GCC, Clang, MSVC, Emscripten; x86-64 and ARM64), checked by known-answer tests.
Extensible Data. Load your own TSV layers on top of the shipped data to add, change or remove entries (extend()), checked before they are applied.
JSON and Replay. to_json() on every result, and a signature() recording the seed and the data it came from.
Compiled-in Data. Define DASMIG_RELATIONSHIP_EMBED to build the lite tier into the program, for WebAssembly and other builds without files.
relgen.hpp is the library released here. Keep core.hpp and the core/ directory (dasmig-core) in the same directory. Add
#include <dasmig/relgen.hpp>
to the files you want to use it in, and supply the resources folder (or define DASMIG_RELATIONSHIP_EMBED). The library composes birth-generator and name-generator: their headers must be on the include path too, with their data (or DASMIG_BIRTH_EMBED and DASMIG_NAME_EMBED).
#include <dasmig/relgen.hpp>
#include <iostream>
auto& gen = dasmig::relg::instance(); // loads the lite tier
dasmig::family_request request;
request.anchor.country_code = "BR";
request.anchor.age = 40;
request.up = 2; // grandparents too
request.down = 2; // grandchildren too
auto family = gen.get_family(request);
std::cout << family << '\n'; // BR family of 16 (anchor born 1982-08-15)
for (const auto& m : family.members)
std::cout << dasmig::relation_name(m.role) << ": " << m.name << '\n';
std::cout << family.to_json() << '\n'; // {"country":"BR","members":[...],"edges":[...],...}
// The same seed gives the same result everywhere.
auto again = gen.get_family(request, family.seed());
// The family of one of its members, agreeing with the first.
auto theirs = gen.expand(family, family.children().front().id, dasmig::family_request{});
See the usage guide for everything else.
make # example
make test # tests (LIBS=.. holds the sibling checkouts of birth-generator and name-generator)
make bench # benchmarks, results in build/bench.tsv
make test-embed # tests with the lite tier compiled in
make coverage # code coverage
make lint # clang-tidy
make docs # API docs
make embed # regenerate dasmig/relgen_data.hpp from resources/lite
Tested with:
-std=c++23)-std=c++23)/std:c++latest)| Dependency | Version | Bundled | Purpose |
|---|---|---|---|
| dasmig-core | 1.4 | Yes (core.hpp, core/) | Platform-independent random engine and distributions, data layers, JSON |
| birth-generator | 3.2 | No (headers on the include path) | The anchor, the country's age pyramid and life expectancy |
| name-generator | 4.5 | No (headers on the include path) | Names by culture, and the names of relatives |
| Catch2 | 3.x | Yes (amalgamated) | Unit testing |
| Library | Description |
|---|---|
| address-generator | Postal addresses with real streets by place |
| biodata-generator | Procedural human physical characteristics |
| birth-generator | Demographically plausible birthdays |
| city-generator | Weighted city selection by population |
| country-generator | Weighted country selection by population |
| device-generator | Devices, browsers, user agents and IP addresses that fit together |
| email-generator | Email addresses in each country's style |
| entity-generator | ECS-based entity generation |
| interest-generator | Religion, hobbies and favourite media by country, age and sex |
| name-generator | Culturally appropriate full names |
| nickname-generator | Gamer-style nicknames |
| occupation-generator |
This library is released under the MIT License.
MIT License
Copyright (c) 2026 Diego Dasso Migotto
Multi-Instance Support. Construct independent relg instances with their own data and random engine.
| Employment status, education and occupation by country, age and sex |
| persona-generator | Complete characters composed from the other generators |
| phone-generator | Phone numbers valid in each country's numbering plan |
| trait-generator | Personality traits with conflicts, synergies and Big Five axes |
| user-generator | Complete user records: account, username, email, phone and address |