npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@0xtemple/cli

v0.0.3

Published

Tookit for interacting with vara eps framework

Downloads

17

Readme

The Temples CLI

The Temples CLI is used for building and developing a Temples project.

It comes with

  1. schemagen <configPath>: Autogenerate Temples schemas based on the store schemas config file
  2. publish: Deploy your own world project on the specified sui network.
  3. upgrade: Upgrade your own world project on the specified sui network.
  4. localnode: Start a local Sui node for development
  5. faucet: An interface to the Devnet/Localnet faucet. It makes it easy to fund addresses on the Devnet/localnet

Installation

We don’t recommend installing the CLI globally.

Instead, you should add the CLI as a dev dependency to your project (done automatically if you start from a starter kit using pnpm create temples-world), and use it with pnpm build inside your project directory.

Using the CLI

Some commands expect a Temples config in the same folder where the CLI is being executed. This includes schemagen and publish.

faucet, and localnode can be executed anywhere.

Commands

schemagen

Generates Store libraries from a temples.config.ts file. See the Store Config and schemagen documentation in the Store section for more details.

# in a folder with a temples.config.ts
temples schemagen temples.config.ts

publish

Deploy a Temples contract project with the World framework.

This tool will use the temples.config.ts to detect all systems, schemas and projectName in the World and will deploy them to the chain specified.

When using the deployer, you must set the private key of the deployer using the PRIVATE_KEY environment variable. You can make this easier by using dotenv before running temples publish in your deployment script.

To set up the target network for deploying the contract (mainnet/testnet/devnet/localnet), before deploying the contract, please make sure that you have some tokens in your account, which will be used for some fees when deploying the contract. (If you choose devnet/localnet, you can get some test tokens via temples faucet), if you need to deploy the contract on localnet, please make sure you have started localnode.

# to deploy sui locally
temples publish --network localnet
# to deploy to sui devnet
temples publish --network devnet
# to deploy to sui testnet
temples publish --network testnet
# to deploy to sui mainnet
temples publish --network mainnet

upgrade

Upgrade Temples contract project.

When you add a new schema or modify the system code, you need to upgrade the contract through the upgrade method. (Contract upgrade specification)

temples upgrade --network <network:mainnet/testnet/devnet/localnet>

localnode

The localnode uses the official sui-test-validator binary provided by sui to start the localnode.

The local rpc is http://127.0.0.1:9000

temples localnode

faucet

Connects to a Temples faucet service to fund an address.

temples faucet --network <network:devnet/localnet>
temples faucet --network <network:devnet/localnet> --recipient <address>

The default faucet service automatically gives test tokens to accounts in dotenv.

To fund an address on the devnet/localnet, run temples faucet --recipient <address>