# gridy-avatars

> SVG avatar generator

Latest version **1.1.3** (published 2018-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install gridy-avatars
pnpm add gridy-avatars
yarn add gridy-avatars
bun add gridy-avatars
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2018-04-08 |
| First published | 2018-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 501.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 71 |
| Author | darosh |
| Maintainers | darosh |
| Keywords | avatar, generator, random, svg, vector |

## Links

- npm: https://www.npmjs.com/package/gridy-avatars
- Repository: https://github.com/darosh/gridy-avatars
- Homepage: https://darosh.github.io/gridy-avatars/dist
- Issues: https://github.com/darosh/gridy-avatars/issues
- npm.io page: https://npm.io/package/gridy-avatars

## Dependencies (1)

- [d3-color](https://npm.io/package/d3-color.md) ^1.0.3

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.3 (latest) — 2018-04-08
- 1.1.2 — 2018-04-07
- 1.1.1 — 2018-04-07
- 1.1.0 — 2018-04-07
- 1.0.7 — 2018-04-07
- 1.0.6 — 2018-04-06
- 1.0.5 — 2018-04-06
- 1.0.4 — 2018-04-06
- 1.0.3 — 2018-04-06
- 1.0.2 — 2018-04-06
- 1.0.1 — 2018-04-06
- 1.0.0 — 2018-04-06

## README

# Gridy Avatars [![npm (scoped)](https://img.shields.io/npm/v/gridy-avatars.svg)](https://www.npmjs.com/package/gridy-avatars) [![demo](https://img.shields.io/badge/demo-online-brightgreen.svg)](https://darosh.github.io/gridy-avatars/dist/) [![Try gridy-avatars on RunKit](https://badge.runkitcdn.com/gridy-avatars.svg)](https://npm.runkit.com/gridy-avatars)


> SVG avatars generator

![sample 1](https://darosh.github.io/gridy-avatars/dist/sample-1.svg)![sample 2](https://darosh.github.io/gridy-avatars/dist/sample-2.svg)![sample 3](https://darosh.github.io/gridy-avatars/dist/sample-3.svg)![sample 4](https://darosh.github.io/gridy-avatars/dist/sample-4.svg)![sample 5](https://darosh.github.io/gridy-avatars/dist/sample-5.svg)

## Demo

Try randomize button [here](https://darosh.github.io/gridy-avatars/dist/).

## Usage

* see exported API in [./src/avatars.js](./src/avatars.js)
* use [./dist/avatars.js](./dist/avatars.js)
* see [./dist/index.html](./dist/index.html) for example usage (with Vue.js)

## Development

1. `yarn`
2. edit [./src/avatars.svg](./src/avatars.svg) in Inkscape (use one _layer_ per feature)
3. `npm run dev`
4. copy generated shapes from dev web app to [./shapes.json](./shapes.json)
5. `npm run build`

## Notes

* 8<sup>6</sup> = 262.144 variants
* based on 24&times;24 pixels grid
* using Material Design colors (generated in [./src/colors.js](./src/colors.js))
* no transparent colors
* utilizing SVG clipPaths (with fully opaque colors)
* no dependencies
* inspired by [Gabfranck/svg_avatar](https://github.com/Gabfranck/svg_avatar)

---
_Source: https://npm.io/package/gridy-avatars · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
