Gathering detailed insights and metrics for cross-country
Gathering detailed insights and metrics for cross-country
Gathering detailed insights and metrics for cross-country
Gathering detailed insights and metrics for cross-country
athletichelper
An Unofficial Wrapper for the Athletic.net and Milesplit API
react-native-country-select
🌍 A lightweight and customizable country picker for React Native with modern UI, flags, search engine, and i18n support. Includes TypeScript types, offline support and no dependencies.
country-info-flags
A lightweight library for country flags, phone codes, and currency information for React and React Native
@twpayne/xcscore
Cross country league scoring for paragliding
npm install cross-country
Typescript
Module System
Node Version
NPM Version
JavaScript (65.82%)
TypeScript (32.65%)
MDX (0.74%)
CSS (0.66%)
Python (0.09%)
Shell (0.02%)
HTML (0.01%)
SCSS (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
495 Commits
2 Watchers
73 Branches
1 Contributors
Updated on Mar 22, 2025
Latest Version
1.3.6
Package Id
cross-country@1.3.6
Unpacked Size
21.17 MB
Size
10.84 MB
File Count
1,045
NPM Version
10.8.2
Node Version
18.20.8
Published on
Jun 28, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
33
44
an atomic react component library for personal metrics, simulations, and solo forest bathers
Core Tech
Do you pour over your personal stats from Github, Strava or Spotify? Is your year always in review?! By experimenting with code, you can hone your developer skills while exploring subject matter that interests you.
pnpm i cross-country
All types are included in the library.
import { Column, Row, Paragraph, Table, Chart, Bento } from "cross-country"
For this third-party library to work within NextJS, there is one change required to import it's single css bundle.
Edit the app\layout.tsx file to:
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import "cross-country/dist/bundle.css";
import { ScoutProviders } from "./providers/providers";
Edit the pages_app.js file to:
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import "cross-country/dist/bundle.css";
import { GoogleAnalytics } from "@next/third-parties/google";
If you use this library in your Storybook, update the .storybook/preview.tsx file
import type { Preview } from "@storybook/react";
import { initialize, mswLoader } from "msw-storybook-addon";
import "cross-country/dist/bundle.css";
I also recommend the mock service mocker addon to simulate data fetching in storybook which works very well with React hooks; similar to how we can intercept and mock response data with jest or vitest.
Each component provides a customClass
property where you can supply your own tailwind css classes.
By wrapping html, each component is augmented for building accessible experiences across screens. A simple page may look like this:
<Wrapper>
<Page>
<Column>
<Paragraph>
Hello! I'm a developer with a mix of frontend and backend experience.
</Paragraph>
<Metrics keyValuePairs=[{label: "Frontend", value: 75, type: "percent"}, {label: "Backend", value: 25, type: "percent"}] />
</Column>
</Page>
<Wallpaper />
</Wrapper>
Part of my dogfooding process is to use my library on my own site, headwinds.
Initially, I ran into a build error where I had to account for every window
and document
ensuring that they are not referenced until the UI hits the client. After hunting through my webpack build file, I was ble to eliminate them all, and it now works 100% server side!
pnpm new -- --type organisms --path component-name-here
or
pnpm new -- --type molecules --path component-name-here/sub-component-name-here
You can also scaffold only a story:
pnpm new:story -- --type molecules --path policies/privacy-policy
This will automatically scaffold the component directory creating all the files you will need including the tests and stories folders. It saved you at least 5 minutes if not especially around configuring the story; no more frustrating CSF errors!
Before installing, create a cross-country-config-private.js file in your root directory by copying the cross-country-config.js and renaming it.
export const privateConfig = {
UNSPLASH_API_KEY: 'YOUR-UNSPLASH-KEY',
};
While creating components, you can use Storybook
pnpm storybook
Open your browser to http://localhost:6006/
After running npm run build-storybook
, I had to make one change to the iframe.html file in the storybook-static folder.
The bundle.css isn't added so I had to add it manually.
<link rel="stylesheet" href="./bundle.css" />
npx tsc --noEmit
Run changesets
npx changeset
npx changeset version
pnpm publish
Need to run both commands npx changeset
only creates the changeset while npx changeset version
will then update the package.json
This library uses Jest & React Testing Library for unit tests.
pnpm test
pnpm publish
pnpm login
your-username-not-your-email
your-password
now-your-email
pnpm publish
pnpm build-storybook
cd storybook-static
vercel --prod
MIT © headwinds
No vulnerabilities found.
Reason
binaries present in source code
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More