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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@turnipxenon/pineapple

v4.5.1

Published

personal package for base styling for other personal projects

Downloads

58

Readme

Pineapple

This is the base package for styling my projects in Svelte.

NPM package: https://www.npmjs.com/package/@turnipxenon/pineapple

Developing

Once you've created a project and installed dependencies with yarn, start a development server:

yarn dev

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

Building

To create a production version of your app:

yarn build

You can preview the production build with yarn preview.

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

Installation as a package

TODO: If you're curious how to install this on a fresh package or a package not using Skeleton, you can ask me to document the steps but I haven't explored that since I'm focused in migrating my projects. It should just be installing Skeleton v3 and then seeing the steps below.

Migration from v2 to v3

yarn add @turnipxenon2/pineapple

Manual steps

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

  1. Follow these steps here: https://www.skeleton.dev/docs/get-started/migrate-from-v2

  2. Configure Tailwind. Open your global stylesheet in /src/styles/app.css and add the following imports:

@import 'tailwindcss';
@import "@skeletonlabs/skeleton";
@import "@skeletonlabs/skeleton/optional/presets";
@import "@skeletonlabs/skeleton/themes/legacy";
@import '../../../node_modules/@turnipxenon/pineapple/dist/styles/app.css';
@import '../../../node_modules/@turnipxenon/pineapple/dist/styles/turnip-theme.css';

@source "../../../node_modules/@skeletonlabs/skeleton-svelte/dist";
@source '../../../node_modules/@turnipxenon/pineapple/dist/';

@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';
  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 pineapple
  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/pineapple/templates';
	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

  1. Update to "@sveltejs/adapter-auto": "^4.0.0", we need node 22
  2. Add alias in svelte.config
kit: {
	alias: {
		$pkg: path.resolve("./node_modules/@turnipxenon/pineapple/dist/lib")
	}
}

Local linking

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

To unlink:

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

To reinstall a single package: yarn add @turnipxenon/pineapple --no-package-lock --no-save