New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@atcute/frontpage

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atcute/frontpage

Frontpage (fyi.unravel.frontpage.*) schema definitions

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

@atcute/frontpage

Frontpage (fyi.unravel.frontpage.*) schema definitions

usage

import { FyiUnravelFrontpagePost } from '@atcute/frontpage';
import { is } from '@atcute/lexicons';

const post: FyiUnravelFrontpagePost.Main = {
	$type: 'fyi.unravel.frontpage.post',
	url: 'https://github.com/mary-ext/atcute',
	title: 'collection of lightweight TypeScript packages for dealing with AT Protocol',
	createdAt: '2024-10-16T16:12:01.599Z',
};

is(FyiUnravelFrontpagePost.mainSchema, post);
// -> true

with @atcute/client

pick either one of these 3 options to register the ambient declarations

// tsconfig.json
{
	"compilerOptions": {
		"types": ["@atcute/frontpage"],
	},
}
// env.d.ts
/// <reference types="@atcute/frontpage" />
// index.ts
import type {} from '@atcute/frontpage';

now all the XRPC operations should be visible in the client

with @atcute/lex-cli

when building your own lexicons that reference Frontpage types, configure lex-cli to import from this package:

// file: lex.config.js
import { defineLexiconConfig } from '@atcute/lex-cli';

export default defineLexiconConfig({
	files: ['lexicons/**/*.json'],
	outdir: 'src/lexicons/',
	imports: ['@atcute/frontpage'],
});

Keywords

atcute

FAQs

Package last updated on 25 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts