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

capkit

v0.5.22

Published

<img width="125" src="https://github.com/Hugos68/sveltekit-capacitor/assets/63101006/3b8324ff-f27d-48a3-a74d-f7aabb2f530e" /> <img width="125" src="https://github.com/Hugos68/capkit/assets/63101006/cb12fccf-b42a-46ac-98fc-70cdf8cdf344" /> <img width="150"

Downloads

6

Readme


MIT License GitHub last commit npm npm

CapKit

The CapKit CLI is a command-line interface that simplifies the process of configuring Capacitor with SvelteKit. With CapKit, you can quickly set up Capacitor for your SvelteKit app, making it easy to build and deploy native mobile applications as well as progressive web apps.

Table of Contents

Installation

Before installing CapKit, be aware that building native applications requires you to use Adapter Static because of the way Capacitor works. If you are only building a progressive web app you can use any adapter you want.

To get started with the CLI you can simply go into your existing sveltekit project and run:

npm:

npx capkit init

pnpm:

pnpm dlx capkit init

yarn:

yarn dlx capkit init

bun:

bunx capkit init

Upon doing this, you will be guided through a series of questions to help you configure your project optimally. These questions will allow you to tailor the setup to your specific requirements.

Usage

Development

When working with native applications and using their respective IDE's (Android Studio or Xcode) you can enable hot reloading by running:

npm:

npm run dev:cap

pnpm:

pnpm dev:cap

yarn:

yarn dev:cap

bun:

bun dev:cap

If you are solely focusing on creating a progressive web app you can run:

npm:

npm run dev

pnpm:

pnpm dev

yarn:

yarn dev

bun:

bun dev

Build

When building to native platforms you can use:

npm:

npm run build:cap

pnpm:

pnpm build:cap

yarn:

yarn build:cap

bun:

bun build:cap

If you are solely focusing on building a progressive web app you can run:

npm:

npm run build

pnpm:

pnpm build

yarn:

yarn build

bun:

bun build

API

CapKit also exposes an API to allow you to use it programmatically. This can be useful if you want to integrate CapKit into your own tooling or if you want to extend CapKit's functionality, you can use it like this:

import { initializeProject, type Options } from 'capkit';

const options: Options = {
	appName: 'My App',
	appId: 'com.myapp',
	platforms: ['android', 'ios'],
	plugins: ['clipboard', 'push-notifications'] // See a full list of plugins here: https://capacitorjs.com/docs/apis
};

initializeProject(options);

Capacitor

For further questions about Capacitor you can refer to the Capacitor Docs.

Examples

Here is a example project of a SvelteKit app with Capacitor deployed to Vercel: https://capkit-vercel.vercel.app/ Repository: https://github.com/Hugos68/capkit-vercel

Issues

If you encounter any issues or have concerns, please take a moment to report them. Your feedback is greatly appreciated and improves the quality of CapKit.

License

This project is licensed under the MIT License - see the LICENSE file for details.