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

chic.js

v1.4.3

Published

CLI for rapidly scaffolding SvelteKit apps

Downloads

45

Readme

About Chic.js

Chic.js is a rapid prototyping tool for Sveltekit. Use the CLI to scaffold your app quickly, and focus on the fun stuff.
📺 Watch a walkthrough video by Svelte Safari here: https://www.youtube.com/watch?v=AZdUtR4GYtE

Getting started

Installation

npm install -g chic.js

Usage

  1. Create a new Sveltekit app with chic new MyApp
  2. Change into your app directory with cd MyApp
  3. Use the chic make command to scaffold views, models, routes & API endpoints for a new resource. For example: chic make Book title:string author:string about:text, will create a Book resource with all the views, model and controllers need for CRUD operations on your resource.
  4. Run the development server with chic s
  5. And voila! You have a working app with a Book resource.

Routes

Chic.js adds a /routes endpoint to your app, which shows all the routes in your app - for example API endpoints for your resources created by Chic.js. This is useful for debugging and development. To hide the /routes endpoint in production, set CHIC_DEBUG=OFF in your .env file.

Chic commands

| Command | Description | | --- | --- | | chic --help | Displays help information about Chic.js commands | | chic --version | Displays the current version of Chic.js | | chic new GuitarStore | Creates a new Sveltekit app, called GuitarStore | | chic new GuitarStore styled with tailwind | Creates a new Sveltekit app, called GuitarStore, with Tailwind CSS styling framework. Options currently available: bootstrap, tailwind and bulma | | chic make Guitar name:string type:string description:text | Creates pages, API routes, model and form components for CRUD operations on the Guitar resource | | chic add /about | Creates an "About" page in the src/routes directory | | chic add ContactForm | Creates a ContactForm.svelte component in the src/lib/components directory | | chic sitemap [domain name] | Creates a sitemap (note: build your project locally first before running this command) | | chic s | Runs the development server | | chic debug status | Shows the status of CHIC_DEBUG in your .env file | | chic debug ON | Sets CHIC_DEBUG value to ON. When ON, the routes endpoint will be active | | chic debug OFF | Sets CHIC_DEBUG value to OFF. When OFF, the routes endpoint will be inactive |