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

@apptile/tile-modules

v0.1.0

Published

TilePacket SDK — type-safe analytics, integrations, and notifications APIs for React Native (web, iOS, Android). Public build ships type stubs returning mock data; internal build ships real implementations.

Downloads

49

Readme

tile-modules

Type-safe SDK for the three Apptile pillars — analytics, integrations, notifications — consumable from React Native (web, iOS, Android) and Node.

This package ships under a dual-build model:

| Build | What's in it | Distribution | | ----------- | ----------------------------------------- | ------------ | | public | Type definitions + no-op stubs that return believable mock data | Published to npm; what 3rd-party app developers integrate against | | internal | Real implementations (HTTP, batching, caching, push-token plumbing) | Bundled into Apptile's own apps; not published |

The two builds share one source of truth for types (src/types/), so neither side can drift.

Top-level exports

import {
  apptileAnalyticsCore,
  apptileIntegrationsCore,
  apptileNotificationsCore,
  // or as namespaces:
  analytics, integrations, notifications,
} from '@apptile/tile-modules';

Or per-domain:

import { apptileAnalyticsCore } from '@apptile/tile-modules/analytics';
import { apptileIntegrationsCore } from '@apptile/tile-modules/integrations';
import { apptileNotificationsCore } from '@apptile/tile-modules/notifications';

Types alone:

import type { AnalyticsEvent, ApptileAnalyticsCore } from '@apptile/tile-modules/types';

Surface

| Domain | Core object | Methods | | --------------- | ---------------------------- | -------------------------------------------------------------------- | | analytics | apptileAnalyticsCore | init, track, identify, screen, flush, reset, isReady | | integrations | apptileIntegrationsCore | init, list, get, call, isReady | | notifications | apptileNotificationsCore | init, requestPermission, getPermissionStatus, registerPushToken, getInbox, markRead, onReceive, isReady |

The signatures are identical across the public and internal builds — only the bodies differ.

File layout

src/
├── types/                                    # shared types (both builds)
│   ├── analytics.ts
│   ├── integrations.ts
│   ├── notifications.ts
│   └── index.ts
├── analytics/
│   ├── apptileAnalyticsCore.public.ts        # stubs returning mock data
│   ├── apptileAnalyticsCore.internal.ts      # real impl
│   ├── index.public.ts                       # re-exports the .public file
│   └── index.internal.ts                     # re-exports the .internal file
├── integrations/   ...same shape...
├── notifications/  ...same shape...
├── index.public.ts                           # public-build root entry
└── index.internal.ts                         # internal-build root entry

tsconfig.public.json excludes every *.internal.ts and index.internal.ts; tsconfig.internal.json excludes every *.public.ts and index.public.ts. The two builds emit to dist/public/ and dist/internal/ respectively.

Builds

npm run build:public    # → dist/public/    (publishable)
npm run build:internal  # → dist/internal/  (consumed by 1st-party apps)
npm run build           # both

npm publish runs prepublishOnly which builds only the public tree. .npmignore then strips any *.internal.ts files and dist/internal/ from the published tarball, just in case.

React Native compatibility

Source files use only universal APIs (fetch, setInterval). No Node built-ins. Metro can consume src/ directly — see react-native in package.json's exports.

For platform-specific behaviour (FCM/APNs prompts, Expo notifications, etc.), the consuming app wires the OS-level hooks; this SDK keeps the API abstract.

Adding a new function

  1. Add the signature to the relevant interface in src/types/.
  2. Add a stub returning mock data to src/<domain>/<thing>.public.ts.
  3. Add the real impl to src/<domain>/<thing>.internal.ts.
  4. Re-export from both index.public.ts and index.internal.ts if it's a new top-level symbol.

That's it — both builds will compile because the shared types live in one place.