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

atfield-core

v0.2.0

Published

`atfield-core` provides framework-agnostic AT Protocol data primitives for ATField.

Downloads

1,459

Readme

atfield-core

atfield-core provides framework-agnostic AT Protocol data primitives for ATField.

It contains reusable identity, DID, repository, transport, schema, and provider logic that can be used by endpoint kits, static-site integrations, admin tools, CLIs, or other JavaScript/TypeScript applications.

For a deployable SvelteKit endpoint provider built on top of this package, see atfield-kit.

Install

npm install atfield-core

What it provides

Current scope:

  • DID-first identity resolution
  • handle-to-DID resolution
  • DID document fetching and parsing
  • PDS endpoint discovery
  • AT Protocol repo record reads
  • generic XRPC / HTTP transport helpers
  • lightweight schema decoding helpers
  • provider helpers for supported AT Protocol applications

Supported provider modules:

  • Bluesky profile and post helpers
  • site.standard.publication and site.standard.document helpers
  • WhiteWind article helpers

Quick example

import { createCore } from 'atfield-core';

const core = createCore();

const identity = await core.identity.resolveIdentity({
	handle: 'example.bsky.social'
});

const profile = await core.providers.bsky.getProfile(identity);

const documents = await core.providers.standardsite.document.list(identity, {
	limit: 10
});

const firstDocument = documents.documents[0];

if (firstDocument?.content) {
	const markdown = core.providers.standardsite.content.renderMarkdown(firstDocument.content, {
		inlineStyle: 'markdown',
		mentionProfileBaseUrl: 'https://bsky.app/profile/'
	});
	console.log(markdown);
}

console.log(identity);
console.log(profile);
console.log(documents.documents[0]);

Documentation

Package role

atfield-core intentionally does not provide a web server, UI, admin console, CMS, editor, RSS generator, sitemap generator, or publishing frontend.

License

MIT