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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@turnipxenon/pineapple2

v0.4.3

Published

personal package for base styling for other personal projects v2

Readme

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Installing as a package

yarn add @turnipxenon2/pineapple2

Manual steps

We still have to do some manual set up to our project to make it work.

  1. Configure Tailwind. Open your global stylesheet in /src/app.css and add the following imports:
@import 'tailwindcss';
@import '@skeletonlabs/skeleton/optional/presets';
@import '@skeletonlabs/skeleton';
@import '@skeletonlabs/skeleton/themes/cerberus';
@import '../node_modules/@turnipxenon/pineapple2/dist/styles/app.css';

@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';

@source '../node_modules/@skeletonlabs/skeleton-svelte/dist';
@source '../node_modules/@turnipxenon/pineapple2/dist/styles'
  1. Set Active Theme. Open /src/app.html, then set the data-theme attribute on the HTML tag to define the active theme.
<html lang="en" data-theme="turnip">
...
</html>
  1. We have to setup +layout.svelte to and import some dependencies

As a reference as to why we need to do above, we use the UI framework Skeleton, which has the same setup. But, we have to make some modifications to make our project and Skeleton to work as a package.

Reference

  • https://next.skeleton.dev/docs/get-started/installation/sveltekit

  • https://inlang.com/m/gerre34r/library-inlang-paraglideJs/sveltekit

  • Just use skeleton or use the base project?

Current steps how to use this package in another project

  1. Create using Skeleton: https://next.skeleton.dev/docs/get-started/installation/sveltekit
  2. Follow instructions and skeleton UI package
  3. Install pineapple2
  4. Set up ModeWatcher and Modals, primarily in +layout.svelte
  5. Set up ParaglideJS internationalization (beta not SvelteKit)
  6. Add this to +layout.svelte
<script lang="ts">
	import { PinyaPageLayout, PinyaBase } from '@turnipxenon/pineapple2';
	import '../app.css';

	let { children } = $props();
</script>

<PinyaBase>
	<PinyaPageLayout>
		{@render children()}
	</PinyaPageLayout>
</PinyaBase>

TODO: if we are happy with our base, publish it to github and link the corresponding git commits here

Local linking

  1. In pineapple2, run yarn link
  2. In seaweed2, run yarn unlink @turnipxenon/pineapple2

To unlink:

  1. In seaweed2, run yarn unlink @turnipxenon/pineapple2
  2. In pineapple2, run yarn unlink
  3. If unlinking, remember to restart PC cause Windows symlinking is tricky