HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
lucono
xtypejs
JavaScript2015–2015
lucono / xtypejs

xtypejs

Elegant, highly efficient data validation for JavaScript.

2Distinct people
3Mentions
0Explicit recommenders
358GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Elegant, highly efficient data validation for JavaScript.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 3-hour interval3 dated mentions

Observed mentions: 2015-04-29 03:44:25 UTC to 2015-05-01 05:13:06 UTC.

012015-04-29 03:00:00 UTC to 2015-04-29 06:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsApr 29, 03:002015-04-29 06:00:00 UTC to 2015-04-29 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-29 09:00:00 UTC to 2015-04-29 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-29 12:00:00 UTC to 2015-04-29 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-29 15:00:00 UTC to 2015-04-29 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-29 18:00:00 UTC to 2015-04-29 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-29 21:00:00 UTC to 2015-04-30 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2015-04-30 00:00:00 UTC to 2015-04-30 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-30 03:00:00 UTC to 2015-04-30 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsApr 30, 03:002015-04-30 06:00:00 UTC to 2015-04-30 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-30 09:00:00 UTC to 2015-04-30 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-30 12:00:00 UTC to 2015-04-30 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-30 15:00:00 UTC to 2015-04-30 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-30 18:00:00 UTC to 2015-04-30 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-04-30 21:00:00 UTC to 2015-05-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-05-01 00:00:00 UTC to 2015-05-01 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-05-01 03:00:00 UTC to 2015-05-01 06:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMay 1, 03:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Apr 29, 03:002015-04-29 03:00:00 UTC2015-04-29 06:00:00 UTC110
Apr 29, 06:002015-04-29 06:00:00 UTC2015-04-29 09:00:00 UTC000
Apr 29, 09:002015-04-29 09:00:00 UTC2015-04-29 12:00:00 UTC000
Apr 29, 12:002015-04-29 12:00:00 UTC2015-04-29 15:00:00 UTC000
Apr 29, 15:002015-04-29 15:00:00 UTC2015-04-29 18:00:00 UTC000
Apr 29, 18:002015-04-29 18:00:00 UTC2015-04-29 21:00:00 UTC000
Apr 29, 21:002015-04-29 21:00:00 UTC2015-04-30 00:00:00 UTC101
Apr 30, 00:002015-04-30 00:00:00 UTC2015-04-30 03:00:00 UTC000
Apr 30, 03:002015-04-30 03:00:00 UTC2015-04-30 06:00:00 UTC000
Apr 30, 06:002015-04-30 06:00:00 UTC2015-04-30 09:00:00 UTC000
Apr 30, 09:002015-04-30 09:00:00 UTC2015-04-30 12:00:00 UTC000
Apr 30, 12:002015-04-30 12:00:00 UTC2015-04-30 15:00:00 UTC000
Apr 30, 15:002015-04-30 15:00:00 UTC2015-04-30 18:00:00 UTC000
Apr 30, 18:002015-04-30 18:00:00 UTC2015-04-30 21:00:00 UTC000
Apr 30, 21:002015-04-30 21:00:00 UTC2015-05-01 00:00:00 UTC000
May 1, 00:002015-05-01 00:00:00 UTC2015-05-01 03:00:00 UTC000
May 1, 03:002015-05-01 03:00:00 UTC2015-05-01 06:00:00 UTC101

What Hacker News says

3 sources
There is no pseudo-code in the documentation. All of the documentation code executes as documented. The library works with type names in two naming modes - default and compact. The default name scheme uses the full type names, such as 'positive_integer', while the compact name scheme uses compact names, such as 'int+' for 'positive_integer'. You can only be in one mode or the other at any one time. You can switch between the two using the xtype.setOptions method: xtype(5); // 'positive_integer' // Switch to compact name scheme: xtype.setOptions({nameScheme:'compact'}); xtype(5); // 'int+' See this jsbin I've made for this specific piece of code - http://jsbin.com/kixuko/1/edit?html,js,console. And the documentation for switching between the default and compact name schemes - https://github.com/lucono/
Read the rest
In Show HN: Xtypejs – Efficient data-validating pseudo types for JavaScript

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.