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

create-chayns-app

v1.1.17

Published

Create a new chayns® development project in one command.

Downloads

138

Readme

Overview

Get Started

To bootstrap a new chayns® project, simply run

npx create-chayns-app@latest

or

yarn create chayns-app

This will start an interactive wizard to guide you through the creation of your project.

A folder will be created in the current working directory of your terminal with the name of your project.

Depending on wether you choose to create a complete page or a pagemaker plugin, continue with the "Developing a Custom Page" or the "Developing a Pagemaker Plugin" guides respectively.

Don't know what to choose? Check out the FAQ.

Developing a Custom Page

Since you chose the A complete page option for your project, we will be creating a custom page. You can start a local development server by running

npm run dev

or

yarn dev

You need to develop the project in a chayns-environment for all features to work properly. You have to create a Page on a chayns-Site you can manage, if you do not have one yet, create one here.

After finishing the setup of your site, head to Administration > Content > Pages and click the "Add Page" button at the top.

Choose the "Include website" option and enter a name you like (e.g. "Local Development"). Set the source to http://localhost:1234/, the address at which your local development server operates.

Your freshly created page should appear in the menu. Navigate to the page by clicking it.

Congrats! You are now ready to develop your custom page! Start making changes to your code and you should see them reflected on your Page in real-time.

Developing a Pagemaker Plugin

Since you chose the A pagemaker plugin option, we will be creating a plugin for the Pagemaker, the powerful website editing tool included in chayns.

First you should start the local development server of your project by running

npm run dev

or

yarn dev

You need to develop the project in a chayns-environment for all features to work properly. You have to create a Page on a chayns-Site you can manage, if you do not have one yet, create one here.

After finishing the setup of your site, head to Administration > Content > Pages and click the "Add Page" button at the top.

Choose the "Create a page" option and enter a name you like (e.g. "Local Development"). Click the "Add" button to create the Page.

Your freshly created page should appear in the menu. Navigate to the page by clicking it. There we want to enter "admin-mode" by activating the switch in the main menu, next to the name of your Site.

A floating button with a big plus sign should appear in the bottom right corner. Click it and choose Interactive > Iframe in the flyout-menu to add an iframe to your Page.

Hover over your newly created iframe and activate the chayns-API by clicking on the code-symbol and confirming your choice in the dialog.

Now we have to set the iframe source ("Quelle") to the address of your local development server by tapping on the gear-icon and entering http://localhost:1234/ in the second input field.

Congrats! You are now ready to develop your Pagemaker plugin! Start making changes to your code and you should see them reflected on your Page in real-time.

FAQ

What is the difference between an Pagemaker plugin and a complete page?

A Pagemaker plugin only takes up a slice of your Page and you can add regular Pagemaker elements like text, videos, graphics or other interactive elements above and below your Plugin, that can be easily edited with the MS Word-like interface of the Pagemaker, by anyone, including non-developers.

When developing a complete page, your application will take up all the space on one page. On one hand you will have slightly more space to work with, but on the other had this means that you cannot easily add content to this page with the Pagemaker. Of course you can still add headings (<h1>) and other elements in your code with HTML, but they will not be easily editable by other people, especially non-developers.

How can I deploy the application so it will be permanently available to all users of my Site?

The most simple way of deploying your app is to use a cloud deployment platform like Vercel or Netlify. These services will deploy any project for you, aslong as it is managed with a Git repository on GitHub or similar services.

If these platforms ask for a build command, enter chayns-toolkit build and if they ask for a publish directory, enter build.