Socket
Book a DemoInstallSign in
Socket

@urbit/sigil-js

Package Overview
Dependencies
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@urbit/sigil-js

[![npm (scoped)](https://img.shields.io/npm/v/@tlon/sigil-js?style=flat)](https://www.npmjs.com/package/@tlon/sigil-js)

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
9
Created
Source

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

FAQs

Package last updated on 22 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts