2.2.0 • Published 3 months ago

@urbit/sigil-js v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

sigil-js

npm (scoped)

→ Github

Urbit address space contains ~4.2 billion unique points. Each has a pronounceable, easily memorized name, something like ~ravmel-ropdyl. Sigils visualize these names – there are as many unique Sigils as there are Azimuth points. @urbit/sigil-js is a javascript library that converts one of these names into its corresponding Sigil.

sigil intro image

Basic Usage

React

import '@urbit/sigil-js'

const config = {
 point: '~zod', // or 'zod'
 size: 348,
 background:'#010101', 
 foreground:'yellow',
 detail:'none',
 space:'none',
}

const Sigil = ({ config }) => {
 return (
   <urbit-sigil {...config} />
 )
}

Install

npm install @urbit/sigil-js

API

ParamExplanationTypeOptional?
pointAny valid urbit point namestringNo, and can only accept galaxies, stars and planets.
sizeSize of desired SVG outputintegerYes, defaults to 128px
foregroundForeground colorstringYes, defaults to '#FFF'
backgroundBackground colorstringYes, defaults to '#000'
detailControls whether or not details should be rendered. Useful for small sizes below 48pxnone or defaultYes, defaults to default
spacespace between edge of sigil and edge of backgroundnone, large or defaultYes, defaults to default

Build

CommandsDescription
npm run buildBuild the library from source
npm run devBuild the library from source and copies build into /preview

Tests and Performance

npm run test

Contributing

Please read CONTRIBUTING.md for details on the process for submitting pull requests to us.

Authors

  • ~ridlur-figbud

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

sigil outro image

2.2.0

3 months ago

2.1.0

10 months ago

2.0.0

10 months ago

2.0.0-rc9

1 year ago

2.0.0-rc8

1 year ago

2.0.0-rc7

1 year ago

2.0.0-rc6

1 year ago

2.0.0-rc5

1 year ago

2.0.0-rc4

1 year ago

2.0.0-rc3

1 year ago

2.0.0-rc2

1 year ago

2.0.0-rc1

1 year ago