• Stars
    star
    152
  • Rank 244,605 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

~4.2 billion default profile pics

sigil-js

npm (scoped)

โ†’ Github

Each of the ~4.2 billion points on Azimuth is unique. Each one 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. @tlon/sigil-js is a javascript library that converts one of these names into its corresponding Sigil.

sigil intro image

Basic Usage

React

import { sigil, reactRenderer } from '@tlon/sigil-js'

const Sigil = props => {
 return (
   <>
   {
     sigil({
       patp: props.patp,
       renderer: reactRenderer,
       size: props.size,
       colors: ['black', 'white'],
     })
   }
   </>
 )
}

More examples...

Install

npm install @tlon/sigil-js

API

Param Explanation Type Optional?
patp Any valid urbit @p string No, and can only accept galaxies, stars and planets.
renderer A recursive function that controls the DOM output. See stringRenderer() and reactRenderer() for examples. Both are exported via sigil-js. function Yes. If left undefined, sigil() will return an SVG AST
size Width and height of desired SVG output integer No
width Width of desired SVG output integer No
height Height of desired SVG output integer No
colors A background (first value) and foreground color (second value) with which to paint the sigil array like [#4330FC, #FFFFFF] Yes, default is ['#000', '#fff']
margin Should the layout use margin or not? boolean Yes
class CSS class to add to the outer SVG tag string Yes
attributes Adds DOM tag attributes to the outer SVG element, like width and height object Yes

About the renderer param

As mentioned about, the renderer param expects a recursive function that transform the SVG AST that is generated by sigils.js into DOM elements. Two renders are exported by Sigil.js.

Build

Commands Description
gulp or npm run build Build the library from source

Tests

npm run test

Toolkit

The toolkit is comprised of helper node scripts, test scripts and a preview webapp. It will remain undocumented for the time being.

Package Dependencies

There are two main dependencies.

And React for the reactRenderer function.

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

More Repositories

1

urbit

An operating function
hoon
3,422
star
2

archaeology

An Operating Function
C
329
star
3

awesome-urbit

A curated collection of projects and tools in the Urbit ecosystem.
215
star
4

azimuth

General-purpose PKI on Ethereum
Solidity
134
star
5

docs

The Urbit docs
Python
115
star
6

arvo

110
star
7

bridge

An application for interacting with Azimuth.
TypeScript
97
star
8

urbit.org

The source for urbit.org
JavaScript
91
star
9

create-landscape-app

Get started making a simple app for Landscape with a few commands.
JavaScript
85
star
10

examples

Urbit examples
JavaScript
84
star
11

ares

The new runtime for Urbit
Rust
82
star
12

vere

An implementation of the Urbit runtime
C
56
star
13

hoon.vim

Vim Script
42
star
14

indigo-react

React components that implement Tlon's design language
TypeScript
37
star
15

hoon-language-server

Language Server for Hoon. Middleware to translate between the Language Server Protocol and your Urbit.
Nix
36
star
16

urbit-ob

Utilities for Hoon-style atom printing and conversion
JavaScript
36
star
17

urbit-webrtc

WebRTC integration for Urbit: https://grants.urbit.org/proposals/21131866-webrtc-gall-agent-and-external-app
TypeScript
34
star
18

UIPs

Urbit Improvement Proposals
27
star
19

old-urbit.org

Documentation site
CSS
24
star
20

pottery

Proof-of-concept clay visualizer
JavaScript
23
star
21

plan

hoon
22
star
22

landscape

Product board for Landscape.
20
star
23

sigil-figma-plugin

A plugin for Figma that draws Sigils to a document
CSS
20
star
24

azimuth-js

JavaScript bindings for Azimuth (https://github.com/urbit/azimuth)
JavaScript
19
star
25

hoon-mode.el

Emacs Lisp
19
star
26

argon2-wasm

Based off https://github.com/antelle/argon2-browser
JavaScript
18
star
27

tools

Urbit usability tools that don't warrant their own repo
Python
18
star
28

developers.urbit.org

Website for the Urbit Foundation's developer program
JavaScript
16
star
29

urbit-key-generation

Key derivation and HD wallet generation functions for Urbit
JavaScript
15
star
30

urbit-bitcoin-rpc

bitcoind and ElectRS Dockerized for use in Urbit
JavaScript
15
star
31

proposals

Urbit Proposals
14
star
32

docs-examples

Example apps and other code used in urbit.org documentation
hoon
14
star
33

yard

A developer commons desk.
hoon
13
star
34

tree

The web interface for your urbit.
CoffeeScript
13
star
35

foundation

Public repository outlining the mission, vision and plans of the Urbit Foundation
12
star
36

js-http-api

A JS library for interfacing with Urbit over HTTP
TypeScript
12
star
37

hoon-assist-vscode

A VSCode extension that displays documentation for Hoon runes and standard library functions
TypeScript
11
star
38

talk

Urbit notifications and chat module
CoffeeScript
10
star
39

noun

A noun representation in Rust
Rust
10
star
40

urbit-wallet-generator

Key generator interface for generating Urbit's HD wallet structure.
CSS
10
star
41

hoon-assist

JavaScript
9
star
42

sole

Urbit web terminal
CoffeeScript
9
star
43

urb

Unix control of Urbit
Python
9
star
44

urbit-hob

Haskell utilities for Hoon-style atom printing and conversion
Haskell
9
star
45

volt

[WIP] Lightning in Urbit.
JavaScript
9
star
46

write

Example notes web app that stores data as JSON on your Urbit
CSS
9
star
47

star.market

TypeScript
9
star
48

pm

Core Development project management
9
star
49

tlon.io

Tlon Corp website
CSS
9
star
50

io_drivers

The Urbit runtime's IO drivers
Rust
8
star
51

hits

A leaderboard for local app discovery
hoon
8
star
52

ledger

Public record of urbit invitations
7
star
53

fora-posts

Git mirror of Urbit Fora posts
7
star
54

aura-js

An NPM package for working with urbit atoms. Only @da supported for now
TypeScript
7
star
55

network-explorer

https://network.urbit.org
JavaScript
7
star
56

hoon-workbook

7
star
57

nockjs

Javascript implementation of Nock
TypeScript
7
star
58

garden

hoon
6
star
59

chess

JavaScript
6
star
60

numerics

hoon
6
star
61

up8-ticket

Securely generate UP8 master tickets.
JavaScript
6
star
62

network-api-deprecated

[WIP] The public API to the Urbit network explorer (https://network.urbit.org)
JavaScript
5
star
63

azimuth-cairo

Python
5
star
64

repl

A stateless hoon repl
JavaScript
5
star
65

nock-js

javascript urbit runtime
JavaScript
5
star
66

lure

hoon
5
star
67

fleet

Scripts to manage the deployment of urbit testnets
Shell
5
star
68

babysit

conservative task autorestarter
C
5
star
69

profile

Profile app split out from Landscape
JavaScript
4
star
70

inbox

Inbox split off from current Landscape
JavaScript
4
star
71

support

Wiki and Issue board for handling support issues with Urbit.
4
star
72

fora

A simple forum
CSS
4
star
73

old-doc

bone
4
star
74

hoon-LT

Lighttable plugin for Hoon
JavaScript
4
star
75

bitcoin-wallet

Repository for issue triaging and (eventually) the bitcoin wallet code
hoon
4
star
76

rust-mixed-with-c

Nix
4
star
77

urbit_book

A softcover book
TeX
4
star
78

NEAR

Public repo for Urbit Labs projects
hoon
4
star
79

webterm

tui client for the web
TypeScript
4
star
80

interface

Interface monorepo
JavaScript
4
star
81

skeleton

Skeleton
JavaScript
4
star
82

PaperRenderer

Makes HD wallet PNGs with designs exported from Figma
JavaScript
4
star
83

debian

debian/ directory for urbit/urbit packaging
Makefile
4
star
84

womb

Web frontend to %womb ship management daemon.
CoffeeScript
4
star
85

roller-rpc-client

TypeScript
3
star
86

indigo-tokens

Design variables for the Urbit Interface Team
TypeScript
3
star
87

hoonschool

CSS
3
star
88

watch

CoffeeScript
3
star
89

bootstrap

JavaScript
3
star
90

operators.urbit.org

JavaScript
3
star
91

language-hoon

3
star
92

roadmap.urbit.org

JavaScript
3
star
93

runner-js

node.js urbit runner for scripting and scraping
JavaScript
3
star
94

azimuth-hs

Haskell bindings for Azimuth (https://github.com/urbit/azimuth)
Haskell
3
star
95

secp256k1

https://github.com/bitcoin-core/secp256k1
C
3
star
96

pleac-hoon

PLEAC in Hoon
3
star
97

mad

Monthly active developer metrics
Clojure
3
star
98

web-repl

A simple stateless %ford repl
3
star
99

bedrock

hoon
3
star
100

gsoc-2015-ideas

3
star